Thanks for the tips! However, it seems starting redis-server without a .conf file just create the dump.rdb in the same folder you start Redis (using Redis 2.8.19)
I had to redownload the redis.conf for 2.8.19, and can now start redis-server with the conf file in argument, I added the db path under "SNAPSHOTTING" in the redis.conf
/var/lib/redis/dump.rdb
Best posts made by maximus123
-
RE: Restoring/Upgrading nodeBB - Procedure
-
Restoring/Upgrading nodeBB - Procedure
I'm testing restoring nodeBB after a reboot on my server or a crash for example.
I set up redis with the default config:
-redis-serverI start nodeBB
-./nodebb startThis doesn't work, I have to run ./nodebb setup before ./nodebb start or the forum just show the top bar
After a setup, I can start the forums fine but it is a fresh new forums, seems like it did not load dump.rdb from redis. I lost all my categories and settings in nodeBB. Where is the category and settings saved on nodeBB? does running a "setup" overwrite them?I would really like to be able to save Redis database and be able to restore it before thinking of going in production with nodeBB.
Is there a guide available because I followed the "update" procedure but seems like I'm missing somethinghttp://forum.maximumtrainer.com:4567/
Edit:
Seems to have found the correct procedure, problem was I started Redis-server in a different location so the dump.rdb was not in /var/lib/redis like it should have beenSave
1- Save redis-server latest db
redis-cli save
2- shutdown nodeBB and redis-server
./nodebb stop
redis-cli shutdown
3- backup the corresponding dump.rdb file (location will be where you started redis-server)Restore
1- Delete old dump.rdb if present
2- upload good dump.rdb
3- start redis-server at the location where dump.rdb is
cd [location_of_dump.rdb]
redis-server
4- start nodebb
./nodebb start -
RE: Crash on Login Attempt
Fixed, I did not uninstall 2.4 properly, this guide helped me
Thanks!
-
Group - Adding a group "master" user?
I added a group so that it's users have a special access to a category (read, create thread, reply)
The moderator of the group (master user) also have moderator access on this category.Is it possible to give one user of the group the privilege to invite other user to the group?
Right now, he has to email me and ask me to had X user to the group, I would like to give him this access.
Thanks!Edit
I think I found it, you have to go to the group with your user and "grant ownership"?
-
RE: Upgrading from v0.6.1 to v0.9.0
Got it
maximur1@server.maximumtrainer.com [nodebb]# sudo node app --upgrade
13/11 18:11 [9409] - info: NodeBB v0.9.0 Copyright (C) 2013-2014 NodeBB Inc.
13/11 18:11 [9409] - info: This program comes with ABSOLUTELY NO WARRANTY.
13/11 18:11 [9409] - info: This is free software, and you are welcome to redistribute it under certain conditions.
13/11 18:11 [9409] - info:
13/11 18:11 [9409] - info: Beginning database schema update
13/11 18:11 [9409] - info: [2015/02/08] Clearing reset tokens skipped
13/11 18:11 [9409] - info: [2015/02/17] renaming home.tpl to categories.tpl skipped
13/11 18:11 [9409] - info: [2015/2/23] Activating NodeBB Essential Rewards - skipped
13/11 18:11 [9409] - info: [2015/02/24] Upgrading plugins:active to sorted set skipped
13/11 18:11 [9409] - info: [2015/02/24] Upgrading privilege groups to system groups skipped
13/11 18:11 [9409] - info: [2015/02/25] Upgrading menu items to dynamic navigation system skipped
13/11 18:11 [9409] - info: [2015/05/07] Upgrading uid mappings to sorted set skipped
13/11 18:11 [9409] - info: [2015/05/08] Fixing emails skipped
13/11 18:11 [9409] - info: [2015/05/11] Updating widgets to tjs 0.2x skipped
13/11 18:11 [9409] - info: [2015/05/20] Adding username:sorted and email:sorted skipped
13/11 18:11 [9409] - info: [2015/06/02] Creating group sorted sets skipped
13/11 18:11 [9409] - info: [2015/07/03] Enabling default composer plugin skipped
13/11 18:11 [9409] - info: [2015/08/18] Creating children category sorted sets skipped
13/11 18:11 [9409] - info: [2015/09/30] Converting default Gravatar image to default User Avatar
13/11 18:11 [9409] - info: [2015/09/30] Converting default Gravatar image to default User Avatar done
13/11 18:11 [9409] - info: [2015/11/06] Removing gravatar
13/11 18:11 [9409] - info: [2015/11/06] Gravatar pictures removed!
13/11 18:11 [9409] - info: [upgrade] Schema update complete!Solution
I had to add redis since it's not installed by default:
npm install
npm install redis
npm install connect-redis
npm install redis-server
ls -d node_modules/nodebb* | xargs -n1 basename | xargs npm update
node app --upgrade
Latest posts made by maximus123
-
RE: Problem after upgrading to 0.9.0 from 0.6.1
Exactly my issue, good to see there is a fix, will wait for 0.9.1
Thanks -
RE: Problem after upgrading to 0.9.0 from 0.6.1
Should I open an issue on github for this?
I have been browsing the issue list but haven't seen this one.
Looking for a way to help you fix it, let me know if I can do anything, I checked with developer mode on chrome but no error shows. -
RE: Problem after upgrading to 0.9.0 from 0.6.1
Redis now secured.. I should have read that before, thanks I had backup!
Problem 2 still exists, if you ever experimented that before
Basically, just reading any post and hitting the BACK button in the browser, minor bug for now.
Seems to be related with :
https://community.nodebb.org/topic/1029/pagination-nan -
RE: Problem after upgrading to 0.9.0 from 0.6.1
Seems you are right
By default Redis listens for connections from all the network interfaces
available on the server. It is possible to listen to just one or multiple
interfaces using the "bind" configuration directive, followed by one or
more IP addresses.
Examples:bind 192.168.1.100 10.0.0.1
bind 127.0.0.1can't believe it's open to everyone by default? hmmm
-
RE: Problem after upgrading to 0.9.0 from 0.6.1
Hey Julian,
How can you be sure someone flushed the data?
I added log support to redis, so if it happens again, I will check the log to see what happened.Redis-server should only be accessible from the server, and it's a VPS (only I have access).
Looks more like redis overwrited dump.rdb with some kind of bug, will investigate..
Here is my redis.conf -
Problem after upgrading to 0.9.0 from 0.6.1
I wake up this morning and the forum is down. I tried restarting nodebb and redis but not working (empty forum, like the DB was flushed), if you have any idea.. Thanks
http://forum.maximumtrainer.com:4567/Problem 1:
Something happened to the database, it's 18 bytes and should be 2MB. will restore.
What can be the cause of this?
See this screenshot
Seems like it's a redis problem, I checked nodebb log and it shows no error?
Log:
13/11 20:26 [13389] - info: [plugins/spam-be-gone] Settings loaded
13/11 20:26 [13389] - info: NodeBB Ready
13/11 20:26 [13389] - info: NodeBB is now listening on: 0.0.0.0:4567
13/11 20:41 [13389] - error: unable to delete picture /tmp/aOdBTz7R-a80LYNmVMmxtXgU.jpeg
14/11 11:33 [13389] - info: [emailer.postmark] Sentwelcome
email to uid 1
this is the restart I manually did this morning :
14/11 13:02 [13389] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.Problem 2:
I restored the dump.rdb I saved yesterday (thank god)
and having some issue at the moment, like this show up in the top bar when I click on a topic and hit BACK in the browser:
-
RE: Upgrading from v0.6.1 to v0.9.0
edited, will open a new post for this Thanks
-
RE: Upgrading from v0.6.1 to v0.9.0
I should probably install the anti-spammer stuff. I just have captcha but noticed some random user registering (porn site, etc.) WIll look to do that in the future.
-
RE: Upgrading from v0.6.1 to v0.9.0
Exactly! Learned a lot today with your help. I was afraid to upgrade but once you know how it works it's pretty easy.
Keep up the good work, nodebb rocks -
RE: Upgrading from v0.6.1 to v0.9.0
I have a backup every day of dump.rdb
About security, I haven't done much since the database and the forum are on the same server, in a non public area. Should be enough? Thanks!