When you install an app from the marketplace or privately, the server downloads the app's .zip
file and stores it so the app can restart automatically after a server reboot.
By default, app packages are stored in the database (MongoDB) using GridFS. Workspace administrators can configure this behaviour to store app package files directly in the filesystem instead.
To configure the app storage location, follow these steps:
Go to Administration > Workspace > Settings > General > Apps.
Update the following settings:
Field
Description
Apps' Source Package Storage type
Determines where app packages are stored. There are two available storage methods:
GridFS (Default): This method stores app packages as files within the MongoDB database. It is the recommended option as it requires no additional configuration.
Filesystem: This option stores packages directly on the host's server. While it offers full control over the storage location and access, it requires manual configuration.
Directory for storing apps source package
If you select Filesystem as the storage type, you must provide the absolute path for the directory where the packages will be stored. The Rocket.Chat server must have both read and write permissions for this directory to manage the packages.
Click Save Changes.
It's not recommended to change the storage type (GridFS to Filesystem or vice versa) when apps are already installed. Changing the storage configuration with installed apps will cause them to stop working correctly.
Rocket.Chat currently does not provide a migration mechanism to move packages between different storage methods.