Description
We want to move the production environment from snap to docker deployment. I have backuped the snap deployment as stated in Snap Backup and Restore - Rocket.Chat Docs
I then followed the guide [HOW TO] Migrate from Snap to Manual installed RocketChat
I did the mongo commands from inside the container. Restore went through without any errors but when I get to the page I am getting a 502 Bad Gateway error. I assume it has to do something with our configured environment:
nginx proxy is doing the ssl termination and rocketchat server is doing plain http on port 3000
The old snap server is having a different domain name than the new docker server. I think the old configuration does not fit to the new server. Is there any way to just backup/restore user data (rooms, channels, chat history) without server configuration?
Server Setup Information
- Version of Rocket.Chat Server:
→ old snap server: 3.18.7
→ new docker server: 5.0.4 - Operating System: Ubuntu 20.04
- Deployment Method: migration from snap to docker deployment
- Number of Running Instances: 1 snap server, 1 docker server
- MongoDB Version:
→ on the snap server: 3.6.14
→ on the docker server: 4.4.15 - Proxy: nginx ssl
Any additional Information
rocketchat log:
{"level":40,"time":"2022-08-25T06:54:00.423Z","pid":1,"hostname":"a472d4be0973","name":"Migrations","msg":"Not migrating, control is locked. Attempt 26/30. Trying again in 10 seconds."}
/app/bundle/programs/server/node_modules/fibers/future.js:280
throw(ex);
^
Error: Can't find migration version 232
at migrateDatabase (server/lib/migrations.ts:249:9)
Some indexes for collection 'rocketchat_integration_history' could not be created:
Index with name: _updatedAt_1 already exists with different options
Some indexes for collection 'rocketchat_nps_vote' could not be created:
Index with name: npsId_1_identifier_1 already exists with different options
LocalStore: cannot create store at /var/snap/rocketchat-server/common/uploads (EACCES: permission denied, mkdir '/var/snap')
{"level":40,"time":"2022-08-25T06:55:03.853Z","pid":1,"hostname":"a472d4be0973","name":"Migrations","msg":"Not migrating, control is locked. Attempt 2/30. Trying again in 10 seconds."}