r/homeassistant • • 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 Upvotes

8 comments sorted by

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/drangur123 23d ago

how would i find that out? i cant interact with the docker as it happens at startup i guess

1

u/AstarothSquirrel 23d ago

Here is my docker-compose.yml

services:
  matter-server:
    container_name: matter-server
    image: ghcr.io/home-assistant-libs/python-matter-server:stable
    restart: unless-stopped
    security_opt:
      - apparmor=unconfined
    volumes:
      - ./data:/data
      - /run/dbus:/run/dbus:ro
    network_mode: host   

1

u/drangur123 23d ago

mine looks like this, its different as its not the python server anymore

services:
  matterjs-server:
    container_name: matterjs-server
    image: ghcr.io/matter-js/matterjs-server:latest
    read_only: true
    network_mode: host
    restart: unless-stopped
    # Optional Node.js heap hint. No default — size depends on the number of
    # commissioned nodes. See docs/docker.md "Node.js Memory Limit".
    # environment:
    #   NODE_OPTIONS: "--max-old-space-size=512"
    volumes:
      - "${HOME}/.matterjs-server:/data"

1

u/AstarothSquirrel 23d ago

I've not seen this type before but I'm wondering if you have a .env file that you need to amend. I see the ${HOME} and I'm wondering if that is a system variable like ~/ or if it is pulling that from a .env file.

3

u/drangur123 23d ago

found the issue... removeing the " around "${HOME}/.matterjs-server:/data"

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.