Moving Nodebb to a new server


  • I'm replacing my server with a new one, i've copy redis dump to the new server and i've try to start nodebb but i get this error :

    2020-09-07T21:05:22.410Z [29580] - info: Initializing NodeBB v1.11.0 https://www.simosnap.org/forum
    2020-09-07T21:05:23.201Z [29580] - error: uncaughtException: Cannot read property 'split' of undefined
    TypeError: Cannot read property 'split' of undefined
        at /home/network/NodeBB/src/database/redis.js:184:29
        at nextTask (/home/network/NodeBB/node_modules/async/dist/async.js:5324:14)
        at next (/home/network/NodeBB/node_modules/async/dist/async.js:5331:9)
        at /home/network/NodeBB/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/home/network/NodeBB/node_modules/redis/lib/utils.js:89:9)
        at Command.callback (/home/network/NodeBB/node_modules/redis/lib/individualCommands.js:157:15)
        at normal_reply (/home/network/NodeBB/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/home/network/NodeBB/node_modules/redis/index.js:824:9)
        at JavascriptRedisParser.returnReply (/home/network/NodeBB/node_modules/redis/index.js:192:18)
        at JavascriptRedisParser.execute (/home/network/NodeBB/node_modules/redis-parser/lib/parser.js:574:12) {"error":{},"stack":"TypeError: Cannot read property 'split' of undefined\n    at /home/network/NodeBB/src/database/redis.js:184:29\n    at nextTask (/home/network/NodeBB/node_modules/async/dist/async.js:5324:14)\n    at next (/home/network/NodeBB/node_modules/async/dist/async.js:5331:9)\n    at /home/network/NodeBB/node_modules/async/dist/async.js:969:16\n    at Object.callbackOrEmit [as callback_or_emit] (/home/network/NodeBB/node_modules/redis/lib/utils.js:89:9)\n    at Command.callback (/home/network/NodeBB/node_modules/redis/lib/individualCommands.js:157:15)\n    at normal_reply (/home/network/NodeBB/node_modules/redis/index.js:726:21)\n    at RedisClient.return_reply (/home/network/NodeBB/node_modules/redis/index.js:824:9)\n    at JavascriptRedisParser.returnReply (/home/network/NodeBB/node_modules/redis/index.js:192:18)\n    at JavascriptRedisParser.execute (/home/network/NodeBB/node_modules/redis-parser/lib/parser.js:574:12)","exception":true,"date":"Mon Sep 07 2020 23:05:23 GMT+0200 (Central European Summer Time)","process":{"pid":29580,"uid":1001,"gid":1001,"cwd":"/home/network/NodeBB","execPath":"/usr/bin/node","version":"v10.21.0","argv":["/usr/bin/node","/home/network/NodeBB/app.js"],"memoryUsage":{"rss":132546560,"heapTotal":93233152,"heapUsed":61824552,"external":1009145}},"os":{"loadavg":[0.080078125,0.0166015625,0.00537109375],"uptime":31214},"trace":[{"column":29,"file":"/home/network/NodeBB/src/database/redis.js","function":null,"line":184,"method":null,"native":false},{"column":14,"file":"/home/network/NodeBB/node_modules/async/dist/async.js","function":"nextTask","line":5324,"method":null,"native":false},{"column":9,"file":"/home/network/NodeBB/node_modules/async/dist/async.js","function":"next","line":5331,"method":null,"native":false},{"column":16,"file":"/home/network/NodeBB/node_modules/async/dist/async.js","function":null,"line":969,"method":null,"native":false},{"column":9,"file":"/home/network/NodeBB/node_modules/redis/lib/utils.js","function":"Object.callbackOrEmit [as callback_or_emit]","line":89,"method":"callbackOrEmit [as callback_or_emit]","native":false},{"column":15,"file":"/home/network/NodeBB/node_modules/redis/lib/individualCommands.js","function":"Command.callback","line":157,"method":"callback","native":false},{"column":21,"file":"/home/network/NodeBB/node_modules/redis/index.js","function":"normal_reply","line":726,"method":null,"native":false},{"column":9,"file":"/home/network/NodeBB/node_modules/redis/index.js","function":"RedisClient.return_reply","line":824,"method":"return_reply","native":false},{"column":18,"file":"/home/network/NodeBB/node_modules/redis/index.js","function":"JavascriptRedisParser.returnReply","line":192,"method":"returnReply","native":false},{"column":12,"file":"/home/network/NodeBB/node_modules/redis-parser/lib/parser.js","function":"JavascriptRedisParser.execute","line":574,"method":"execute","native":false}]}
    2020-09-07T21:05:23.202Z [29580] - error: Cannot read property 'split' of undefined
    TypeError: Cannot read property 'split' of undefined
        at /home/network/NodeBB/src/database/redis.js:184:29
        at nextTask (/home/network/NodeBB/node_modules/async/dist/async.js:5324:14)
        at next (/home/network/NodeBB/node_modules/async/dist/async.js:5331:9)
        at /home/network/NodeBB/node_modules/async/dist/async.js:969:16
        at Object.callbackOrEmit [as callback_or_emit] (/home/network/NodeBB/node_modules/redis/lib/utils.js:89:9)
        at Command.callback (/home/network/NodeBB/node_modules/redis/lib/individualCommands.js:157:15)
        at normal_reply (/home/network/NodeBB/node_modules/redis/index.js:726:21)
        at RedisClient.return_reply (/home/network/NodeBB/node_modules/redis/index.js:824:9)
        at JavascriptRedisParser.returnReply (/home/network/NodeBB/node_modules/redis/index.js:192:18)
        at JavascriptRedisParser.execute (/home/network/NodeBB/node_modules/redis-parser/lib/parser.js:574:12)
    2020-09-07T21:05:23.202Z [29580] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2020-09-07T21:05:23.349Z [29580] - error: Server is not running.
    Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
        at Server.close (net.js:1566:12)
        at Object.onceWrapper (events.js:286:20)
        at Server.emit (events.js:198:13)
        at emitCloseNT (net.js:1619:8)
        at process._tickCallback (internal/process/next_tick.js:63:19)
    3 restarts in 10 seconds, most likely an error on startup. Halting.
    

    What i'm doing wrong ? the only difference is i've node 10 instead of node 8 on the new server.

  • Admin Staff

    What version of redis is installed? Make sure it's 2.8 or higher.

Log in to reply
 

Suggested Topics

| |