Issue with NodeJS


  • 2020-08-28T22:08:29.580Z [4567/5428] - info: Initializing NodeBB v1.13.4-5 http://localhost:4567 2020-08-28T22:08:33.236Z [4567/5428] - error: uncaughtException: Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined at C:\Users\Administrator\nodebb\src\database\redis.js:122:46 at nextTask (C:\Users\Administrator\nodebb\node_modules\async\dist\async.js:4576:27) at next (C:\Users\Administrator\nodebb\node_modules\async\dist\async.js:4584:13) at C:\Users\Administrator\nodebb\node_modules\async\dist\async.js:321:20 at Object.callbackOrEmit [as callback_or_emit] (C:\Users\Administrator\nodebb\node_modules\redis\lib\utils.js:89:9) at Command.callback (C:\Users\Administrator\nodebb\node_modules\redis\lib\individualCommands.js:157:15) at normal_reply (C:\Users\Administrator\nodebb\node_modules\redis\index.js:654:21) at RedisClient.return_reply (C:\Users\Administrator\nodebb\node_modules\redis\index.js:752:9) at JavascriptRedisParser.returnReply (C:\Users\Administrator\nodebb\node_modules\redis\index.js:137:18) at JavascriptRedisParser.execute (C:\Users\Administrator\nodebb\node_modules\redis-parser\lib\parser.js:544:14) {"error":{},"stack":"TypeError: Cannot read property 'replace' of undefined\n at C:\\Users\\Administrator\\nodebb\\src\\database\\redis.js:122:46\n at nextTask (C:\\Users\\Administrator\\nodebb\\node_modules\\async\\dist\\async.js:4576:27)\n at next (C:\\Users\\Administrator\\nodebb\\node_modules\\async\\dist\\async.js:4584:13)\n at C:\\Users\\Administrator\\nodebb\\node_modules\\async\\dist\\async.js:321:20\n at Object.callbackOrEmit [as callback_or_emit] (C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\lib\\utils.js:89:9)\n at Command.callback (C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\lib\\individualCommands.js:157:15)\n at normal_reply (C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\index.js:654:21)\n at RedisClient.return_reply (C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\index.js:752:9)\n at JavascriptRedisParser.returnReply (C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\index.js:137:18)\n at JavascriptRedisParser.execute (C:\\Users\\Administrator\\nodebb\\node_modules\\redis-parser\\lib\\parser.js:544:14)","exception":true,"date":"Fri Aug 28 2020 18:08:33 GMT-0400 (Eastern Daylight Time)","process":{"pid":5428,"uid":null,"gid":null,"cwd":"C:\\Users\\Administrator\\nodebb","execPath":"C:\\Program Files\\nodejs\\node.exe","version":"v12.18.3","argv":["C:\\Program Files\\nodejs\\node.exe","C:\\Users\\Administrator\\nodebb\\app.js"],"memoryUsage":{"rss":117432320,"heapTotal":91164672,"heapUsed":64959544,"external":2498630,"arrayBuffers":999951}},"os":{"loadavg":[0,0,0],"uptime":88930},"trace":[{"column":46,"file":"C:\\Users\\Administrator\\nodebb\\src\\database\\redis.js","function":null,"line":122,"method":null,"native":false},{"column":27,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\async\\dist\\async.js","function":"nextTask","line":4576,"method":null,"native":false},{"column":13,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\async\\dist\\async.js","function":"next","line":4584,"method":null,"native":false},{"column":20,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\async\\dist\\async.js","function":null,"line":321,"method":null,"native":false},{"column":9,"file":"C:\\Users\\Administrator\\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":"C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\lib\\individualCommands.js","function":"Command.callback","line":157,"method":"callback","native":false},{"column":21,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\index.js","function":"normal_reply","line":654,"method":null,"native":false},{"column":9,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\index.js","function":"RedisClient.return_reply","line":752,"method":"return_reply","native":false},{"column":18,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\redis\\index.js","function":"JavascriptRedisParser.returnReply","line":137,"method":"returnReply","native":false},{"column":14,"file":"C:\\Users\\Administrator\\nodebb\\node_modules\\redis-parser\\lib\\parser.js","function":"JavascriptRedisParser.execute","line":544,"method":"execute","native":false}]} 2020-08-28T22:08:33.236Z [4567/5428] - error: Cannot read property 'replace' of undefined 2020-08-28T22:08:33.237Z [4567/5428] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. 2020-08-28T22:08:34.134Z [4567/5428] - error: Error [ERR_SERVER_NOT_RUNNING]: Server is not running. at Server.close (net.js:1601:12) at Object.onceWrapper (events.js:421:28) at Server.emit (events.js:315:20) at emitCloseNT (net.js:1654:8) at processTicksAndRejections (internal/process/task_queues.js:83:21) 3 restarts in 10 seconds, most likely an error on startup. Halting. That is my Error code I am opening it by Git it opens nodejs 3 times and closes.

  • Global Moderator

    What version of NodeBB? What version of node? What is the output of git status?


  • On branch v1.13.x
    Your branch is up to date with 'origin/v1.13.x'.

    nothing to commit, working tree clean is git

    Node.js v12.18.3. that is node
    v1.13.4-5! is Nodebb

    Ugh still stuck on that 300 second reply
    Also thank you for fast response


  • @PitaJ Do you need anything else to help you.


  • @PitaJ Do you think I missed a step on installing the server I setup it and I got it running and It did it once it started

  • Admin Staff

    What version of redis is installed? Login to your server and redis and then run info in the redis-cli.


  • @baris 2.4.5

  • Admin Staff

    You need at least version 2.8.9


  • @baris Alright lemme download it thank you will check back in


  • @baris It is now running but broken 25141596-a43b-4be5-b404-a02da3639de7-image.png

  • Global Moderator

    Try ./nodebb stop && ./nodebb build && ./nodebb start


  • @PitaJ Hey I did everything it was working I fixed the issue that was above I forgot what I did but I wanted to put is at my ip so when I get the domain name I can just redirect and such now it does this whenever I try changing the config for the url 025c0b31-ff60-44ae-a2cf-291ac76d0e60-image.png

Suggested Topics

| |