Need Help Migrating from SNAP installation to "Manual" installation (done with rocketchatctl script)

Description

I need help or direction toward documentation on the best practices / processes for migrating an instance of Rocket Chat that was / is installed as a SNAP to a new instance of rocketchat that was installed using the rocketchatctl script.

Server Setup Information

  • Version of Rocket.Chat Server: 2.4.2
  • Operating System: Ubuntu 16.04 (Linux 4.15.0-66-generic)
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: 8.17.0
  • MongoDB Version: 3.6.14
  • Proxy: n/a
  • Firewalls involved: n/a

Any additional Information

New Server is Ubuntu 18.04 and has the latest rocket chat installed via the rocketchatctl script (was installed yesterday, will likely be reinstalled again immediately prior to migration). So for the sake of my question, you can assume the new server will have the version information provided by the current latest build installed by the rocketchatctl script.

Hi, you need to use the same version of rocketchat that you want to migrate from, otherwise migration may not work. If you are running the latest with rocketchatctl, you can re install and pass an argument to specify version (rocketchatclt -h).
Then snap uses gridfs so all your uploads are in the db as well as your messages, you should be able to restore the parties db from the snap in the rocketchat db from the rocketchatctl installation. In the FAQ for snap you can find the doc on how to backup the snap db, and also how to access mongodb.

I need to do the same thing after your update alert.

Server Setup Information

  • Version of Rocket.Chat Server: 2.4.14
  • Operating System: Ubuntu 18.04 (Linux 5.4.0-1024-gcp)
    Same as @4ndy
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: 8.17.0
  • MongoDB Version: 3.6.14
  • Proxy: n/a
  • Firewalls involved: n/a

When I try to run rocketchatctl install, I get the following message:
Storage engine from previous mongo installation in your system is not mmapv1

What do I need to do?
Thank you

I needed to do this to update to 3.x. It took me forever then I found this:

All you need to do is run:

snap switch rocketchat-server --channel=3.x/stable

Then run:

sudo snap refresh rocketchat-server

This got me to: 3.10.5

1 Like

Yup! This is the way to upgrade. Also should have 3.12.x now there too

1 Like

Loving it! Just waiting for the mobile 4.15.1 to drop!