Error Upgrading from 1.10 to 1.11

  • Global Moderator Plugin & Theme Dev

    You do realize how crazy old Node 0.10 is, right? It's from 2015. The current LTS is Node 10, the latest version is Node 11.

    Odds are that you have nodejs from the main apt repositories of your distro, and node from nvm or something.

  • Gamers

    Yup. I was on the wrong user.

    @lemp-1gb-nyc3-01:~# node -v
    v11.4.0
    @lemp-1gb-nyc3-01:~# nodejs -v
    v6.15.1
    
    

    Here's what I'm seeing now.

  • Global Moderator Plugin & Theme Dev

    @Michael-Pfaff you might have problems with Node 11, I recommend Node 10 for now.

  • Global Moderator Plugin & Theme Dev

    You should be able to apt remove nodejs

  • Gamers

    Okay, I've removed nodejs and now I'm on:

    # node -v
    v10.14.2
    
    
  • Gamers

    Still getting these errors when I try to start NodeBB:

      at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12)
    2018-12-16T19:26:35.541Z [4567/25888] - info: [app] Shutdown (SIGTERM/SIGINT) In                                             itialised.
    [cluster] Child Process (25888) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-12-16T19:26:36.248Z [4567/25899] - info: Initializing NodeBB v1.11.1 https:                                             //community.nerdlouisville.org
    [benchpressjs] Unable to build or find a suitable native module, falling back to                                              JS version
    2018-12-16T19:26:37.760Z [4567/25899] - error: uncaughtException: Cannot read pr                                             operty 'split' of undefined
    TypeError: Cannot read property 'split' of undefined
        at /var/www/html/community/src/database/redis.js:189:29
        at nextTask (/var/www/html/community/node_modules/async/dist/async.js:5324:1                                             4)
        at next (/var/www/html/community/node_modules/async/dist/async.js:5331:9)
        at /var/www/html/community/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/node                                             _modules/redis/lib/utils.js:89:9)
        at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12) {"error":{},"stack":"TypeError: Cannot read proper                                             ty 'split' of undefined\n    at /var/www/html/community/src/database/redis.js:18                                             9:29\n    at nextTask (/var/www/html/community/node_modules/async/dist/async.js:                                             5324:14)\n    at next (/var/www/html/community/node_modules/async/dist/async.js:                                             5331:9)\n    at /var/www/html/community/node_modules/async/dist/async.js:969:16\                                             n    at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/nod                                             e_modules/redis/lib/utils.js:89:9)\n    at Command.callback (/var/www/html/commu                                             nity/node_modules/redis/lib/individualCommands.js:157:15)\n    at normal_reply (                                             /var/www/html/community/node_modules/redis/index.js:726:21)\n    at RedisClient.                                             return_reply (/var/www/html/community/node_modules/redis/index.js:824:9)\n    at                                              JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/redis/i                                             ndex.js:192:18)\n    at JavascriptRedisParser.execute (/var/www/html/community/n                                             ode_modules/redis-parser/lib/parser.js:574:12)","exception":true,"date":"Sun Dec                                              16 2018 19:26:37 GMT+0000 (Coordinated Universal Time)","process":{"pid":25899,                                             "uid":1000,"gid":1000,"cwd":"/var/www/html/community","execPath":"/usr/local/bin                                             /node","version":"v11.4.0","argv":["/usr/local/bin/node","/var/www/html/communit                                             y/app.js"],"memoryUsage":{"rss":130379776,"heapTotal":97394688,"heapUsed":570741                                             44,"external":406382}},"os":{"loadavg":[0.166015625,0.13720703125,0.0537109375],                                             "uptime":25672520},"trace":[{"column":29,"file":"/var/www/html/community/src/dat                                             abase/redis.js","function":null,"line":189,"method":null,"native":false},{"colum                                             n":14,"file":"/var/www/html/community/node_modules/async/dist/async.js","functio                                             n":"nextTask","line":5324,"method":null,"native":false},{"column":9,"file":"/var                                             /www/html/community/node_modules/async/dist/async.js","function":"next","line":5                                             331,"method":null,"native":false},{"column":16,"file":"/var/www/html/community/n                                             ode_modules/async/dist/async.js","function":null,"line":969,"method":null,"nativ                                             e":false},{"column":9,"file":"/var/www/html/community/node_modules/redis/lib/uti                                             ls.js","function":"Object.callbackOrEmit [as callback_or_emit]","line":89,"metho                                             d":"callbackOrEmit [as callback_or_emit]","native":false},{"column":15,"file":"/                                             var/www/html/community/node_modules/redis/lib/individualCommands.js","function":                                             "Command.callback","line":157,"method":"callback","native":false},{"column":21,"                                             file":"/var/www/html/community/node_modules/redis/index.js","function":"normal_r                                             eply","line":726,"method":null,"native":false},{"column":9,"file":"/var/www/html                                             /community/node_modules/redis/index.js","function":"RedisClient.return_reply","l                                             ine":824,"method":"return_reply","native":false},{"column":18,"file":"/var/www/h                                             tml/community/node_modules/redis/index.js","function":"JavascriptRedisParser.ret                                             urnReply","line":192,"method":"returnReply","native":false},{"column":12,"file":                                             "/var/www/html/community/node_modules/redis-parser/lib/parser.js","function":"Ja                                             vascriptRedisParser.execute","line":574,"method":"execute","native":false}]}
    2018-12-16T19:26:37.760Z [4567/25899] - error: Cannot read property 'split' of u                                             ndefined
    TypeError: Cannot read property 'split' of undefined
        at /var/www/html/community/src/database/redis.js:189:29
        at nextTask (/var/www/html/community/node_modules/async/dist/async.js:5324:1                                             4)
        at next (/var/www/html/community/node_modules/async/dist/async.js:5331:9)
        at /var/www/html/community/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/node                                             _modules/redis/lib/utils.js:89:9)
        at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12)
    2018-12-16T19:26:37.760Z [4567/25899] - info: [app] Shutdown (SIGTERM/SIGINT) In                                             itialised.
    [cluster] Child Process (25899) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-12-16T19:26:38.448Z [4567/25919] - info: Initializing NodeBB v1.11.1 https:                                             //community.nerdlouisville.org
    [benchpressjs] Unable to build or find a suitable native module, falling back to                                              JS version
    2018-12-16T19:26:39.957Z [4567/25919] - error: uncaughtException: Cannot read pr                                             operty 'split' of undefined
    TypeError: Cannot read property 'split' of undefined
        at /var/www/html/community/src/database/redis.js:189:29
        at nextTask (/var/www/html/community/node_modules/async/dist/async.js:5324:1                                             4)
        at next (/var/www/html/community/node_modules/async/dist/async.js:5331:9)
        at /var/www/html/community/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/node                                             _modules/redis/lib/utils.js:89:9)
        at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12) {"error":{},"stack":"TypeError: Cannot read proper                                             ty 'split' of undefined\n    at /var/www/html/community/src/database/redis.js:18                                             9:29\n    at nextTask (/var/www/html/community/node_modules/async/dist/async.js:                                             5324:14)\n    at next (/var/www/html/community/node_modules/async/dist/async.js:                                             5331:9)\n    at /var/www/html/community/node_modules/async/dist/async.js:969:16\                                             n    at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/nod                                             e_modules/redis/lib/utils.js:89:9)\n    at Command.callback (/var/www/html/commu                                             nity/node_modules/redis/lib/individualCommands.js:157:15)\n    at normal_reply (                                             /var/www/html/community/node_modules/redis/index.js:726:21)\n    at RedisClient.                                             return_reply (/var/www/html/community/node_modules/redis/index.js:824:9)\n    at                                              JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/redis/i                                             ndex.js:192:18)\n    at JavascriptRedisParser.execute (/var/www/html/community/n                                             ode_modules/redis-parser/lib/parser.js:574:12)","exception":true,"date":"Sun Dec                                              16 2018 19:26:39 GMT+0000 (Coordinated Universal Time)","process":{"pid":25919,                                             "uid":1000,"gid":1000,"cwd":"/var/www/html/community","execPath":"/usr/local/bin                                             /node","version":"v11.4.0","argv":["/usr/local/bin/node","/var/www/html/communit                                             y/app.js"],"memoryUsage":{"rss":134434816,"heapTotal":101527552,"heapUsed":65899                                             384,"external":361924}},"os":{"loadavg":[0.23291015625,0.15185546875,0.059082031                                             25],"uptime":25672522},"trace":[{"column":29,"file":"/var/www/html/community/src                                             /database/redis.js","function":null,"line":189,"method":null,"native":false},{"c                                             olumn":14,"file":"/var/www/html/community/node_modules/async/dist/async.js","fun                                             ction":"nextTask","line":5324,"method":null,"native":false},{"column":9,"file":"                                             /var/www/html/community/node_modules/async/dist/async.js","function":"next","lin                                             e":5331,"method":null,"native":false},{"column":16,"file":"/var/www/html/communi                                             ty/node_modules/async/dist/async.js","function":null,"line":969,"method":null,"n                                             ative":false},{"column":9,"file":"/var/www/html/community/node_modules/redis/lib                                             /utils.js","function":"Object.callbackOrEmit [as callback_or_emit]","line":89,"m                                             ethod":"callbackOrEmit [as callback_or_emit]","native":false},{"column":15,"file                                             ":"/var/www/html/community/node_modules/redis/lib/individualCommands.js","functi                                             on":"Command.callback","line":157,"method":"callback","native":false},{"column":                                             21,"file":"/var/www/html/community/node_modules/redis/index.js","function":"norm                                             al_reply","line":726,"method":null,"native":false},{"column":9,"file":"/var/www/                                             html/community/node_modules/redis/index.js","function":"RedisClient.return_reply                                             ","line":824,"method":"return_reply","native":false},{"column":18,"file":"/var/w                                             ww/html/community/node_modules/redis/index.js","function":"JavascriptRedisParser                                             .returnReply","line":192,"method":"returnReply","native":false},{"column":12,"fi                                             le":"/var/www/html/community/node_modules/redis-parser/lib/parser.js","function"                                             :"JavascriptRedisParser.execute","line":574,"method":"execute","native":false}]}
    2018-12-16T19:26:39.959Z [4567/25919] - error: Cannot read property 'split' of u                                             ndefined
    TypeError: Cannot read property 'split' of undefined
        at /var/www/html/community/src/database/redis.js:189:29
        at nextTask (/var/www/html/community/node_modules/async/dist/async.js:5324:1                                             4)
        at next (/var/www/html/community/node_modules/async/dist/async.js:5331:9)
        at /var/www/html/community/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/node                                             _modules/redis/lib/utils.js:89:9)
        at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12)
    2018-12-16T19:26:39.960Z [4567/25919] - info: [app] Shutdown (SIGTERM/SIGINT) In                                             itialised.
    [cluster] Child Process (25919) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-12-16T19:26:40.662Z [4567/25930] - info: Initializing NodeBB v1.11.1 https:                                             //community.nerdlouisville.org
    [benchpressjs] Unable to build or find a suitable native module, falling back to                                              JS version
    2018-12-16T19:26:42.119Z [4567/25930] - error: uncaughtException: Cannot read pr                                             operty 'split' of undefined
    TypeError: Cannot read property 'split' of undefined
        at /var/www/html/community/src/database/redis.js:189:29
        at nextTask (/var/www/html/community/node_modules/async/dist/async.js:5324:1                                             4)
        at next (/var/www/html/community/node_modules/async/dist/async.js:5331:9)
        at /var/www/html/community/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/node                                             _modules/redis/lib/utils.js:89:9)
        at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12) {"error":{},"stack":"TypeError: Cannot read proper                                             ty 'split' of undefined\n    at /var/www/html/community/src/database/redis.js:18                                             9:29\n    at nextTask (/var/www/html/community/node_modules/async/dist/async.js:                                             5324:14)\n    at next (/var/www/html/community/node_modules/async/dist/async.js:                                             5331:9)\n    at /var/www/html/community/node_modules/async/dist/async.js:969:16\                                             n    at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/nod                                             e_modules/redis/lib/utils.js:89:9)\n    at Command.callback (/var/www/html/commu                                             nity/node_modules/redis/lib/individualCommands.js:157:15)\n    at normal_reply (                                             /var/www/html/community/node_modules/redis/index.js:726:21)\n    at RedisClient.                                             return_reply (/var/www/html/community/node_modules/redis/index.js:824:9)\n    at                                              JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/redis/i                                             ndex.js:192:18)\n    at JavascriptRedisParser.execute (/var/www/html/community/n                                             ode_modules/redis-parser/lib/parser.js:574:12)","exception":true,"date":"Sun Dec                                              16 2018 19:26:42 GMT+0000 (Coordinated Universal Time)","process":{"pid":25930,                                             "uid":1000,"gid":1000,"cwd":"/var/www/html/community","execPath":"/usr/local/bin                                             /node","version":"v11.4.0","argv":["/usr/local/bin/node","/var/www/html/communit                                             y/app.js"],"memoryUsage":{"rss":133595136,"heapTotal":98906112,"heapUsed":714803                                             12,"external":1124591}},"os":{"loadavg":[0.23291015625,0.15185546875,0.059082031                                             25],"uptime":25672524},"trace":[{"column":29,"file":"/var/www/html/community/src                                             /database/redis.js","function":null,"line":189,"method":null,"native":false},{"c                                             olumn":14,"file":"/var/www/html/community/node_modules/async/dist/async.js","fun                                             ction":"nextTask","line":5324,"method":null,"native":false},{"column":9,"file":"                                             /var/www/html/community/node_modules/async/dist/async.js","function":"next","lin                                             e":5331,"method":null,"native":false},{"column":16,"file":"/var/www/html/communi                                             ty/node_modules/async/dist/async.js","function":null,"line":969,"method":null,"n                                             ative":false},{"column":9,"file":"/var/www/html/community/node_modules/redis/lib                                             /utils.js","function":"Object.callbackOrEmit [as callback_or_emit]","line":89,"m                                             ethod":"callbackOrEmit [as callback_or_emit]","native":false},{"column":15,"file                                             ":"/var/www/html/community/node_modules/redis/lib/individualCommands.js","functi                                             on":"Command.callback","line":157,"method":"callback","native":false},{"column":                                             21,"file":"/var/www/html/community/node_modules/redis/index.js","function":"norm                                             al_reply","line":726,"method":null,"native":false},{"column":9,"file":"/var/www/                                             html/community/node_modules/redis/index.js","function":"RedisClient.return_reply                                             ","line":824,"method":"return_reply","native":false},{"column":18,"file":"/var/w                                             ww/html/community/node_modules/redis/index.js","function":"JavascriptRedisParser                                             .returnReply","line":192,"method":"returnReply","native":false},{"column":12,"fi                                             le":"/var/www/html/community/node_modules/redis-parser/lib/parser.js","function"                                             :"JavascriptRedisParser.execute","line":574,"method":"execute","native":false}]}
    2018-12-16T19:26:42.120Z [4567/25930] - error: Cannot read property 'split' of u                                             ndefined
    TypeError: Cannot read property 'split' of undefined
        at /var/www/html/community/src/database/redis.js:189:29
        at nextTask (/var/www/html/community/node_modules/async/dist/async.js:5324:1                                             4)
        at next (/var/www/html/community/node_modules/async/dist/async.js:5331:9)
        at /var/www/html/community/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/var/www/html/community/node                                             _modules/redis/lib/utils.js:89:9)
        at Command.callback (/var/www/html/community/node_modules/redis/lib/individu                                             alCommands.js:157:15)
        at normal_reply (/var/www/html/community/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/var/www/html/community/node_modules/redis/inde                                             x.js:824:9)
        at JavascriptRedisParser.returnReply (/var/www/html/community/node_modules/r                                             edis/index.js:192:18)
        at JavascriptRedisParser.execute (/var/www/html/community/node_modules/redis                                             -parser/lib/parser.js:574:12)
    2018-12-16T19:26:42.120Z [4567/25930] - info: [app] Shutdown (SIGTERM/SIGINT) In                                             itialised.
    3 restarts in 10 seconds, most likely an error on startup. Halting.
    
    
  • Global Moderator Plugin & Theme Dev

    @Michael-Pfaff can you provide your config.json?

  • Gamers

    For anyone interested, my config.json was missing the "database": 0 portion of the redis config. Not sure how I got along all this time without it.

    Thanks so much, @PitaJ! Working great now.

  • GNU/Linux Admin

    I suppose it used to assume database 0 on start, but no longer 😄

  • Gamers

    @julian said in Error Upgrading from 1.10 to 1.11:

    I suppose it used to assume database 0 on start, but no longer 😄

    Yeah, I was freaking out a little bit. Glad it was such an easy fix and many thanks to @PitaJ for trouble shooting it for me so quickly.

Suggested Topics

  • 10
  • 7
  • 4
  • 3
  • 8
| |