Can't set up NodeBB from branch that's not master


  • Rather than put 0.5.1 in the title and potentially get someone excited erroneously, I decided to be a little bit vague.
    I've been trying to install 0.5.1 on my test server. I'm doing a clean install, no issues pulling anything from git. The issue occurs when running ./nodebb setup.

    I'm able to set up redis without issue, but when it comes to setting up the admin account, I get a syntax error.

    Capture.PNG

    Why was I testing 0.5.1 you might ask, to play with something @julian recently pushed on github šŸ˜‰

  • GNU/Linux Admin

    Ouch, that's a weird bug... looks to be related to the npm module that was installed. Can you try reinstalling it and trying again?

    $ npm remove npm
    $ npm i npm
    

  • @julian that fixed it.
    Wasn't expecting that to occur.


  • @julian, I suppose when it rains, it pours - kids, don't try this at home. This is what happens after updating, and using the vanilla theme

    2.PNG

    Seems like CSS might have not installed.

  • GNU/Linux Admin

    ... oh dear. No clue what happened there! Does stylesheet.css exist?


  • @julian it would appear not. Is there a default stylesheet.css on GH that I can grab?

  • GNU/Linux Admin

    No, it is generated when NodeBB starts... so something is stopping it from generating and being served if you can't access it via browser.

    Any errors in console when you start NodeBB?


  • @julian Not a single one šŸ˜„

    Launching NodeBB in "development" mode.
    To run the production build of NodeBB, please use "forever".
    More Information: https://docs.nodebb.org/en/latest/running/index.html
    info: NodeBB v0.5.0-2 Copyright (C) 2013-2014 NodeBB Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    info: Time: Fri Aug 22 2014 16:37:34 GMT-0400 (EDT)
    info: Initializing NodeBB v0.5.0-2
    info: * using configuration stored in: /root/nodebb/config.json
    info: * using redis store at 
    info: * using themes stored in: /root/nodebb/node_modules
    info: Base Configuration OK.
    Warning: Redis server does not require a password, but a password was supplied.
    morgan deprecated morgan(options): use morgan("default", options) instead src/logger.js:128:22
    morgan deprecated default format: use combined format src/logger.js:128:22
    info: [notifications.init] Registering jobs.
    info: [user.startJobs] Registering User Jobs
    info: Enabling 'trust proxy'
    info: [plugins] Initializing plugins system
    info: [themes] Using theme nodebb-theme-vanilla
    info: Middlewares loaded.
    info: [plugins] Found 1 LESS file(s) for plugin nodebb-plugin-mentions
    info: [plugins] Found 2 js file(s) for plugin nodebb-plugin-mentions
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-widget-essentials
    info: [plugins] Found 1 LESS file(s) for plugin nodebb-plugin-markdown
    info: [plugins] Loaded plugin: nodebb-plugin-mentions
    info: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
    info: [plugins] Loaded plugin: nodebb-widget-essentials
    info: [plugins] Loaded plugin: nodebb-plugin-markdown
    info: [plugins] Loaded plugin: nodebb-theme-vanilla
    info: [plugins] Sorting hooks to fire in priority sequence
    info: [plugins] Plugins OK
    info: [meta/css] Minifying LESS/CSS
    info: [sounds] Sounds OK
    info: [themes] Compiling templates
    info: [themes] Successfully compiled templates.
    info: NodeBB attempting to listen on: 
    info: NodeBB is now listening on: 
    info: [meta/js] Successfully minified.
    info: [meta/js] Retrieved Mapping.
    info: [meta/js] Compilation complete
    
  • Admin

    Can you try switching to vanilla and then back to lavender? Just a hunch


  • @psychobunny, NodeBB installed and set lavender as the default - which was throwing a similar issue. I had hoped that swapping to vanilla would correct it, but no dice.

    Just tried a theme swap again, with a restart - no avail.

    Edit1: I should add that I tried to use a Vanilla theme after the fact to no avail as well.

  • Admin

    From @a_5mith:

    git checkout 0.5.1
    git pull
    cd node_modules
    sudo rm -rf nodebb-theme-vanilla
    git clone (vanilla theme)
    cd nodebb-theme-vanilla
    git checkout 0.5.1
    git pull (should say already up to date) 
    cd ../../
    ./nodebb upgrade
    ./nodebb start
    
  • Gamers Admin

    @Ted said:

    info: [meta/css] Minifying LESS/CSS

    I don't see winston.info('[meta/css] Done.'); in your output log so clearly the css/less isn't being compiled correctly. Something must be erroring out in this function.


  • @psychobunny
    Having issues doing a git pull for the vanilla theme alone, its asking for a repo to be added to the command, and adding 0.5 1 does nothing.


  • @Ted It's git clone https://github.com/NodeBB/nodebb-theme-vanilla.git


  • @a_5mith, thanks for that.

    I'm trying to SSH from my S4 on a single bar of service. Can't browse github effectively šŸ˜„


  • @Ted Wish I could do anything with my S4, I've had it repaired once already, still doesn't work. They're dragging their feet on replacing it. šŸ˜ 


  • @a_5mith, sorry to hear that. Mine's been pretty well without issue. I have a regional carrier though, so a small public arguement in store would guarantee an immediate replacement under my insurance.

    ./nodebb upgrade
    npm WARN package.json nodebb-plugin-soundpack-default@0.1.1 No README data
    npm WARN package.json nodebb-plugin-dbsearch@0.0.13 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.
    uglify-js@2.4.15 node_modules/uglify-js
    ā”œā”€ā”€ uglify-to-browserify@1.0.2
    ā”œā”€ā”€ async@0.2.10
    ā”œā”€ā”€ optimist@0.3.7 (wordwrap@0.0.2)
    ā””ā”€ā”€ source-map@0.1.34 (amdefine@0.1.0)
    npm WARN package.json nodebb-plugin-soundpack-default@0.1.1 No README data
    npm WARN package.json nodebb-plugin-dbsearch@0.0.13 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.
    npm ERR! git Appears to be a git repo or submodule.
    npm ERR! git     /root/nodebb/node_modules/nodebb-theme-vanilla
    npm ERR! git Refusing to remove it. Update manually,
    npm ERR! git or move it out of the way first.
    
    npm ERR! System Linux 3.13.0-24-generic
    npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "i" "nodebb-theme-vanilla" "nodebb-theme-lavender" "nodebb-widget-essentials"
    npm ERR! cwd /root/nodebb
    npm ERR! node -v v0.10.30
    npm ERR! npm -v 1.4.21
    npm ERR! path /root/nodebb/node_modules/nodebb-theme-vanilla
    npm ERR! code EISGIT
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /root/nodebb/npm-debug.log
    npm ERR! not ok code 0
    info: NodeBB v0.5.0-2 Copyright (C) 2013-2014 NodeBB Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    Warning: Redis server does not require a password, but a password was supplied.
    info: Beginning database schema update
    info: [2014/2/19] Updating MOTD to use the HTML widget - skipped
    info: [2014/2/20] Adding Recent Replies, Active Users, and Moderator widgets to category sidebar - skipped
    info: [2014/2/20] Adding Forum Stats Widget to the Homepage Footer - skipped
    info: [2014/2/20] Updating Lavender MOTD - skipped
    info: [2014/2/20] Activating NodeBB Essential Widgets - skipped
    info: [2014/2/22] Added categories to sorted set - skipped
    info: [2014/3/18] Migrating Markdown settings to new configuration - skipped
    info: [2014/3/21] Removing gids and pruning groups - skipped
    info: [2014/3/31] Re-adding copyright message into global footer widget - skipped
    info: [2014/4/1] Moved home sidebar widgets into draft zone - skipped
    info: [2014/4/2] Moved deprecated vanilla footer widgets into draft zone - skipped
    info: [2014/5/13] Updating privilege settings - skipped
    info: [2014/5/16] Removing allowGuestPosting option - skipped
    info: [2014/5/16] Tags upgrade - skipped
    info: [2014/6/6] Topic upgrade - skipped
    info: [2014/6/17] Category post count upgrade - skipped
    info: [2014/7/23] Upgrading db dependencies - skipped
    info: [2014/7/24] Upgrading chats to sorted set - skipped
    info: [upgrade] Schema already up to date!
    
    ~/nodebb# ./nodebb dev
    Launching NodeBB in "development" mode.
    To run the production build of NodeBB, please use "forever".
    More Information: https://docs.nodebb.org/en/latest/running/index.html
    info: NodeBB v0.5.0-2 Copyright (C) 2013-2014 NodeBB Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info:
    info: Time: Sat Aug 23 2014 12:19:42 GMT-0400 (EDT)
    info: Initializing NodeBB v0.5.0-2
    info: * using configuration stored in: /root/nodebb/config.json
    info: * using redis store at 
    info: * using themes stored in: /root/nodebb/node_modules
    info: Base Configuration OK.
    Warning: Redis server does not require a password, but a password was supplied.
    morgan deprecated morgan(options): use morgan("default", options) instead src/logger.js:128:22
    morgan deprecated default format: use combined format src/logger.js:128:22
    info: [notifications.init] Registering jobs.
    info: [user.startJobs] Registering User Jobs
    info: Enabling 'trust proxy'
    info: [plugins] Initializing plugins system
    info: [themes] Using theme nodebb-theme-vanilla
    info: Middlewares loaded.
    info: [plugins] Found 1 LESS file(s) for plugin nodebb-plugin-mentions
    info: [plugins] Found 2 js file(s) for plugin nodebb-plugin-mentions
    info: [plugins] Found 1 CSS file(s) for plugin nodebb-widget-essentials
    info: [plugins] Found 1 LESS file(s) for plugin nodebb-plugin-markdown
    info: [plugins] Loaded plugin: nodebb-plugin-mentions
    info: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
    info: [plugins] Loaded plugin: nodebb-widget-essentials
    info: [plugins] Loaded plugin: nodebb-theme-vanilla
    info: [plugins] Loaded plugin: nodebb-plugin-markdown
    info: [plugins] Sorting hooks to fire in priority sequence
    info: [plugins] Plugins OK
    info: [meta/css] Minifying LESS/CSS
    info: [sounds] Sounds OK
    info: [themes] Compiling templates
    info: [themes] Successfully compiled templates.
    info: NodeBB attempting to listen on: 
    info: NodeBB is now listening on:
    info: [meta/js] Successfully minified.
    info: [meta/js] Retrieved Mapping.
    info: [meta/js] Compilation complete
    

    @a_5mith, looks like issue is still persisting. Even tried to redo setup, no avail. I did notice that Bootswatch themes seem to work with Mobile browsers when applied - sort of. The color is there at least.

    Any other ideas?


  • @Ted Your issue is the same as @Tanner had last week, your CSS file is pointing to

    stylesheet.css?{css-buster}

    You should have a random string in place of CSS buster. Hopefully if I mention @Tanner enough times, he'll dropin and let you know how he solved it.

    Right @Tanner? šŸ˜†


  • @a_5mith, so what you're saying is all I have to do is page @Tanner, and then @Tanner will be able to make the problem go away. I didn't know @Tanner was a magician šŸŽ‰

  • Plugin & Theme Dev

    @a_5mith @Ted

    Hmm?

    crawls out of bed

    What?

    groggily reads post

    Oh, the buster problem. Usually the issue I found was a misplaced : or ; that messed up the code to the point that the buster wouldn't bust. I say usually because it's been a few different problems for me that has caused the buster not to bust in the past, and I've been able to solve it a couple of different ways:

    • check and see if there are any misplaced colons or semicolons, or any misplacements in the CSS at all
    • revert to a previous version and make the changes you did after that
    • wave your wand three times and say the magic words, then restart your NodeBB and check again

    Let me know if any of these work, especially the third option because I think it's the best.

Suggested Topics

| |