Rocket.chat file storage: where?
-
Hi Girish and fellow Rocket.Chat admins,
We have run into space issues with our 100GB Digial Ocean Cloudron droplet where we run NextCloud, Rocket.Chat and a few other apps. We cleaned out the Next.Cloud trash (thanks to the good advice on this forum) and then removed some more big documents. We're in the clear now but would like to finish the clean up.
We know that we have a lot of uploaded files in our Rocket.Chat install but we were unable to find them. The files are supposed to be flat files according to Rocket.Chat documentation. We can't find them by name, searching the server via terminal.
Could anyone tell us how we should best 1. find our Rocket.Chat uploads and 2. manage our files uploaded on the server via Rocket.chat?
Thanks for any advice in advance.
Alec
-
@foliovision the files are stored based on your attachment settings in Rocket.Chat . By default, this is GridFS . This stores files in the database itself - https://docs.rocket.chat/use-rocket.chat/workspace-administration/settings/file-upload/recommendations-for-file-upload
You can set a retention policy and it will clean things up - https://docs.rocket.chat/use-rocket.chat/workspace-administration/settings/retention-policies
-
Thanks girish! It's highly ironic where Rocket.Chat to whom many of have turned to move our private chat outside of the All Seeing Eye of Sauron recommends storing one's file attachments:
What we recommend as the best option for the file upload system are Amazon S3 and Google Cloud Storage.
Those retention policies might work for us ("delete files only") if we warn all our users that files are temporary in Rocket.Chat and that everything important should be downloaded and saved locally.
-
@foliovision maybe alternately, you can change the storage to file system. It's somewhere in attachment configuration under rocket.chat settings. But IMPORTANT note: I think this makes the existing attachments inaccessible. I think someone asked for a script to migrate but this is not an easy task.