How to upgrade from 0.5.7 to 0.6.0 - Now there are Error of Installation.

  • Community Rep

    Here is my config file with the obvious stuff stripped out...

    /opt/kae# cat config.json
    	"port": "4569",
    	"secret": "......",
    	"database": "mongo",
    	"mongo": {
    		"host": "",
    		"port": "27017",
    		"username": ".....",
    		"password": ".....",
    		"database": "....."
    	"url": "http://localhost:4569"

  • Admin Staff

    @scottalanmiller You will need to install the version of the plugin that is compatible with 0.6.0.

    So in this case it should be npm i nodebb-plugin-sso-facebook@0.3.0

  • Community Rep

    @baris said:

    npm i nodebb-plugin-sso-facebook@0.3.0

    So many dependency errors. I've tried removing those modules but they keep being required.

    root@iad-lnx-mangodb:/opt/kae# npm i nodebb-plugin-sso-facebook@0.3.0
    npm WARN package.json express-namespace@0.1.1 No repository field.
    npm WARN package.json nodebb-plugin-dbsearch@0.1.0 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.
    npm ERR! peerinvalid The package nodebb-theme-vanilla does not satisfy its siblings' peerDependencies requirements!
    npm ERR! peerinvalid Peer nodebb-plugin-spam-be-gone@0.4.0 wants nodebb-theme-vanilla@>=0.0.137
    npm ERR! peerinvalid Peer nodebb-theme-lavender@0.2.6 wants nodebb-theme-vanilla@^0.2.0
    npm ERR! peerinvalid Peer nodebb-theme-cerulean@0.0.13-2 wants nodebb-theme-vanilla@~0.0.13
    npm ERR! System Linux 3.16.0-23-generic
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "i" "nodebb-plugin-sso-facebook@0.3.0"
    npm ERR! cwd /opt/kae
    npm ERR! node -v v0.10.25
    npm ERR! npm -v 1.4.21
    npm ERR! code EPEERINVALID
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /opt/kae/npm-debug.log
    npm ERR! not ok code 0

  • Community Rep

    That Vanilla error has been going on for a few versions now.

  • Admin Staff

    I would just remove the themes with npm uninstall and then install the latest version of the one that you use.

    Cerulean is pretty outdated can remove that permenantly.

  • Community Rep

    Took out a lot of modules and it throws no more errors about them. But the same issue starting up.

  • Community Rep

    Current status...

    31/12 03:53 [17048] - info: Time: Wed Dec 31 2014 03:53:53 GMT+0000 (UTC)
    31/12 03:53 [17048] - info: Initializing NodeBB v0.6.0
    31/12 03:53 [17048] - info: Enabling 'trust proxy'
    31/12 03:53 [17048] - warn: [] Clustering detected, you are advised to configure Redis as a websocket store.
    31/12 03:53 [17048] - error: TypeError: Cannot read property 'buildHeader' of undefined
    	at Object.imgur.init [as method] (/opt/kae/node_modules/nodebb-plugin-imgur/index.js:24:73)
    	at /opt/kae/src/plugins.js:460:13
    	at /opt/kae/node_modules/async/lib/async.js:125:13
    	at Array.forEach (native)
    	at _each (/opt/kae/node_modules/async/lib/async.js:46:24)
    	at Object.async.each (/opt/kae/node_modules/async/lib/async.js:124:9)
    	at fireStaticHook (/opt/kae/src/plugins.js:450:9)
    	at Object.Plugins.fireHook (/opt/kae/src/plugins.js:406:5)
    	at Plugins.reloadRoutes (/opt/kae/src/plugins.js:129:11)
    	at /opt/kae/node_modules/async/lib/async.js:656:23
    TypeError: Cannot read property 'buildHeader' of undefined
    	at Object.imgur.init [as method] (/opt/kae/node_modules/nodebb-plugin-imgur/index.js:24:73)
    	at /opt/kae/src/plugins.js:460:13
    	at /opt/kae/node_modules/async/lib/async.js:125:13
    	at Array.forEach (native)
    	at _each (/opt/kae/node_modules/async/lib/async.js:46:24)
    	at Object.async.each (/opt/kae/node_modules/async/lib/async.js:124:9)
    	at fireStaticHook (/opt/kae/src/plugins.js:450:9)
    	at Object.Plugins.fireHook (/opt/kae/src/plugins.js:406:5)
    	at Plugins.reloadRoutes (/opt/kae/src/plugins.js:129:11)
    	at /opt/kae/node_modules/async/lib/async.js:656:23
    31/12 03:53 [17048] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    31/12 03:53 [17048] - info: [app] Database connection closed.
    	throw new Error('Not running');
    Error: Not running
    	at Server.close (net.js:1233:11)
    	at shutdown (/opt/kae/app.js:374:36)
    	at process.<anonymous> (/opt/kae/app.js:211:7)
    	at process.EventEmitter.emit (events.js:95:17)
    	at process._fatalException (node.js:272:26)
    3 restarts in 10 seconds, most likely an error on startup. Halting.

  • Admin Staff

    Imgur plugin should be version 0.1.2 for nodebb 0.6.0

  • Community Rep

    Finally, that did it. Thanks!

    Any means of getting those to automatically update?

  • Admin Staff

    While upgrading running ./nodebb upgrade should call npm install, which in turn should install all the latest dependencies. Not sure if you ran ./nodebb upgrade?

  • Gamers

    @priapo said:

    @Master-Antonio yes, as they said, it is a file inside your nodebb/ directory; so go to your nodebb directory and type

    cat config.json

    then copy and paste it in your text editor, remove the passwords and post here.

    Or you can remove the file and run ./nodebb setup again, if you know the passwords and ports.

    How change the python version to 2.7?

  • @Master-Antonio I don't know how to do this in arch linux but as I can see by your screenshots, the procedures you did already worked for the python issue, your error is probably: or regarding your config.json format (please copy and paste it here changing your passwords) or regarding your plugins, or both. As you see above, some plugins are non-compatible with the current nodebb version 0.6.0 and should be updated.

    For your plugins try the command npm update inside nodebb directory... I was with the same problem and this worked for me another day.

    Every time you need python 2.7 again you just need to use the last command:

    export PATH=~/bin:$PATH

  • Hello guys,

    I've been trying to update to v0.6.0 without any success.

    If I do a $ git pull
    It seems like I'm already up-to-date.

    If I do a $ git checkout v0.6.x I get the following error:

    error: Your local changes to the following files would be overwritten by checkout:
    Please, commit your changes or stash them before you can switch branches.

    I've checked out all the topics here I could find on this issue, but even with ./nodebb dev I don't find anything wrong.

    If you have any ideas, that would be great. For now I've been giving up goats to the gods and so far no answers.


  • GNU/Linux Admin

    @TaLoche That git error means you (or somebody else) modified the src/groups.js file. You'll need to reverse the changes to that file and checkout again.

  • Thanks @julian for your reply.

    I downloaded v0.5.7 and did overwrite via FTP this groups.js file and it got me to a new level:

    throw new TypeError("Parameter 'url' must be a string, not " + typeof url)
    TypeError: Parameter 'url' must be a string, not undefined
    at Url.parse (url.js:107:11)
    at Object.urlParse [as parse] (url.js:101:5)
    at getPorts (/home/nodebb/nodebb/loader.js:184:22)
    at Loader.start (/home/nodebb/nodebb/loader.js:141:13)
    at /home/nodebb/nodebb/node_modules/async/lib/async.js:610:21
    at /home/nodebb/nodebb/node_modules/async/lib/async.js:249:17
    at iterate (/home/nodebb/nodebb/node_modules/async/lib/async.js:149:13)
    at /home/nodebb/nodebb/node_modules/async/lib/async.js:160:25
    at /home/nodebb/nodebb/node_modules/async/lib/async.js:251:21
    at /home/nodebb/nodebb/node_modules/async/lib/async.js:615:34

    My config.json is the same as before and I have in it:

    "base_url": "http://178.X.X.X",

    But I ran node app --setup then just to play it safe and then ./nodebb start and got this error:

    throw err;
    Error: Cannot find module 'socketio-wildcard'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/nodebb/nodebb/src/
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

    Am I missing a module? I don't have many plugins activated.

  • GNU/Linux Admin

    If you downgrade to 0.5.7, you'll need to run npm install again, as the dependencies have changed.

  • Thanks @julian!

    I started from my old 0.5.7 version, changed back my group.js to the original one found on Github.


    ./nodebb stop
    git pull
    git checkout v0.6.x
    git pull
    ./nodebb upgrade
    ./nodebb start

    Everything went fine but nodebb wasn't lauching... In the end I started over again by disabling all the plugins (I think the mybb importer was the one causing all this fuss) and it worked, I am now in 0.6.0 and it's time for me to pull out the sunglasses to look cool.
    Thanks again!


  • GNU/Linux Admin

    For future reference, to easily "go back to the unmodified version", use git checkout 🙂

    $ git checkout src/groups.js

  • I'm learning something new here everyday! Muchas gracias Señor

Suggested Topics

| |