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
maximus123
Posts
-
Restoring/Upgrading nodeBB - Procedure -
Restoring/Upgrading nodeBB - ProcedureI'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 -
Crash on Login AttemptFixed, I did not uninstall 2.4 properly, this guide helped me
https://gist.github.com/nghuuphuoc/7801123Thanks!
-
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"?
-
Upgrading from v0.6.1 to v0.9.0Got it
[email protected] [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