Graylog2 / docker-compose

A set of Docker Compose files that allow you to quickly spin up a Graylog instance for testing or demo purposes.
Apache License 2.0
396 stars 138 forks source link

permission denied after starting #4

Closed necrofrost closed 3 years ago

necrofrost commented 3 years ago

I've ran the docker-compose file, but ran into an issue. after doing "docker logs graylog_graylog_1" I can see the last error:

ERROR: Unable to access file /usr/share/graylog/data/journal/graylog2-committed-read-offset: Permission denied"

maybe it has to do with the fact that I had to change the volumes to:

volumes:
      - ./data/graylog_data/:/usr/share/graylog/data/data
      - ./data/graylog_journal/:/usr/share/graylog/data/journal
Ralms commented 2 years ago

What was the solution for this? I'm having the same issue, I've tried letting docker create the folders, creating them myself, creating with sudo, nothing is working.

Ralms commented 2 years ago

Well, to leave here for others, I pretty much granted o+wx and g+wx permissions with chmod to the folders mounts.

RogueGhost93 commented 10 months ago

same issue here, any solution to this? If i define volumes at the bottom of docker-compose file and let docker take care of that then everything works. If i define volumes myself like