And the saga continues. For those keeping track I am attempting to upgrade an old NodeBB forum (v1.4.5
) to a recent version. In this case the most recent, v1.12.1
I have created, yet another, new server to deploy the upgraded forum to. This time around I have used Ubuntu 16.04.
I have copied over my redis database and brought over a tar ball of my forum directory. I laid down the redis database, untarred the tar ball and then immediately did the following steps.
Anyone want to take a stab at what is in my forum that is making the upgrade impossible to complete?
[email protected]:/usr/share/nodebb/redactedforumname$ node -v
v8.15.1
[email protected]:/usr/share/nodebb/redactedforumname$ npm -v
6.4.1
[email protected]:/usr/share/nodebb/redactedforumname$ git fetch
remote: Enumerating objects: 11384, done.
remote: Counting objects: 100% (11384/11384), done.
remote: Compressing objects: 100% (68/68), done.
remote: Total 42743 (delta 11317), reused 11371 (delta 11316), pack-reused 31359
Receiving objects: 100% (42743/42743), 10.50 MiB | 17.60 MiB/s, done.
Resolving deltas: 100% (34532/34532), completed with 2174 local objects.
From https://github.com/NodeBB/NodeBB
d19e59f..fb2f857 v1.x.x -> origin/v1.x.x
* [new branch] 6747 -> origin/6747
* [new branch] acp-alert-fix -> origin/acp-alert-fix
* [new branch] acp-privileges -> origin/acp-privileges
* [new branch] acp-quick-actions -> origin/acp-quick-actions
* [new branch] allowLocalLogin -> origin/allowLocalLogin
* [new branch] auto-unban -> origin/auto-unban
* [new branch] ban-upgrade -> origin/ban-upgrade
* [new branch] blocks -> origin/blocks
* [new branch] bootstrap-3.4.0 -> origin/bootstrap-3.4.0
* [new branch] bump-autoprefixer -> origin/bump-autoprefixer
* [new branch] categories-optimize -> origin/categories-optimize
* [new branch] category-selector -> origin/category-selector
* [new branch] category-watch-state -> origin/category-watch-state
* [new branch] chat-kick-support -> origin/chat-kick-support
* [new branch] chat-permission -> origin/chat-permission
* [new branch] chat-rewrite -> origin/chat-rewrite
* [new branch] data-component -> origin/data-component
* [new branch] detect-yarn -> origin/detect-yarn
e121a5a..808c490 develop -> origin/develop
* [new branch] display-name -> origin/display-name
* [new branch] eslint-operator-linebreak-after -> origin/eslint-operator-linebreak-after
* [new branch] event-filter -> origin/event-filter
* [new branch] feat-6438 -> origin/feat-6438
* [new branch] fileupload-register-interstitial -> origin/fileupload-register-interstitial
* [new branch] feat-6438 -> origin/feat-6438
* [new branch] fileupload-register-interstitial -> origin/fileupload-register-interstitial
* [new branch] fix-6404 -> origin/fix-6404
* [new branch] fix-6784 -> origin/fix-6784
* [new branch] fix-7038 -> origin/fix-7038
* [new branch] fix-7470 -> origin/fix-7470
* [new branch] groups.join -> origin/groups.join
* [new branch] home-route -> origin/home-route
* [new branch] hooks-can-return-promises -> origin/hooks-can-return-promises
* [new branch] hsts-configuration -> origin/hsts-configuration
* [new branch] interstitial-fileupload -> origin/interstitial-fileupload
da183e1..3a35b77 master -> origin/master
* [new branch] mongo-changes -> origin/mongo-changes
* [new branch] og-image-refactor -> origin/og-image-refactor
* [new branch] one-click-unsub -> origin/one-click-unsub
* [new branch] parseInt -> origin/parseInt
* [new branch] patch-7412 -> origin/patch-7412
1deeaae..779979c patch-pitaj -> origin/patch-pitaj
* [new branch] patch-reset-errors -> origin/patch-reset-errors
* [new branch] promisify -> origin/promisify
* [new branch] recent-refactor -> origin/recent-refactor
* [new branch] redis-cache -> origin/redis-cache
* [new branch] remove-hotswap -> origin/remove-hotswap
* [new branch] remove-ignore-cids-per-user -> origin/remove-ignore-cids-per-user
* [new branch] renovate/eslint-5.x -> origin/renovate/eslint-5.x
* [new branch] renovate/mocha-6.x -> origin/renovate/mocha-6.x
* [new branch] response-hook -> origin/response-hook
* [new branch] router-all-patch -> origin/router-all-patch
* [new branch] server-side-skins -> origin/server-side-skins
* [new branch] service-workers -> origin/service-workers
* [new branch] session_store -> origin/session_store
* [new branch] set-fixes -> origin/set-fixes
* [new branch] snippet-xss-fix -> origin/snippet-xss-fix
* [new branch] socket-session-validation-hook -> origin/socket-session-validation-hook
* [new branch] spa-authentication -> origin/spa-authentication
* [new branch] test-fix -> origin/test-fix
* [new branch] timeago-fallback-removal -> origin/timeago-fallback-removal
* [new branch] topics-read-priv -> origin/topics-read-priv
* [new branch] uglify-es -> origin/uglify-es
* [new branch] topics-read-priv -> origin/topics-read-priv
* [new branch] uglify-es -> origin/uglify-es
* [new branch] unread-changes -> origin/unread-changes
* [new branch] upload-url-cors -> origin/upload-url-cors
* [new branch] user-blocking -> origin/user-blocking
* [new branch] v1.10.x -> origin/v1.10.x
* [new branch] v1.11.x -> origin/v1.11.x
* [new branch] v1.12.x -> origin/v1.12.x
* [new branch] v1.5.x -> origin/v1.5.x
* [new branch] v1.6.x -> origin/v1.6.x
* [new branch] v1.7.x -> origin/v1.7.x
* [new branch] v1.8.x -> origin/v1.8.x
* [new branch] v1.9.x -> origin/v1.9.x
* [new branch] winston3 -> origin/winston3
* [new branch] withScores-batch -> origin/withScores-batch
* [new branch] yariplus-patch-1 -> origin/yariplus-patch-1
* [new branch] zadd-score -> origin/zadd-score
* [new tag] v1.12.1 -> v1.12.1
* [new tag] v1.4.6 -> v1.4.6
* [new tag] v1.6.1 -> v1.6.1
* [new tag] v1.9.3 -> v1.9.3
* [new tag] v1.10.0 -> v1.10.0
* [new tag] v1.10.1 -> v1.10.1
* [new tag] v1.10.2 -> v1.10.2
* [new tag] v1.11.0 -> v1.11.0
* [new tag] v1.11.2 -> v1.11.2
* [new tag] v1.12.0 -> v1.12.0
* [new tag] v1.5.0 -> v1.5.0
* [new tag] v1.5.1 -> v1.5.1
* [new tag] v1.5.2 -> v1.5.2
* [new tag] v1.5.3 -> v1.5.3
* [new tag] v1.6.0 -> v1.6.0
* [new tag] v1.7.0 -> v1.7.0
* [new tag] v1.7.1 -> v1.7.1
* [new tag] v1.7.2 -> v1.7.2
* [new tag] v1.7.3 -> v1.7.3
* [new tag] v1.7.4 -> v1.7.4
* [new tag] v1.7.5 -> v1.7.5
* [new tag] v1.8.0 -> v1.8.0
* [new tag] v1.7.5 -> v1.7.5
* [new tag] v1.8.0 -> v1.8.0
* [new tag] v1.8.1 -> v1.8.1
* [new tag] v1.9.0 -> v1.9.0
* [new tag] v1.9.1 -> v1.9.1
* [new tag] v1.9.2 -> v1.9.2
[email protected]:/usr/share/nodebb/redactedforumname$ git checkout v1.12.x
M public/503.html
Branch v1.12.x set up to track remote branch v1.12.x from origin.
Switched to a new branch 'v1.12.x'
[email protected]:/usr/share/nodebb/redactedforumname$ git merge origin/v1.12.x
Already up-to-date.
[email protected]:/usr/share/nodebb/redactedforumname$ ./nodebb upgrade
package.json not found.
Populating package.json...
OK
Dependencies outdated or not yet installed.
Installing them now...
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support poli
cy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security p
atches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/comme
rcial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patch
es. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercia
l).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (
hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patch
es. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercia
l).
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/j
prichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the yea
rs.
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisor
ies/130
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: scmp v2 uses improved core crypto comparison since Node v6.6.0
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: scmp v2 uses improved core crypto comparison since Node v6.6.0
npm WARN deprecated [email protected]: This project is unmaintained
npm WARN deprecated [email protected]: catastrophic backtracking in regexes could potentially lead to RE
DOS attack, upgrade to 2.17.2 as soon as possible
> [email protected] install /usr/share/nodebb/redactedforumname/node_modules/benchpressjs
> cd rust/benchpress-rs && npm install
> [email protected] install /usr/share/nodebb/redactedforumname/node_modules/benchpressjs/rust/benchpress-rs
> neon build >> build.log 2>&1 || exit 0
npm notice created a lockfile as package-lock.json. You should commit this file.
added 87 packages from 83 contributors and audited 121 packages in 5.574s
found 0 vulnerabilities
> [email protected] install /usr/share/nodebb/redactedforumname/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll
-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x6
4.tar.gz
> [email protected] postinstall /usr/share/nodebb/redactedforumname/node_modules/preact
> node -e "console.log('\u001b[35m\u001b[1mLove Preact? You can now donate to our open collective:\u001b[22m\u
001b[39m\n > \u001b[34mhttps://opencollective.com/preact/donate\u001b[0m')"
Love Preact? You can now donate to our open collective:
> https://opencollective.com/preact/donate
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of textcomplete@^0.14.2 but none is installed. You
must install peer dependencies yourself.
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependen
cies yourself.
added 456 packages from 602 contributors, removed 569 packages, updated 305 packages, moved 15 packages and au
dited 6132 packages in 98.304s
added 456 packages from 602 contributors, removed 569 packages, updated 305 packages, moved 15 packages and au
dited 6132 packages in 98.304s
found 86 vulnerabilities (28 low, 34 moderate, 24 high)
run `npm audit fix` to fix them, or `npm audit` for details
OK
Updating NodeBB...
1. Updating package.json file with defaults... OK
2. Bringing base dependencies up to date... started
npm WARN [email protected] requires a peer of textcomplete@^0.14.2 but none is installed. You
must install peer dependencies yourself.
removed 6 packages and audited 6132 packages in 15.465s
found 86 vulnerabilities (28 low, 34 moderate, 24 high)
run `npm audit fix` to fix them, or `npm audit` for details
3. Checking installed plugins for updates... OK
A total of 17 package(s) can be upgraded:
* nodebb-plugin-2factor (2.2.2 -> 2.6.0)
* nodebb-plugin-composer-redactor (2.0.6 -> 3.3.5)
* nodebb-plugin-desktop-notifications (0.3.1 -> 0.3.3)
* nodebb-plugin-emailer-mailgun (1.0.2 -> 1.0.3)
* nodebb-plugin-emoji-apple (1.0.4 -> 2.0.0)
* nodebb-plugin-emoji-one (1.1.5 -> 2.0.0)
* nodebb-plugin-google-analytics (0.5.9 -> 0.5.10)
* nodebb-plugin-iframely (0.6.12 -> 0.7.9)
* nodebb-plugin-imgbed (1.0.2 -> 1.1.0)
* nodebb-plugin-newsletter (0.6.4 -> 0.8.0)
* nodebb-plugin-ns-awards (3.0.0 -> 4.0.0)
* nodebb-plugin-pushbullet (4.1.0 -> 4.1.6)
* nodebb-plugin-question-and-answer (0.1.4 -> 0.4.0)
* nodebb-plugin-s3-uploads-updated (0.3.13 -> 0.3.15)
* nodebb-plugin-sso-facebook (3.0.7 -> 3.5.0)
* nodebb-plugin-sso-google (2.0.2 -> 2.4.0)
* nodebb-plugin-sso-facebook (3.0.7 -> 3.5.0)
* nodebb-plugin-sso-google (2.0.2 -> 2.4.0)
* nodebb-widget-ns-stats (1.0.3 -> 2.0.0)
Proceed with upgrade (y|n)? y
Upgrading packages...
4. Updating NodeBB data store schema...
Parsing upgrade scripts...
OK | 76 script(s) found
→ [2015/12/15] Upgrading chats... skipped
→ [2015/12/23] Chat room hashes... skipped
→ [2015/12/23] Adding theme to active plugins sorted set... skipped
→ [2016/1/14] Creating user best post sorted sets... skipped
→ [2016/1/20] Creating users:notvalidated... skipped
→ [2016/1/23] Creating Global moderators group... skipped
→ [2016/2/25] Social: Post Sharing... skipped
→ [2016/4/14] Group title from settings to user profile... skipped
→ [2016/4/19] Users post count per tid... skipped
→ [2016/4/29] Dismiss flags from deleted topics... skipped
→ [2016/5/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category...
skipped
→ [2016/6/13] Store upvotes/downvotes separately... skipped
→ [2016/7/12] Giving upload privileges... skipped
→ [2016/8/5] Removing best posts with negative scores... skipped
→ [2016/8/7] Granting edit/delete/delete topic on existing categories... skipped
→ [2016/9/22] Category recent tids... skipped
→ [2016/10/8] Favourites to Bookmarks... skipped
→ [2016/10/14] Sorted sets for post replies... skipped
→ [2016/11/22] Update global and user language keys... skipped
→ [2016/11/25] Sorted set for pinned topics... skipped
→ [2017/2/25] Update global and user sound settings... skipped
→ [2017/2/28] Upgrading config urls to use assets route... skipped
→ [2017/4/16] Delete accidentally long-lived sessions... OK
→ [2016/12/7] Migrating flags to new schema... OK
→ [2017/2/27] New sorted set posts:votes... OK
→ [2017/3/22] Update moderation notes to zset... OK
→ [2017/4/14] Set default allowed file extensions... OK
→ [2017/3/22] Update moderation notes to zset... OK
→ [2017/4/14] Set default allowed file extensions... OK
→ [2017/4/26] Remove relative_path from uploaded profile cover urls... OK
→ [2017/5/26] rename user mod privileges group... OK
→ [2017/6/16] Give tag privilege to registered-users on all categories... OK
→ [2017/7/5] Wipe all existing RSS tokens... OK
→ [2017/7/10] Fix incorrect robots.txt schema... OK
→ [2017/7/17] Generate email logo for use in email header... OK
→ [2017/9/6] Clearing stale digest templates that were accidentally saved as custom... OK
→ [2017/9/7] Changing ip blacklist storage to object... OK
→ [2017/10/30] New sorted set cid:<cid>:tids:lastposttime... OK
→ [2017/10/12] Generate customHTML block from old customJS setting... OK
→ [2017/11/15] Convert old notification digest settings... OK
→ [2017/12/8] Add votes to topics... OK
→ [2017/12/18] Change the schema of simple keys so they don't use value field (mongodb only)... OK
→ [2017/12/18] Give chat privilege to registered-users... OK
→ [2018/1/3] Give upload privilege to registered-users globally if it is given on a category... OK
→ [2018/1/8] Fix sort by votes for moved topics... OK
→ [2018/1/9] Give vote privilege to registered-users on all categories... OK
→ [2018/1/12] Rename privileges:downvote and privileges:flag to min:rep:downvote, min:rep:flag respectively.
→ [2018/1/12] Rename privileges:downvote and privileges:flag to min:rep:downvote, min:rep:flag respectively.
.. OK
→ [2018/1/22] Fix topics in categories per user if they were moved... OK
→ [2018/2/14] Add default settings for notification delivery types... OK
→ [2018/2/17] Flatten navigation data... OK
→ [2018/2/21] Revising minimum password strength to 1 (from 0)... OK
→ [2018/1/31] Give category access privileges to spiders system group... OK
→ [2018/2/28] Give registered users signature privilege... OK
→ [2018/3/15] Reformatting post diffs to be stored in lists and hash instead of single zset... OK
→ [2018/4/16] Refresh post-upload associations... OK
→ [2018/5/28] Give global search privileges... OK
→ [2018/6/7] Give post history viewing privilege to registered-users on all categories... OK
→ [2018/6/8] Give deleted post viewing privilege to moderators on all categories... OK
→ [2018/6/22] Hash all IP addresses stored in Recent IPs zset... OK
→ [2018/8/28] Record first entry in username/email history... OK
→ [2018/9/24] Upgrade bans to hashes... OK
→ [2018/9/28] Give global local login privileges... OK
→ [2018/10/1] Optimize PostgreSQL sessions... OK
→ [2018/10/4] add filters to events... OK
→ [2018/10/10] Fix category post zsets... OK
→ [2018/10/11] Fix category topic zsets... OK
→ [2018/10/24] Rename maximumImageWidth to resizeImageWidth... OK
→ [2018/11/10] Widget visibility groups... OK
→ [2018/11/10] Navigation item visibility groups... OK
→ [2018/12/11] Remove uid:<uid>:ignored:cids... OK
→ [2018/12/13] Update category watch data... OK
→ [2019/1/4] Group create global privilege... OK
→ [2019/1/5] Global view privileges... OK
→ [2019/3/16] Calculate image sizes of all uploaded images... OK
→ [2019/3/25] Delete username email history for deleted users... OK
→ [2019/4/5] Update moderation notes to hashes... OK
→ [2018/11/26] Changing dbsearch mongodb search schema to use _id... OK
→ [2019/1/21] Enable StopForumSpam by default without api key... OK
Schema update complete!
5. Rebuilding assets... started
2019-04-12T03:51:01.715Z [4568/10023] - error: [build] Encountered error preparing for build
2019-04-12T03:51:01.715Z [4568/10023] - error: [build] Encountered error during build step
Error occurred during upgrade: undefined
2019-04-12T03:51:01.719Z [4568/10023] - error: uncaughtException: (no error message)
No stack trace {"error":[],"exception":true,"date":"Thu Apr 11 2019 21:51:01 GMT-0600 (MDT)","process":{"pid":10023,"uid":1000,"gid":1000,"cwd":"/usr/share/nodebb/redactedforumname","execPath":"/usr/bin/node","version":"v8.15.1","argv":["/usr/bin/node","/usr/share/nodebb/redactedforumname/nodebb","upgrade"],"memoryUsage":{"rss":175620096,"heapTotal":140279808,"heapUsed":98876704,"external":784566}},"os":{"loadavg":[1.8017578125,0.9033203125,0.41650390625],"uptime":4068},"trace":[]}
2019-04-12T03:51:01.720Z [4568/10023] - error: [build] Encountered error preparing for build
2019-04-12T03:51:01.720Z [4568/10023] - error: [build] Encountered error during build step
Error occurred during upgrade: undefined
2019-04-12T03:51:01.721Z [4568/10023] - error: uncaughtException: (no error message)
No stack trace {"error":[],"exception":true,"date":"Thu Apr 11 2019 21:51:01 GMT-0600 (MDT)","process":{"pid":10023,"uid":1000,"gid":1000,"cwd":"/usr/share/nodebb/redactedforumname","execPath":"/usr/bin/node","version":"v8.15.1","argv":["/usr/bin/node","/usr/share/nodebb/redactedforumname/nodebb","upgrade"],"memoryUsage":{"rss":175620096,"heapTotal":140279808,"heapUsed":98927368,"external":784590}},"os":{"loadavg":[1.8017578125,0.90332031
25,0.41650390625],"uptime":4068},"trace":[]}
[email protected]:/usr/share/nodebb/redactedforumname$