Skip to content

Docker compose permission error  #224

@Taniya-Das

Description

@Taniya-Das

Observed permission error
For ex. "PermissionError: [Errno 13] Permission denied: '/logstash/config/config/logstash.yml'", in es_logstash_setup container.

Reproduction

Not completely sure how to reproduce, this seems to depend on how docker has been installed. On Jos' computer, all is fine. On Taniya, it isn't, neither is it on Rinjani or Agung servers.
To reproduce: clone the project into a new directory and run docker compose up -d.

Actual

Permission denied errors on some services that need to write information to the data folder, or to the logstash folder. Some services, such as mysql, are fine.

Expected

No permission denied exceptions.

Manually circumventing the problem

You can circumvent the problem by manually changing the owners of the directories (this is done on rinjani and agung) or by manually changing the permissions on the directories. This is no real solution of course - it should just work out of the box!

Additional info

We tried to fix this by making sure the correct directories exist with the correct user (that's why we committed data/connectors/.gitkeep for instance). This makes sure that the directories are created by the same user that also cloned the repo - which doesn't have to be the user that docker expects...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions