Error uploading files

Description

Can not upload files. Docker logs show this error

rocketchat_1  | ufs: cannot write file "myoysPS9fegAXuA6g" (ENOENT: no such file or directory, open '/uploads//myoysPS9fegAXuA6g') [Error: ENOENT: no such file or directory, open '/uploads//myoysPS9fegAXuA6g'] {
rocketchat_1  |   errno: -2,
rocketchat_1  |   code: 'ENOENT',
rocketchat_1  |   syscall: 'open',
rocketchat_1  |   path: '/uploads//myoysPS9fegAXuA6g'
rocketchat_1  | }

I noticed that the path uploads has two // after uploads, not sure why its doing that.

Here is my docker (most of it)

services:
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:latest
restart: unless-stopped
networks:
- nginxproxymanager
ports:
- ‘3000:3000’
volumes:
- ./data/uploads/:/app/uploads/

Server Setup Information

  • Version of Rocket.Chat Server: 6.0.0
  • Operating System: Ubuntu Latest
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: MongoDB 5.0.15 / wiredTiger (oplog Enabled)
  • NodeJS Version: v14.21.2
  • MongoDB Version: MongoDB 5.0.15 / wiredTiger (oplog Enabled)
  • Proxy: nginx
  • Firewalls involved: disabled

Any additional Information

Hi! is the path Uploads is configured as /uploads/ ?

This might be it. Let me know before I try reproducing this error.

Thanks!

Yes the path is set as /uploads/

I also confirmed that the folders have 775 permissions

That’s the problem.

At Rocket.Chat you are pointing it to /uploads/

However, there is no folder there. At your docker-compose you are mounting:

  • ./data/uploads/:/app/uploads/

try changing Rocket.Chat upload folder to /app/uploads/

This might work :slight_smile:

Great catch! That resolved this issue. You have been great help @dudanogueira