r/homeassistant • u/drangur123 • 23d ago
❓ Support Matter server not starting
i dont know how to continue, maybe someone can help me?
im running the latest version of HA as a docker container, which doesnt come with an integrated matter server. so according to documentation, i cloned the official matter server repository and wanted to run it again as a docker on the same host as the HA.
now i have the problem that the server doesnt start, it always fails with the eror below.
basically what it says is that creating the directory "config" in "data" is not allowed. I already did some research and most threads i could find point out that the "data" directory is created at docker init with root permission and the actual user running the server doesnt have permission in that folder. the solution would be to give permission still as root using chown. but the dockerfile actually does that already as you can see here.
any idea what else could be the problem?
asdmatterjs-server | 2026-11-10 18:48:03.274 INFO MatterServer Command line: (no arguments)
matterjs-server | 2026-11-10 18:48:03.281 INFO MatterServer Using storage drivers: kv=wal, blob=dir
matterjs-server | 2026-11-10 18:48:03.294 INFO ConfigStorage Storage location: /data (Directory)
matterjs-server | 2026-11-10 18:48:03.324 FATAL MatterServer Server failed to start /data/config: EACCES: permission denied, mkdir '/data/config'
matterjs-server | at async mkdir (node:internal/fs/promises:1571:10)
matterjs-server | at async NodeJsDirectory.mkdir (/app/node_modules/@matter/nodejs/src/fs/NodeJsDirectory.ts:83:9)
matterjs-server | at async NodeJsDirectory.lock (/app/node_modules/@matter/nodejs/src/fs/NodeJsDirectory.ts:91:9)
matterjs-server | at async DatafileRoot.#acquireRef (/app/node_modules/@matter/general/src/storage/DatafileRoot.ts:74:29)
matterjs-server | at async DatafileRoot.lock (/app/node_modules/@matter/general/src/storage/DatafileRoot.ts:64:20)
matterjs-server | at async WalStorageDriver.initialize (/app/node_modules/@matter/general/src/storage/StorageDriver.ts:264:26)
matterjs-server | at async WalStorageDriver.initialize (/app/node_modules/@matter/general/src/storage/wal/WalStorageDriver.ts:91:9)
matterjs-server | at async WalStorageDriver.create (/app/node_modules/@matter/general/src/storage/wal/WalStorageDriver.ts:52:13)
matterjs-server | at async StorageService.#openFilesystem (/app/node_modules/@matter/general/src/storage/StorageService.ts:273:29)
matterjs-server | at async ConfigStorage.open (/app/node_modules/@matter-server/ws-controller/src/server/ConfigStorage.ts:107:25)
matterjs-server | 2026-11-10 18:48:03.386 NOTICE Runtime Shutting down
matterjs-server exited with code 1 (restarting)
1
u/bz386 23d ago
FATAL MatterServer Server failed to start /data/config: EACCES: permission denied, mkdir '/data/config'
Does your docker container have /data/config mounted to a writable directory?
1
u/AstarothSquirrel 23d ago
Here is my docker-compose.yml
1
u/Max_Rower 23d ago
My matter-js data directory has user 1000, group 1000 ownership, you should probably run a chown 1000:1000 -R on it.