@pitaj said in Upgrade from v0.6.1 to v1.17.0 (latest) --> Need recommendation:
Check out this topic, follow the instructions there:
https://community.nodebb.org/topic/15055/upgrading-from-0-7-3-advice/
Read through the whole thing (all replies) before you start
Hi Pitaj,
Thank you very much replying back to me. The version on the URL that you have shared is not v0.6.1.
I have followed below answer and my upgrade fails even from v0.6.1 to v0.7.0
https://community.nodebb.org/topic/9926/update-from-v0-7-0-to-v1-4-0/31
I have moved the uploads folder and redis database to the new installed v.17.0 and gives WRONGTYPE error as expected. For this method when I run "nodebb start" or "nodebb upgrade -s" getting below errors.
What do you recommend with this information? Really appreciated for any help, otherwise we have no solution at all.
>> nodebb upgrade
{
"error":{
"command":{
"name":"zscore",
"args":[
"userslug:uid",
"global-moderators"
]
}
},
"stack":"ReplyError: WRONGTYPE Operation against a key holding the wrong kind of value\n at parseError (/var/www/nodebb/node_modules/redis-parser/lib/parser.js:179:12)\n at parseType (/var/www/nodebb/node_modules/redis-parser/lib/parser.js:302:14)",
"exception":true,
"date":"Sun May 16 2021 22:48:49 GMT+0000 (Greenwich Mean Time)",
"process":{
"pid":14195,
"uid":0,
"gid":0,
"cwd":"/var/www/nodebb",
"execPath":"/root/.nvm/v16.1.0/bin/node",
"version":"v16.1.0",
"argv":[
"/root/.nvm/v16.1.0/bin/node",
"/var/www/nodebb/nodebb",
"upgrade"
],
"memoryUsage":{
"rss":140939264,
"heapTotal":91348992,
"heapUsed":55184832,
"external":2235722,
"arrayBuffers":106954
}
},
"os":{
"loadavg":[
0.17,
0.04,
0.01
],
"uptime":31276.52
},
"trace":[
{
"column":12,
"file":"/var/www/nodebb/node_modules/redis-parser/lib/parser.js",
"function":"parseError",
"line":179,
"method":null,
"native":false
},
{
"column":14,
"file":"/var/www/nodebb/node_modules/redis-parser/lib/parser.js",
"function":"parseType",
"line":302,
"method":null,
"native":false
}
]
}
>> node app --upgrade
{
"error": {
"code": "ERR_INVALID_ARG_TYPE"
},
"stack": "TypeError [ERR_INVALID_ARG_TYPE]: The \"chunk\" argument must be of type string or an instance of Buffer or Uint8Array. Received undefined\n at new NodeError (node:internal/errors:363:5)\n at _write (node:internal/streams/writable:312:13)\n at WriteStream.Writable.write (node:internal/streams/writable:334:10)\n at Object.handler (/var/www/nodebb/src/cli/upgrade.js:18:19)\n at /var/www/nodebb/src/cli/upgrade.js:58:21\n at /var/www/nodebb/node_modules/async/dist/async.js:2948:28\n at replenish (/var/www/nodebb/node_modules/async/dist/async.js:440:21)\n at /var/www/nodebb/node_modules/async/dist/async.js:445:13\n at eachOfLimit$1 (/var/www/nodebb/node_modules/async/dist/async.js:471:34)\n at awaitable (/var/www/nodebb/node_modules/async/dist/async.js:208:32)",
"exception": true,
"date": "Sun May 16 2021 22:28:31 GMT+0000 (Greenwich Mean Time)",
"process": {
"pid": 8276,
"uid": 0,
"gid": 0,
"cwd": "/var/www/nodebb",
"execPath": "/root/.nvm/v16.1.0/bin/node",
"version": "v16.1.0",
"argv": [
"/root/.nvm/v16.1.0/bin/node",
"/var/www/nodebb/app",
"--upgrade"
],
"memoryUsage": {
"rss": 79429632,
"heapTotal": 55414784,
"heapUsed": 23943912,
"external": 1274408,
"arrayBuffers": 264617
}
},
"os": {
"loadavg": [
0.42,
0.16,
0.06
],
"uptime": 30058.57
},
"trace": [
{
"column": 5,
"file": "node:internal/errors",
"function": "new NodeError",
"line": 363,
"method": null,
"native": false
},
{
"column": 13,
"file": "node:internal/streams/writable",
"function": "_write",
"line": 312,
"method": null,
"native": false
},
{
"column": 10,
"file": "node:internal/streams/writable",
"function": "WriteStream.Writable.write",
"line": 334,
"method": "write",
"native": false
},
{
"column": 19,
"file": "/var/www/nodebb/src/cli/upgrade.js",
"function": "Object.handler",
"line": 18,
"method": "handler",
"native": false
},
{
"column": 21,
"file": "/var/www/nodebb/src/cli/upgrade.js",
"function": null,
"line": 58,
"method": null,
"native": false
},
{
"column": 28,
"file": "/var/www/nodebb/node_modules/async/dist/async.js",
"function": null,
"line": 2948,
"method": null,
"native": false
},
{
"column": 21,
"file": "/var/www/nodebb/node_modules/async/dist/async.js",
"function": "replenish",
"line": 440,
"method": null,
"native": false
},
{
"column": 13,
"file": "/var/www/nodebb/node_modules/async/dist/async.js",
"function": null,
"line": 445,
"method": null,
"native": false
},
{
"column": 34,
"file": "/var/www/nodebb/node_modules/async/dist/async.js",
"function": "eachOfLimit$1",
"line": 471,
"method": null,
"native": false
},
{
"column": 32,
"file": "/var/www/nodebb/node_modules/async/dist/async.js",
"function": "awaitable",
"line": 208,
"method": null,
"native": false
}
]
}