RocketChat / RocketChat/Rocket.Chat
Unable to upload files on snap version of RC
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Installing a snap and then trying to upload a file (I have tried with jpg and pdf) do not work. This regards the default general channel, as well as a new channel I created.
Tested in the snap versions provided for Ubuntu 16.04 server and Raspbian 9.
The related error which appears in the logs of the server service itself is the following:
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: Error: FileNotFound: no file with id GSkEKEQSyjREkBJBH found
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at /snap/rocketchat-server/1278/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/gridfs-stream/index.js:190:25
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at /snap/rocketchat-server/1278/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/collection.js:1215:18
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at handleCallback (/snap/rocketchat-server/1278/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:120:56)
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at /snap/rocketchat-server/1278/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/collection.js:1252:5
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at /snap/rocketchat-server/1278/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:469:18
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at _combinedTickCallback (internal/process/next_tick.js:131:7)
Feb 27 13:58:22 localhost rocketchat-server.rocketchat-server[1985]: at process._tickDomainCallback (internal/process/next_tick.js:218:9)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing file uploads on the snap version using both the default and a newly created channel, with JPG and PDF files, while checking the server logs for the reported MongoDB GridFS FileNotFound error. Done means uploads complete successfully without that error on the tested Ubuntu 16.04 Server and Raspbian 9 snap installations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb
- Domain
- backend, databases, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100