Skip to content

Permission denied issue even though the permission is set correctly #214

@Rhiig

Description

@Rhiig

I'm currently trying setup my Opencloud instance with docker compose.
Maybe important note: I'm using docker in rootless mode.

After editing the .env (my config) and the external-proxy/opencloud.yml (from 127.0.0.1:9200 to 0.0.0.0:9200 due to some weird port opening issues) I started the containers for the first time (I created the opencloud-config and opencloud-data directories as the user 1000:1000 and assigned them).

Now it says

2026/02/02 15:39:55 Could not create config: open /etc/opencloud/opencloud.yaml: permission denied
The jwt_secret has not been set properly in your config for opencloud. Make sure your /etc/opencloud config contains the proper values (e.g. by using 'opencloud init --diff' and applying the patch or setting a value manually in the config/corresponding environment variable).
The jwt_secret has not been set properly in your config for opencloud. Make sure your /etc/opencloud config contains the proper values (e.g. by using 'opencloud init --diff' and applying the patch or setting a value manually in the config/corresponding environment variable).

I've not seen the jwt_secret in the .env example but okay, that'd be an easy fix. The concern is the permission denied. After making the application sleep instead of run I tried writing through the docker exec command or listing with ls -ln. It shows that the directory is owned by either root:root or none:none.
If I now check the owner myself by doing ls -ln opencloud-config/ it show the files "banned-password-list.txt" and "csp.yml" both being owned by 1000:1000.

-rw-r--r-- 1 1000 1000 0 Feb  2 16:39 banned-password-list.txt
-rw-r--r-- 1 1000 1000 0 Feb  2 16:39 csp.yaml

Why does this not work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions