Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zammad-NGINX can not write config file due to read-only #381

Closed
strifel opened this issue Oct 26, 2023 · 1 comment
Closed

Zammad-NGINX can not write config file due to read-only #381

strifel opened this issue Oct 26, 2023 · 1 comment
Assignees

Comments

@strifel
Copy link

strifel commented Oct 26, 2023

Infos

  • Docker version: 24.0.6
  • Docker-compose version: 2.11.1
  • Operating system (Docker host): Ubuntu 22.04

Expected behavior

  • The zammad-nginx container writes a working nginx config

Actual behavior

  • /docker-entrypoint.sh: line 119: /etc/nginx/sites-enabled/default: Read-only file system

Steps to reproduce the behavior

  • Use docker-compose file from this repository

Further information

- zammad-config-nginx:/etc/nginx/sites-enabled:ro

sets the /etc/nginx/sites-enabled path as read-only.

https://github.com/zammad/zammad/blob/74d5303cbf67c4507ccd0b78ac543f9fac533961/contrib/docker/docker-entrypoint.sh#L119
Writes the nginx config in

Further questions

Is there any reason why the init container has access to the nginx config as well? This threw me off quite a bit during the search for the problem.

Is there any reason why the nginx container has it mounted?
This seems to have been added in ffa1268 without further explanation

@mgruner
Copy link
Collaborator

mgruner commented Nov 2, 2023

Thanks for your report @strifel. It does not fail in the same way for me, but I agree that something is wrong with the current volume handling.

@mgruner mgruner self-assigned this Nov 3, 2023
@mgruner mgruner closed this as completed in 069bf2b Nov 3, 2023
floriankessler pushed a commit to floriankessler/zammad-docker-compose that referenced this issue Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants