Permission issue local file system

Operating system


Joplin version


Sync target

Joplin Server

What issue do you have?

I am running joplin server v2.13.3 (prod) in a docker container on debian and I'm trying to get file system storage to work via the appropriate environmental variable.

STORAGE_DRIVER=Type=Filesystem; Path=/my/path

Paths I have tried:


No matter which path I use, I keep getting the following error on startup

[Error: Could not write content to storage: EACCES: permission denied, mkdir '/mnt/files/te'] {
app_1 | 22:16:04 0|app | errno: -13,
app_1 | 22:16:04 0|app | code: 'EACCES',
app_1 | 22:16:04 0|app | syscall: 'mkdir',
app_1 | 22:16:04 0|app | path: '/mnt/files/te'

This is in my docker-compose.yml

        image: joplin/server:latest
            - db
            - "22300:22300"
        restart: unless-stopped
           - /docker/joplin/data:/mnt/files
            - {...}
            - STORAGE_DRIVER=Type=Filesystem; Path=/mnt/files
            - STORAGE_DRIVER_FALLBACK=Type=Database; Mode=ReadAndWrite

Any help would be appreciated

I think what I did was to access the docker container as root:

docker exec -u root -it {{CONTAINER_ID_HERE}} bash

Then run:

chown joplin:joplin /mnt/files

Alternatively: It might also be possible to set ownership in the host, but I didn't try this:

chown 1001:1001 /docker/joplin/data

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.