[root@daermabb ~]# nvm install v8.0.0
Downloading and installing node v8.0.0...
Downloading https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v8.0.0 (npm v5.0.0)
[root@daermabb ~]# cp /var/lib/redis/dump.rdb /opt/daerma/redisbackup/dump.rdb.20170530
[root@daermabb ~]# cd /opt/daerma/nodebb/
[root@daermabb nodebb]# git branch
master
v0.9.x
* v1.x.x
[root@daermabb nodebb]# git pull
remote: Counting objects: 4439, done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 4439 (delta 2279), reused 2296 (delta 2270), pack-reused 2125
Receiving objects: 100% (4439/4439), 1002.30 KiB | 0 bytes/s, done.
Resolving deltas: 100% (3434/3434), completed with 1024 local objects.
From https://github.com/NodeBB/NodeBB
d19e59f..fb2f857 v1.x.x -> origin/v1.x.x
* [new branch] ban-improvements -> origin/ban-improvements
e121a5a..3a1eba2 develop -> origin/develop
* [new branch] import-export-ref -> origin/import-export-ref
08f0010..ba93979 master -> origin/master
* [new branch] v1.5.x -> origin/v1.5.x
* [new tag] v1.4.6 -> v1.4.6
* [new tag] v1.5.1 -> v1.5.1
From https://github.com/NodeBB/NodeBB
* [new tag] v1.5.0 -> v1.5.0
Updating d19e59f..fb2f857
Fast-forward
>snip all the git stuff<
[root@daermabb nodebb]# npm install
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of eslint@^3.19.0 but none was installed.
added 59 packages, removed 438 packages and updated 156 packages in 39.311s
Now the nodebb upgrade
[root@daermabb nodebb]# ./nodebb upgrade
1. Bringing base dependencies up to date... OK
2. Checking installed plugins for updates... OK
3. Updating NodeBB data store schema...
30/5 14:01:30 [12817] - info: Beginning database schema update
30/5 14:01:30 [12817] - info: [2016/09/22] Setting category recent tids - skipped!
30/5 14:01:30 [12817] - info: [2016/10/8] favourite -> bookmark refactor - skipped!
30/5 14:01:30 [12817] - info: [2016/10/14] Creating sorted sets for post replies - skipped!
30/5 14:01:30 [12817] - info: [2016/11/22] Update global and user language keys - skipped!
30/5 14:01:30 [12817] - info: [2016/11/25] Creating sorted sets for pinned topics - skipped!
30/5 14:01:30 [12817] - info: [2017/2/25] Update global and user sound settings - skipped!
30/5 14:01:30 [12817] - info: [2017/2/28] Update urls in config to `/assets` - skipped!
30/5 14:01:30 [12817] - info: [2017/4/16] Delete sessions
30/5 14:01:34 [12817] - info: [2017/4/16] Delete sessions - done
30/5 14:01:34 [12817] - info: [upgrade] Schema update complete!
30/5 14:01:34 [12817] - info: [build] Building javascript
30/5 14:01:45 [12817] - info: [build] js => Completed in 11.268s
30/5 14:01:45 [12817] - info: [build] Building client-side CSS
30/5 14:01:49 [12817] - info: [build] clientCSS => Completed in 3.583s
30/5 14:01:49 [12817] - info: [build] Building admin control panel CSS
30/5 14:01:52 [12817] - info: [build] acpCSS => Completed in 2.97s
30/5 14:01:52 [12817] - info: [build] Building templates
30/5 14:01:52 [12817] - info: [build] tpl => Completed in 0.332s
30/5 14:01:52 [12817] - info: [build] Building language files
30/5 14:01:57 [12817] - info: [build] lang => Completed in 5.015s
30/5 14:01:57 [12817] - info: [build] Linking sound files
30/5 14:01:57 [12817] - info: [build] sound => Completed in 0.004s
30/5 14:01:57 [12817] - info: [build] Asset compilation successful. Completed in 23.263s.
OK
NodeBB Upgrade Complete!
[root@daermabb nodebb]# ./nodebb build
30/5 14:02:09 [12853] - info: [build] Building javascript
30/5 14:02:20 [12853] - info: [build] js => Completed in 10.572s
30/5 14:02:20 [12853] - info: [build] Building client-side CSS
30/5 14:02:23 [12853] - info: [build] clientCSS => Completed in 3.47s
30/5 14:02:23 [12853] - info: [build] Building admin control panel CSS
30/5 14:02:26 [12853] - info: [build] acpCSS => Completed in 2.892s
30/5 14:02:26 [12853] - info: [build] Building templates
30/5 14:02:26 [12853] - info: [build] tpl => Completed in 0.147s
30/5 14:02:26 [12853] - info: [build] Building language files
30/5 14:02:29 [12853] - info: [build] lang => Completed in 2.548s
30/5 14:02:29 [12853] - info: [build] Linking sound files
30/5 14:02:29 [12853] - info: [build] sound => Completed in 0.009s
30/5 14:02:29 [12853] - info: [build] Asset compilation successful. Completed in 22.267s.
This is what startup shows me.
[root@daermabb nodebb]# ./nodebb slog
Starting NodeBB with logging output
Hit Ctrl-C to exit
28/5 18:16:41 [5198] - warn: [deprecated] Accessing `src/modules/composer/tags.js` from `/` is deprecated. Use `/assets/src/modules/composer/tags.js` to access this file.
node_redis: Deprecated: The ZRANK command contains a "null" argument.
This is converted to a "null" string now and will return an error from v.3.0 on.
Please handle this in your code to make sure everything works as you intended it to.
29/5 08:43:21 [5198] - warn: [deprecated] Accessing `language/en_US/topic.json` from `/` is deprecated. Use `/assets/language/en_US/topic.json` to access this file.
30/5 13:48:40 [5198] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
[cluster] Child Process (5198) has exited (code: 0, signal: null)
30/5 13:48:40 [5198] - info: [app] Database connection closed.
30/5 13:48:40 [5198] - info: [app] Web server closed to connections.
30/5 13:48:40 [5198] - info: [app] Shutdown complete.
child_process.js:380
throw new TypeError('"cwd" must be a string');
^
TypeError: "cwd" must be a string
at normalizeSpawnArguments (child_process.js:380:11)
at Object.exports.spawn (child_process.js:465:38)
at Function.module.exports.daemon (/opt/daerma/nodebb/node_modules/daemon/index.js:50:31)
at module.exports (/opt/daerma/nodebb/node_modules/daemon/index.js:25:20)
at /opt/daerma/nodebb/loader.js:223:21
at FSReqWrap.oncomplete (fs.js:135:15)