File uploading [0%] permission, docker

Description

I’m useing local storage with docker.
I creataed the uploads directory with root chown.

docker exec -it rocketchat chmod -R 777 /tmp

docker exec -it rocketchat chmod -R 777 /app/uploads
chmod: changing permissions of ‘/app/uploads’: Operation not permitted

docker exec -it rocketchat chown -R rocketchat:rocketchat /app/uploads
chown: changing ownership of ‘/app/uploads’: Operation not permitted

Error in browser:
/api/v1/rooms.upload/kW3FPRv4JyT8KBfsT
{“status”:“error”,“message”:“API endpoint does not exist”}

Server Setup Information

  • Version of Rocket.Chat Server: 3.0.7
  • Operating System: ubuntu 18.04
  • Deployment Method: docker
  • Number of Running Instances:
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 12.14.0 - x64
  • MongoDB Version: 4.0.17
  • Proxy: nginx
  • Firewalls involved: ufw

Any additional Information

/app/bundle/programs/server/node_modules/fibers/future.js:313
throw(ex);
^
MongoNetworkError: failed to connect to server [mongo:27017] on first connect [Error: connect ECONNREFUSED 172.18.0.3:27017
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14) {
name: ‘MongoNetworkError’,
errorLabels: [Array],
[Symbol(mongoErrorContextSymbol)]: {}
}]
at Pool. (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/topologies/server.js:431:11)
at Pool.emit (events.js:210:5)
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:557:14
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connect.js:39:11
at callback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connect.js:261:5)
at Socket. (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connect.js:286:7)
at Object.onceWrapper (events.js:300:26)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: ‘MongoNetworkError’,
errorLabels: [ ‘TransientTransactionError’ ],
[Symbol(mongoErrorContextSymbol)]: {}
}
Tried 1 times. Waiting 5 secs…
Setting default file store to FileSystem
LocalStore: store created at
LocalStore: store created at
LocalStore: store created at
Setting default file store to FileSystem
{“line”:“120”,“file”:“migrations.js”,“message”:“Migrations: Not migrating, already at version 174”,“time”:{"$date":1586803553783},“level”:“info”}
ufs: temp directory created at “/tmp/ufs”
Updating process.env.MAIL_URL
Loaded the Apps Framework and loaded a total of 3 Apps!
Using GridFS for custom sounds storage
Using GridFS for custom emoji storage
Browserslist: caniuse-lite is outdated. Please run next command npm update
➔ System ➔ startup
➔ ±-----------------------------------------------+
➔ | SERVER RUNNING |
➔ ±-----------------------------------------------+
➔ | |
➔ | Rocket.Chat Version: 3.0.7 |
➔ | NodeJS Version: 12.14.0 - x64 |
➔ | MongoDB Version: 4.0.17 |
➔ | MongoDB Engine: mmapv1 |
➔ | Platform: linux |
➔ | Process Port: 3000 |
➔ | Site URL: https://… |
➔ | ReplicaSet OpLog: Enabled |
➔ | Commit Hash: … |
➔ | Commit Branch: HEAD |
➔ | |
➔ ±-----------------------------------------------+
Error: FileNotFound: no file with id iZGmxcZifSvYhKw9g found
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/gridfs-stream/index.js:188:25
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:410:17
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:398:11
at ClientSession.endSession (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/sessions.js:134:41)
at executeCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:395:17)
at deleteCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/operations/collection_ops.js:349:17)
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/operations/collection_ops.js:364:54
at handleCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:128:55)
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/operations/collection_ops.js:1259:5
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:397:18
at processTicksAndRejections (internal/process/task_queues.js:75:11)
ufs: cannot write file “iZGmxcZifSvYhKw9g” (EACCES: permission denied, open ‘/iZGmxcZifSvYhKw9g’) [Error: EACCES: permission denied, open ‘/iZGmxcZifSvYhKw9g’] {
errno: -13,
code: ‘EACCES’,
syscall: ‘open’,
path: ‘/iZGmxcZifSvYhKw9g’
}
ufs: cannot delete temp file “/tmp/ufs/iZGmxcZifSvYhKw9g” (ENOENT: no such file or directory, unlink ‘/tmp/ufs/iZGmxcZifSvYhKw9g’)
server.js:204 StreamBroadcast ➔ Stream.error Stream broadcast from ‘undefined:3000’ to ‘192.168.1.102:3000’ with name notify-user not authorized
Error: FileNotFound: no file with id BToYyfNXnPETDvmtG found
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/gridfs-stream/index.js:188:25
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:410:17
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:398:11
at ClientSession.endSession (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/sessions.js:134:41)
at executeCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:395:17)
at deleteCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/operations/collection_ops.js:349:17)
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/operations/collection_ops.js:364:54
at handleCallback (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/utils.js:128:55)
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/operations/collection_ops.js:1259:5
at /app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:397:18
at processTicksAndRejections (internal/process/task_queues.js:75:11)
ufs: cannot write file “BToYyfNXnPETDvmtG” (EACCES: permission denied, open ‘/BToYyfNXnPETDvmtG’) [Error: EACCES: permission denied, open ‘/BToYyfNXnPETDvmtG’] {
errno: -13,
code: ‘EACCES’,
syscall: ‘open’,
path: ‘/BToYyfNXnPETDvmtG’
}
ufs: cannot delete temp file “/tmp/ufs/BToYyfNXnPETDvmtG” (ENOENT: no such file or directory, unlink ‘/tmp/ufs/BToYyfNXnPETDvmtG’)

Do you have any idea?