We’ve failed to migrate from snap to docker. Every time we restore the database the app crashes or shows intial wizard but it doesn’t work. Logs say nothing.
Should we initiate and register empty/new rocketchat instance on docker before db restore?
Our steps:
backup db with:
snap stop rocketchat-server.rocketchat-server
rocketchat-server.backupdb
run mongodb container, and restore the DB, to be able to do that first we have run something like this:
mongosh --eval ‘rs.initiate({_id: “rs0”,members: [{ _id: 0, host: “mongodb:27017” }]})’
and then go to the directory with backup and run mongorestore (we’ve tried to rename db before import (rename directory) and during import with mongorestore with “nsFrom” and “nsTo” but with no difference.
run rocketchat app container
in the webbrowser the app crashes or there is a initial wizard but the Next button doesn’t work.
@reetp: As you said: “You CAN setup Mongo in docker as 8.x and import a 7.x database to it.” - Would using the DB, that comes with RocketChat work? Upgrading RC docker container from 7.13.x to 8.x should upgrade the database as well - will it?
If so, I would set up 7.13.5 as docker container, mongorestore the old database and then upgrade to RC 8.x …
You have to backup the db, change the db name, then import into a new mongo, then run Rocket on the SAME version you backed up. Check it works properly.
Upgrade after you have checked it works.
If you had done what I said you wouldn’t need to do this.
Rocket should start and use your existing, imported database. If it doesn’t you have gone wrong.
When importing ONLY start Mongo, then import, THEN start Rocket.
Hi reetp, i’ll explain better. RC 8.5.1 in docker work very well in all components: desktop,smartphone,browser. I’ve lost nothing: messages,integration,etc…
Just miss this page (here a 7.13.5 installation):