How to upgrade from 0.5.7 to 0.6.0 - Now there are Error of Installation.
-
Hi guys.
Merry Christmas and Happy Holidays.
I have problem with Upgrade to 0.6.0 from 0.5.7.
NodeBB is on Arch Linux.
I write this../nodebb stop
git pull
./nodebb upgrade
./nodebb startBut remais 0.5.7 .
Now when i write : git pull.
Is out this : Already up-to-date.Thanks for Help.
-
@priapo said:
./nodebb stop
Now my forum don't work.
Image Error :
1 ) http://i.gyazo.com/fce3a1835df872301c66bcbe442c8ff9.png
2 ) http://gyazo.com/7c26d4f9876ee87c3b72c3e13c16735a
3 ) http://gyazo.com/495f8138fa3b14c706b4513f4420afacLog :
http://i.gyazo.com/7e378b10204b3c0ba4b74006aef0b853.png -
I got the same issue.
-
I didn 't got this error but the python in my system is version 2.7.6.. the error is complaining that the version of python (version 3) is not supported. I see arch documentation here
https://wiki.archlinux.org/index.php/python
please try this, see if python2 is installed in your system, use the command:
whereis python
, it should display /usr/bin/python2, if not, install it (i don't know the procedures in arch but the package is namedpython2
), then do this as seen in the link abovemkdir ~/bin ln -s /usr/bin/python2 ~/bin/python ln -s /usr/bin/python2-config ~/bin/python-config export PATH=~/bin:$PATH ./nodebb upgrade
the export path command will remain only for the session
-
this is the error when running
./nodebb dev
anyone know what is this?
thanks.
-
@humanmadeaccount Make sure your config.json has a valid url property.
-
-
@baris this is my config.json
{ "base_url": "http://example.com", "port": "4567", "secret": "secret recipe", "bind_address": "0.0.0.0", "database": "redis", "redis": { "host": "127.0.0.1", "port": "6379", "password": "some password here", "database": "0" }, "bcrypt_rounds": 12, "upload_path": "/public/uploads", "use_port": false, "relative_path": "" }
EDIT: I will try to edit the
"base_url"
into"url"
? -
@Master-Antonio so please try
mkdir ~/bin rm ~/bin/python ~/bin/python-config ln -s /usr/bin/python2.7 ~/bin/python ln -s /usr/bin/python2.7-config ~/bin/python-config export PATH=~/bin:$PATH ./nodebb upgrade
These commands:
- create a directory called
bin/
in your home directory - create a link (shortcut) for python version 2.7 inside that
~/bin/
and will name the link aspython
as well as links the config for python - the
export
will set that~/bin/
that you created in first place in your PATH. This way, when the upgrade script runs the python command it will use the correct version (2.7) because it will use the version you linked.
PATH is a shell variable that contains various directories separated by
:
. The shell uses this variable to search for commands, inside the directories there listed. The nodebb upgrade scripts will then use ~/bin/python (linked to version 2.7) instead of that of your system (/usr/bin/python) which is probably linked to version 3.4, because the export changes that variable, setting ~/bin/ in first place.echo $PATH
The
whereis [name]
command searches in your PATH directories for the name, after you do these procedures the commandwhereis python
should display/home/USERNAME/bin/python
and/home/USERNAME/bin/python-config
. And the upgrade should work... - create a directory called
-
-
@Master-Antonio It's where NodeBB is installed. Do nano config.json in your NodeBB folder, to copy, highlight the text then press Enter to Copy, Then Ctrl + X to exit, then N when asked if you want to save changes.
-
@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. -
@priapo, @Master-Antonio is on my machine. I will change the python version for his account to 2.7.
-
Just tried to update and now the site won't start. Here is the error that we are getting...
at Object.Facebook.init [as method] (/opt/kae/node_modules/nodebb-plugin-sso-facebook/library.js:29:58) 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.Facebook.init [as method] (/opt/kae/node_modules/nodebb-plugin-sso-facebook/library.js:29:58) 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 02:35 [9888] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 31/12 02:35 [9888] - info: [app] Database connection closed. net.js:1233 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)
-
I tried doing a ./nodebb reset but the issue remains.