Snaps

Installation

Snaps are secure. Rocket.Chat and all of its dependencies are isolated from the rest of your system. Snaps also auto update when we release a new version. So no need more hassle updating.

On Ubuntu 14.04LTS, install snapd first:

sudo apt-get install snapd

FAQ

If you have questions about snaps best place to ask them is at the #ubuntu-snap channel.

When will my snap installation get the latest release?

Snaps are one of our biggest install base. They are also auto updating. As a result we like to spend more time testing before releasing. Updated Snaps are usually released around the 15th of the month - around 2 weeks after a new release. This gives us time to look for issues so you don’t have to.

If you have special requirements and really need to use the latest release immediately then please consider another installation method e.g docker

How do I access my site at a different port? How do I enable TLS/SSL with my snap?

5. If you choose to proceed and all goes well, you will see some output similar to:

If something goes wrong, you will instead be presented with a path to the relevant log file to help remedy errors. In this case, the database may not be usable until a restore is successfully performed.

6. Start your rocketchat-server:

sudo service snap.rocketchat-server.rocketchat-server start

What folders do snaps use?

Your actual snap files for each version of Rocket.Chat are copied to: /var/lib/snapd/snaps and they are mounted in read-only mode.

Your snap common directory is: /var/snap/rocketchat-server/common/; file uploads to disk and the database are stored here.

Your snap data directory is /var/snap/rocketchat-server/<version>; this is a versioned folder.

You can access the current snap data directory at /var/snap/rocketchat-server/current.

How do I remove a specific previous version of Rocket.Chat?

You can do this by issuing the following command, where N is the desired version:

How do I change other environmental variables in my snap?

Starting from relase 0.73 is possible to overwrite any rocket.chat environmental variables dropping files ending in .env in $SNAP_COMMON directroy (/var/snap/rocketchat-server/common/), for example you can create a file to change SMTP settings: