Setting up a new instance of NodeBB with old database?
-
If i were you i would restore the database with the backup and try to do the upgrade again. Maybe you can figure out what was worng the first time and do it properly.
I would say it is better not to mix bbdd and code versions, it could be so wrong.
Regards.
-
There was all sorts of issues with NodeBB after I upgraded. My NODE_PATH was set to nothing, and after I set it back to the correct path it couldn't find any of the npm dependencies, and also it broke my MongoDB (Can't run it anymore, gives me this error:)
Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145 exception: connect failed
So I can't really run the upgrade again.
If anyone is up for the task of fixing the mess I made, I guess I can offer $10 or $20 if you can restore it to where it was before.
Thanks
-
-
@BDHarrington7 said:
@Juxtapo Try looking at the logs for mongo, that's usually an indicator that something crashed. You can also check if there's already a process running that got in a bad state by entering the command
ps aux | grep mongo
Nothing has crashed, I restarted the VPS too and same issue. In the logs its giving me "Data directory /data/db not found", and I set the dbpath to the proper location but it isn't actually changing anything
@finid The main issue I need to fix right now is the database, I can't do anything with nodebb until the database is working properly.
Does anyone know if there is a way I can setup a new nodebb with my existing Mongo database? I feel like that would be much easier than repairing my Mongo and then repairing nodebb.
-
The main issue I need to fix right now is the database, I can't do anything with nodebb until the database is working properly.
But running that command will likely tell you why the application is not connecting to the DB...
The fix, once the cause is determined, will likely be easier than a fresh install
-
@finid said:
The main issue I need to fix right now is the database, I can't do anything with nodebb until the database is working properly.
But running that command will likely tell you why the application is not connecting to the DB...
The fix, once the cause is determined, will likely be easier than a fresh install
I can't even start the database on its own. A fresh install is very easy, would take under 30 minutes, and then if it is possible, I'm sure merging the old database isn't too hard.