Problem when restoring database on rocket-chat

Description

Hello, I try to migrate rocket chat 3.9.4 in new server (5.0.3). Installation is OK, but I have problem when I import database.

Backup in old server : sudo rocketchatctl backup

Import in new server : mongorestore --host localhost:27017 -db rocketchat --archive --gzip > /tmp/dump.gz

Import is OK, I have account, messages and images but it’s very slow. You have to wait several minutes to send an image and a few seconds for a message. In old version, there is no wait for sending images or messages. Performance are OK before importing database.

Do you have an idea ?

Thanks

Server Setup Information

  • Version of Rocket.Chat Server: Ubuntu 20.04
  • Operating System:
  • Deployment Method: manual installation
  • Number of Running Instances: 1
  • NodeJS Version: 14.20
  • MongoDB Version: 5.0.10

Hi!

Are you moving to docker or just migrating between different snap?

It’s a good idea to don’t skip majors, so

  • backup into the same version you are on the new server
  • then upgrade.

let me know if this helps.

Hello,
Thanks for your answer. I try moving from manual install to a new manual install.