Migrate to new server with docker-compse

Description

I’m trying to move my RC installation to a new server, I’ve setup nginx and docker-compose on the new server identically to the older server, and copied the data-folder to the new server.
The old server OS is: Ubuntu 14.04.
The new server OS is: Ubuntu 18.04.

When I first start the new server it works for a while, but shows “Internal Error” messages in the corner regularly. Some actions does not work at all, such as visiting a channel. I added some screenshots of the errors that are produced.

Server Setup Information

  • Version of Rocket.Chat Server: 2.1.1
  • Operating System: Ubuntu
  • Deployment Method: Docker-compose
  • Number of Running Instances: 1
  • MongoDB Version: 3.6
  • Proxy: Nginx

Additional Information

I tried doing it with mongodump at first but I couldn’t figure out how to do it, so I hoped that it would work just as well by copying the data folder.

Any help would be much appreciated!

Nevermind, I solved this by doing a mongodump on the original server and mongorestore --drop on the new server.

1 Like

I have also deployed using the docker-compose method.
And used mongodump on my on click install on DigitalOcean’s server to backup the data.
How do I now mongorestore in my already running Docker container?

Do I go in like this?:
docker exec -it <container_id> /bin/bash

This could be more of a Docker question than RocketChat.

Thanks for your help in advance.

I am Using Rc in My old server Rc version 0.73.2 Now I want to update it to latest and in Aws server when i am trying it is not taking the backup/data which i copied from old server it is starting new launch wizard