yuuuuu.png
Mongodb or Redis
-
@Madchatthew connection refused typically means that port is being used elsewhere.
What’s the output of
./nodebb log
-
[nodebb@morecowbell public_html]$ ./nodebb log Hit Ctrl-C to exit tail: cannot open './logs/output.log' for reading: No such file or directory
-
@Madchatthew hmm. That doesn’t look like it’s properly installed, or you have a permissions issue. What user are launching NodeBB as?
Can you try
./nodebb dev
-
@phenomlab said in Mongodb or Redis:
@Madchatthew hmm. That doesn’t look like it’s properly installed, or you have a permissions issue. What user are launching NodeBB as?
Can you try
./nodebb dev
I will give this a try this evening. At work now.
-
@Madchatthew thanks. Let me know.
-
@phenomlab here are those results. It is a little long but I wanted to make sure you were getting the whole picture.
[nodebb@morecowbell public_html]$ ./nodebb dev NodeBB v3.8.4 Copyright (C) 2013-2024 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 3 process(es). 2024-08-13T01:03:42.527Z [4568/7624] - verbose: * using configuration stored in: /home/nodebb/public_html/config.json 2024-08-13T01:03:42.539Z [4567/7623] - verbose: * using configuration stored in: /home/nodebb/public_html/config.json 2024-08-13T01:03:42.547Z [4567/7623] - info: Initializing NodeBB v3.8.4 http://localhost:4567 2024-08-13T01:03:42.548Z [4567/7623] - verbose: * using mongo store at 127.0.0.1:27017 2024-08-13T01:03:42.548Z [4567/7623] - verbose: * using themes stored in: /home/nodebb/public_html/node_modules 2024-08-13T01:03:42.556Z [4569/7625] - verbose: * using configuration stored in: /home/nodebb/public_html/config.json 2024-08-13T01:03:42.961Z [4568/7624] - error: ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) 2024-08-13T01:03:42.966Z [4568/7624] - error: uncaughtException: NOAUTH Authentication required. ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) {"date":"Mon Aug 12 2024 20:03:42 GMT-0500 (Central Daylight Time)","error":{"command":{"args":[],"name":"info"}},"exception":true,"os":{"loadavg":[0.12,0.1,0.08],"uptime":84039.1},"process":{"argv":["/usr/bin/node","/home/nodebb/public_html/app.js"],"cwd":"/home/nodebb/public_html","execPath":"/usr/bin/node","gid":1006,"memoryUsage":{"arrayBuffers":18535346,"external":20792656,"heapTotal":55267328,"heapUsed":25627808,"rss":141299712},"pid":7624,"uid":1006,"version":"v22.6.0"},"stack":"ReplyError: NOAUTH Authentication required.\n at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12)\n at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14)","trace":[{"column":12,"file":"/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js","function":"parseError","line":179,"method":null,"native":false},{"column":14,"file":"/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js","function":"parseType","line":302,"method":null,"native":false}]} 2024-08-13T01:03:42.967Z [4568/7624] - error: ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) 2024-08-13T01:03:42.970Z [4567/7623] - error: ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) 2024-08-13T01:03:42.973Z [4569/7625] - error: ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) 2024-08-13T01:03:42.974Z [4567/7623] - error: uncaughtException: NOAUTH Authentication required. ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) {"date":"Mon Aug 12 2024 20:03:42 GMT-0500 (Central Daylight Time)","error":{"command":{"args":[],"name":"info"}},"exception":true,"os":{"loadavg":[0.12,0.1,0.08],"uptime":84039.11},"process":{"argv":["/usr/bin/node","/home/nodebb/public_html/app.js"],"cwd":"/home/nodebb/public_html","execPath":"/usr/bin/node","gid":1006,"memoryUsage":{"arrayBuffers":18535345,"external":20792655,"heapTotal":55267328,"heapUsed":25973952,"rss":142553088},"pid":7623,"uid":1006,"version":"v22.6.0"},"stack":"ReplyError: NOAUTH Authentication required.\n at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12)\n at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14)","trace":[{"column":12,"file":"/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js","function":"parseError","line":179,"method":null,"native":false},{"column":14,"file":"/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js","function":"parseType","line":302,"method":null,"native":false}]} 2024-08-13T01:03:42.975Z [4567/7623] - error: ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) 2024-08-13T01:03:42.978Z [4569/7625] - error: uncaughtException: NOAUTH Authentication required. ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) {"date":"Mon Aug 12 2024 20:03:42 GMT-0500 (Central Daylight Time)","error":{"command":{"args":[],"name":"info"}},"exception":true,"os":{"loadavg":[0.12,0.1,0.08],"uptime":84039.12},"process":{"argv":["/usr/bin/node","/home/nodebb/public_html/app.js"],"cwd":"/home/nodebb/public_html","execPath":"/usr/bin/node","gid":1006,"memoryUsage":{"arrayBuffers":18535345,"external":20792655,"heapTotal":55005184,"heapUsed":25626160,"rss":141709312},"pid":7625,"uid":1006,"version":"v22.6.0"},"stack":"ReplyError: NOAUTH Authentication required.\n at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12)\n at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14)","trace":[{"column":12,"file":"/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js","function":"parseError","line":179,"method":null,"native":false},{"column":14,"file":"/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js","function":"parseType","line":302,"method":null,"native":false}]} 2024-08-13T01:03:42.980Z [4569/7625] - error: ReplyError: NOAUTH Authentication required. at parseError (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:179:12) at parseType (/home/nodebb/public_html/node_modules/redis-parser/lib/parser.js:302:14) 2024-08-13T01:03:44.687Z [4567/7623] - verbose: [minifier] utilizing a maximum of 2 additional threads 2024-08-13T01:03:44.707Z [4569/7625] - verbose: [minifier] utilizing a maximum of 2 additional threads 2024-08-13T01:03:44.712Z [4567/7623] - info: [app] Shutdown (SIGTERM/SIGINT/SIGQUIT) Initialised. 2024-08-13T01:03:44.720Z [4569/7625] - info: [app] Shutdown (SIGTERM/SIGINT/SIGQUIT) Initialised. 2024-08-13T01:03:44.767Z [4568/7624] - verbose: [minifier] utilizing a maximum of 2 additional threads 2024-08-13T01:03:44.780Z [4568/7624] - info: [app] Shutdown (SIGTERM/SIGINT/SIGQUIT) Initialised. (node:7625) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) 2024-08-13T01:03:45.068Z [4569/7625] - error: Error [ERR_SERVER_NOT_RUNNING]: Server is not running. at Server.close (node:net:2278:12) at Object.onceWrapper (node:events:634:28) at Server.emit (node:events:520:28) at emitCloseNT (node:net:2338:8) at process.processTicksAndRejections (node:internal/process/task_queues:81:21) (node:7623) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) 2024-08-13T01:03:45.073Z [4567/7623] - error: Error [ERR_SERVER_NOT_RUNNING]: Server is not running. at Server.close (node:net:2278:12) at Object.onceWrapper (node:events:634:28) at Server.emit (node:events:520:28) at emitCloseNT (node:net:2338:8) at process.processTicksAndRejections (node:internal/process/task_queues:81:21) [cluster] Child Process (7625) has exited (code: 1, signal: null) [cluster] Spinning up another process... [cluster] Child Process (7623) has exited (code: 1, signal: null) [cluster] Spinning up another process... (node:7624) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) 2024-08-13T01:03:45.129Z [4568/7624] - error: Error [ERR_SERVER_NOT_RUNNING]: Server is not running. at Server.close (node:net:2278:12) at Object.onceWrapper (node:events:634:28) at Server.emit (node:events:520:28) at emitCloseNT (node:net:2338:8) at process.processTicksAndRejections (node:internal/process/task_queues:81:21) [cluster] Child Process (7624) has exited (code: 1, signal: null) [cluster] Spinning up another process...
-
Woot, I figured it out man!!! First off, in the config.json, i forgot to put the redis password on it. Then I was having trouble connecting to mongodb. I was googling, changing the config and finally did a sudo systemctl status mongodb to find out it wasn’t even running. So I enabled it, then started it and boom using ./nodebb dev started it right now.
So then I went back in and configured my nodebb.service file to match what nodebb had on their site and BOOOM it is working. By using the scaling method, nodebb runs even faster and I don’t get the 503 error when refreshing.
I have learned a lot by going through all of this and it is pretty awesome! Now having this complete, I have some more testing to do, but I am many steps closer to using Arch as my production server.
-
@Madchatthew Excellent! I looked at the error message above, and it does seem that your MongoDB configuration has been set to require authentication (which is correct), but seems the password was missing.
-
@phenomlab yeah I looked through the error log more carefully and found the Redis auth part first, then when that was cleared up I found the Mongodb auth error. Probably should have figured that one out first, but oh well hahah
-
@Madchatthew still a great catch.