@julian maybe it's been implemented in 0.7.x, if not is it possible to run the command with redis-cli. Something like: find all "Not Validated" users -> delete.
Thanks
@julian maybe it's been implemented in 0.7.x, if not is it possible to run the command with redis-cli. Something like: find all "Not Validated" users -> delete.
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!
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!
@baris Thanks a bunch, it now works!
127.0.0.1:6379> type notifications
set
Just did a "git pull" && nodebb upgrade. still not working.
Any ideas?
Everything was running fine, but after upgrading to v0.5.4 from git branch v0.5.x = no more notifications when someone upvote a post or use the @username reply? how can I debug this?
thanks!
Not sure why but the UpStart script from @julian is not launched at boot. I have to manually log and type service nodebb start
then it works (launching nodebb with the right user & group).
@julian Looks like it's impossible to run nodebb with www-data (nginx user), because www-data doesn't have a "real" account. So I created an user nodebb
and use your script in /etc/init/nodebb.conf
start on startup
stop on runlevel [016]
respawn
setuid nodebb
setgid nodebb
script
cd /srv/www/mywebsite/nodebb
./nodebb start
end script
When booting my server = nodebb is not started. I have to do manually service nodebb start
then it works.
@julian Not working for me. I'm using ubuntu. I tried your Upstart script with and without the --no-daemon
, I can see the process listed but the forum is not started. With --no-daemon
it minified in infite loop.
I am using nginx and user www-data setuid www-data
is that a problem?
su - www-data -c '/srv/www/mywebsite/nodebb/nodebb start'
No directory, logging in with HOME=/
This account is currently not available.
well I created an user for nodebb, but the problem persist. I am not able to boot nodebb at startup.
i am wondering about the other proposed script, they will start nodebb with root!? is that ok?
it would be very nice to have a better documentation for this part on https://docs.nodebb.org/en/latest/running/index.html
Even with the captcha (btw spam-be-gone is not working with 0.5-pre) I had many spam registration. Hopefully this will fix this situation. It works with 0.5-pre!
http://forum.pdpatchrepo.info
+-5k users
+- 40k posts
Ported from PunBB to NodeBB:
http://www.workinprogress.ca/punbb-to-nodebb/
@julian said:
People in the past have tried pre-generating reset links and sending them out, but because of the expiration, you end up with a bunch of users who try clicking the link after it times out, which obviously doesn't work.
I would be interested to know how they did it!
I guess it is possible to change the 2 hours expiration?
Any hints?