Issue with NodeJS

Technical Support
  • 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.

  • 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

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

  • @baris 2.4.5

  • 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

  • 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

  • 0 Votes
    4 Posts

    No, in the previous update, a redis package was replaced via ioredis package. And that change is broke your configuration.
    Related PR:

  • 0 Votes
    38 Posts

    @julian Hello Issue is already fixed thanks to @Per0x It was Nginx yes, But now i have a problem. For some reason the forum don't load new profile pictures. Let me explain you;

    I upload my first profile picture, everyone can see it. But if i update my profile picture no one can see the new one until they delete Cache/cookies.

  • 0 Votes
    7 Posts

    @ZenOokami said:

    I don't think it was Mongodb's user or db being the issue ._.
    Pretty sure "host identifier" has something to do with either nodebb or mongo's hosting setup, but I think it was that of NodeBB

    on the second time it wasn't accepting my webInstaller settings - not through the command line.

    But thanks.

    I wasn't talking about host identifier, I was talking about how to set up using auth and managing your DB's.

    You having connection issues you should post all your logs, including nodebb, nginx configurations etc.

    You said:

    double colon in host identifier

    Most likely issue with having a wrong syntax with the config.

  • 0 Votes
    1 Posts

    Jut started to notice weird behavior on our forum. When someone creates a new Topic it pulls in posts from older topics and sometimes it pulls in posts from topics from other categories. So, you would expect a new Topic to have just one post, but now it may start out with multiple posts.

    I have two sites running. A production and test site. Same behavior on each. I've reverted each to known working versions, but still no luck.

    Running 0.7.0 with mongo.

    This screen shot shows the new post with multiple topics.

    Thanks for your help.

    Screen Shot 2015-08-01 at 9.05.01 AM.png

  • 2 Votes
    10 Posts

    Just a quick update, @psychobunny ended up taking the lessons he learned writing the sidebar in Persona, and wrote another one for our new marketing site, and just today, spent a bit of back and forth with @Schamper to debug it.

    He's planning to backport it to Persona, so... soon! 😄