[solved] Don't migrated NodeBB
-
I copied NodeBB folder and installed all what needed:
sudo apt-get install git nodejs nodejs-legacy npm redis-server imagemagick
next step:
sudo service redis-server stop; sudo cp dump.rdb /var/lib/redis/; sudo service redis-server start
What else should I do?
nodebb dev
:Clustering enabled: Spinning up 1 process(es). 27/4 01:03 [2441] - info: Time: Mon Apr 27 2015 01:03:30 GMT+0300 (MSK) 27/4 01:03 [2441] - info: Initializing NodeBB v0.7.0-dev 27/4 01:03 [2441] - verbose: * using configuration stored in: /home/nodebb/config.json 27/4 01:03 [2441] - verbose: * using redis store at 127.0.0.1:6379 27/4 01:03 [2441] - verbose: * using themes stored in: /home/nodebb/node_modules [cluster] Child Process (2441) has exited (code: null, signal: SIGSEGV) [cluster] Spinning up another process...
last line
nodebb upgrade
:./nodebb: line 26: 2502 Segmentation fault (core dumped) "$node" app --upgrade
I have done several times
nodebb setup
. -
Not sure if this is your issue, but you don't want to use "service redis-server stop", this doesn't actually check to see if the data has been written to disk, and it could mean your dump.rdb is corrupted. Use "redis-cli shutdown" instead.
-
@sergej-saveljev said:
I copied NodeBB folder and installed all what needed:
sudo apt-get install git nodejs nodejs-legacy npm redis-server imagemagick
next step:
sudo service redis-server stop; sudo cp dump.rdb /var/lib/redis/; sudo service redis-server start
What else should I do?
nodebb dev
:Clustering enabled: Spinning up 1 process(es). 27/4 01:03 [2441] - info: Time: Mon Apr 27 2015 01:03:30 GMT+0300 (MSK) 27/4 01:03 [2441] - info: Initializing NodeBB v0.7.0-dev 27/4 01:03 [2441] - verbose: * using configuration stored in: /home/nodebb/config.json 27/4 01:03 [2441] - verbose: * using redis store at 127.0.0.1:6379 27/4 01:03 [2441] - verbose: * using themes stored in: /home/nodebb/node_modules [cluster] Child Process (2441) has exited (code: null, signal: SIGSEGV) [cluster] Spinning up another process...
last line
nodebb upgrade
:./nodebb: line 26: 2502 Segmentation fault (core dumped) "$node" app --upgrade
I have done several times
nodebb setup
. -
I installed NodeBB again and all is well. I will work in this vein. Thanks!
-
Excuse me please. Something went wrong when copying files from one server to another, in connection with which the files were corrupted.
Redis database can be copied as I said above, but before that need to run
redis-cli -a mypassword SAVE
. I did not understand what the commandredis-cli shutdown
, sorry. -
redis-cli shutdown
is just a shortcut forredis-cli save
andredis-server stop
But unless your forum is very active, it's unlikely this is how it was corrupted.
-
@yariplus Strangely, I tried to run this command but redis-server does not turn off.