Rocketchat does not start after moving data to Docker installation

Until now I used snaps to deploy rocketchat, but the problems with snaps are increasing including a full failure after operating systems updates this week. So I decided to backup Mongo DB, reinstall rocketchat with dockers and import data.

As far as good, but now rocketchat fails to start because it tries to handle files related to custom emojis

rocketchat-1 | Error: EACCES: permission denied, mkdir ‘/home/emojis’
rocketchat-1 | at Object.mkdirSync (node:fs:1364:26)
rocketchat-1 | at mkdirpNativeSync (/app/bundle/programs/server/npm/node_modules/mkdirp/lib/mkdirp-native.js:29:10)
rocketchat-1 | at Function.mkdirpSync [as sync] (/app/bundle/programs/server/npm/node_modules/mkdirp/index.js:21:7)
rocketchat-1 | at new FileSystem (app/file/server/file.server.ts:140:10)
rocketchat-1 | at app/emoji-custom/server/startup/emoji-custom.js:33:38
rocketchat-1 | at Function.time (/app/bundle/programs/server/tools/tool-env/profile.ts:646:30)
rocketchat-1 | at /tools/static-assets/server/boot.js:453:19
rocketchat-1 | at processTicksAndRejections (node:internal/process/task_queues:105:5)
rocketchat-1 | at /tools/static-assets/server/boot.js:503:5
rocketchat-1 | at startServerProcess (/tools/static-assets/server/boot.js:501:3)

Can someone help me how to change the emoji setting without a running rocketchat (cli) or resolve this problem otherwise?

Debian GNU/Linux 13 (trixie)

Mongodb 6.0 Rocketchat latest

First the db name is different for snaps. It needs changing for docker. Search here for “parties”.

Next you need the same relative directories available in docker that you had in snaps and with the correct permissions.

Make sure they match the main docker perms as per the docs.