Recreating nodeBB forum on new server
-
@howardm if they're installed from the ACP you're fine. Don't worry about copying anything. If you check the "dependencies" list in package.json for the two plugins, you can double check they're there.
It doesn't really matter if they're there, though. You can always reinstall them from the ACP.
-
Follow-up:
I installed nodebb in my home folder. (It's in /var/www on my current server. I'm not sure why I put it there. I presume it doesn't matter where it is.)
I first renamed the present dump.rdb file to "dump.rdb.old." I then copied the saved dump.rdb file to redis on my new server. This proceeded without an error. I changed the permissions of /var/lib/redis and the dump.rdb file appropriately. I then restarted redis and nodebb.
I didn't try to move over the plugins (Imgur; and Sendmail) I mentioned above.
Unfortunately, the result looks like this: http://192.241.201.15:4567
Instead of like this: http://howardmann.us:4567
How do I begin to troubleshoot the result ? Does the appearance of the page suggestive of some particular issue ?
Here is the contents of config.json:
{
"url": "http://192.241.201.15:4567",
"secret": "thesecret",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "thecorrectpassword",
"database": "1"
},
"type": "literal"
}
I don't see the "type": "literal" in config.json on my current server. I don't know what this is.
Thanks!
Howard
-
Try running
./nodebb build
and restarting. -
@pitaj said in Recreating nodeBB forum on new server:
./nodebb build
Thanks. I did this. Here is the output:
$ ./nodebb build
started
2018-02-25T23:55:01.182Z [16547] - info: [build] Building in parallel mode
2018-02-25T23:55:01.185Z [16547] - info: [build] plugin static dirs build started
2018-02-25T23:55:01.190Z [16547] - info: [build] requirejs modules build started
2018-02-25T23:55:01.192Z [16547] - info: [build] client js bundle build started
2018-02-25T23:55:01.194Z [16547] - info: [build] admin js bundle build started
2018-02-25T23:55:01.197Z [16547] - info: [build] client side styles build started
2018-02-25T23:55:01.199Z [16547] - info: [build] admin control panel styles build started
2018-02-25T23:55:01.217Z [16547] - info: [build] templates build started
2018-02-25T23:55:01.218Z [16547] - info: [build] languages build started
2018-02-25T23:55:01.219Z [16547] - info: [build] sounds build started
2018-02-25T23:55:01.225Z [16547] - info: [build] plugin static dirs build completed in 0.04sec
2018-02-25T23:55:07.666Z [16547] - info: [build] client js bundle build completed in 6.474sec
2018-02-25T23:55:07.666Z [16547] - info: [build] admin js bundle build completed in 6.472sec
2018-02-25T23:55:07.800Z [16547] - info: [build] sounds build completed in 6.581sec
Witoutfrom
option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or toundefined
to prevent this warning
2018-02-25T23:55:14.231Z [16547] - info: [build] client side styles build completed in 13.034sec
2018-02-25T23:55:17.727Z [16547] - info: [build] admin control panel styles build completed in 16.529sec
2018-02-25T23:55:17.848Z [16547] - info: [build] requirejs modules build completed in 16.658sec
2018-02-25T23:55:19.498Z [16547] - info: [build] languages build completed in 18.28sec
2018-02-25T23:55:19.519Z [16547] - info: [build] templates build completed in 18.302sec
2018-02-25T23:55:19.521Z [16547] - info: [build] Asset compilation successful. Completed in 18.336sec.
howardm@UbuntuFebruary2018:~/nodebb$ ./nodebb restart
Unfortunately, the result is the same: http://192.241.201.15:4567
Howard
-
@howardm It looks like your database didn't copy over correctly.
-
Thanks for responding. I used scp to copy it (dump.rdb) directly from server 1 to the home directory of server 2, and then (using cp) from the home directory to /var/lib/redis.
It's a small file (small database) and I didn't see any errors.
Could this method have introduced "corruption" ?
What method would you use ?
Howard
-
@howardm If I were you, I'd check that the redis database is correct using redis-cli. By viewing the contents of keys like
config
orplugins:active
you can make sure you have the right database settings. You also might want to check that"database": 1
is what you want, as the default is0
for redis. -
Well, that was it!
I changed the config.json to read: "database": "0" and it works.
When I installed nodebb,the setup (I think) said I could choose any database number, and I arbitrarily chose "1" without thinking that the redis database I was going to restore was (presumably) associated with "0". Or, stated differently, there is only one redis database involved in this situation.
Thanks, again, for the observation!
Howard