I open commit on github here:
https://github.com/NodeBB/NodeBB/issues/10115
Fixed here:
https://community.nodebb.org/post/86534
https://github.com/NodeBB/NodeBB/commit/69a7634a78de51dfd50e72864fadf77a7b1ab46a
I am running nodebb for about 6 months. Today, it doesn't start anymore - I really need help on this one:
2014-12-11T01:57:28.142Z - info: Time: Wed Dec 10 2014 20:57:28 GMT-0500 (EST)
2014-12-11T01:57:28.145Z - info: Initializing NodeBB v0.5.4
2014-12-11T01:57:28.145Z - info: * using configuration stored in: /srv/www/myforum/nodebb/config.json
2014-12-11T01:57:28.146Z - info: * using redis store at 127.0.0.1:6379
2014-12-11T01:57:28.146Z - info: * using themes stored in: /srv/www/myforum/nodebb/node_modules
2014-12-11T01:57:29.391Z - error: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
at RedisClient.flush_and_error (/srv/www/myforum/nodebb/node_modules/redis/index.js:142:13)
at RedisClient.on_error (/srv/www/myforum/nodebb/node_modules/redis/index.js:180:10)
at Socket.<anonymous> (/srv/www/myforum/nodebb/node_modules/redis/index.js:95:14)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:441:14
at process._tickCallback (node.js:415:13)
2014-12-11T01:57:29.500Z - error: TypeError: Cannot read property 'loggerPath' of undefined
at Object.Logger.setup (/srv/www/myforum/nodebb/src/logger.js:43:45)
at Object.Logger.init (/srv/www/myforum/nodebb/src/logger.js:39:10)
at /srv/www/myforum/nodebb/src/webserver.js:39:9
at Object.<anonymous> (/srv/www/myforum/nodebb/src/webserver.js:151:2)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
Why it cannot connect to Redis when nodebb start
, but nodebb dev
can?
netstat -nlt | grep '3000\|6379'
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
What can I do to start my forum?
::UPDATE::
Starting with nodebb dev
works! I will run it like this in the meantime - I will be on #nodebb channel. I really need to find a solution for this problem...
Thanks!
It is now starting again. Sadly I am not sure at all what did the trick:
I think the error related to redis was when the nodebb was running and I did a apt-get update of redis...
Thanks to KicStart for all the help on the IRC channel (on freenode #nodebb),
Cheers!
@eeight said in Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED - since today!:
pidfile
I can confirm is was the pidfile for me. (For others: It's located in the root of your nodebb directory.)
I had restored from a backup and the pidfile was copied into the new directory.