Rocket.chat: FileSystem Upload Method Results In Internal Server Error

Created on 5 Jul 2017  路  3Comments  路  Source: RocketChat/Rocket.Chat

Rocket.Chat Version: 0.56
Migration 93
Running Instances: 1
Node Version: SNAP 671

FileSystem upload setting will not store uploaded files into designated directory

/var/snap/rocketchat-server/uploads set 777 owners root:root

RC already can write to this folder for server purposes. Why aren't the files being uploaded? After Upload progress bar proceeds to 100% "Internal server error is now displayed.

GOAL
A backup and restore with GridFS does not preserve attached files. FileSystem method has been elected to allow frequent crontab based backup of the RC attached files. Then when the RC server crashes, the Mongo backup will restore channel logs and a separate operation can restore the attached files.

Most helpful comment

Thanks! I created the /var/snap/rocketchat-server/common/uploads 775 root:root directory changed the upload method to FileSystem. Restarted the MongoDB and RC servers, restarted the RC Linux desktop app and files are now being uploaded to the file system directory. Thanks a million.

Mark, Saginaw Michigan

All 3 comments

Hi @ml48603
You need to create a folder called "uploads" (or whatever you want) in /var/snap/rocketchat-server/common and point the File System -> System Path to /var/snap/rocketchat-server/common/uploads
Hope that helps!

Thanks! I created the /var/snap/rocketchat-server/common/uploads 775 root:root directory changed the upload method to FileSystem. Restarted the MongoDB and RC servers, restarted the RC Linux desktop app and files are now being uploaded to the file system directory. Thanks a million.

Mark, Saginaw Michigan

You're welcome @ml48603

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marceloschmidt picture marceloschmidt  路  3Comments

Buzzele picture Buzzele  路  3Comments

antn89 picture antn89  路  3Comments

Buzzele picture Buzzele  路  3Comments

royalaid picture royalaid  路  3Comments