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

UBI image issues with nginx permissions #175

Closed
jasonmadigan opened this issue Nov 29, 2024 · 0 comments · Fixed by #174
Closed

UBI image issues with nginx permissions #175

jasonmadigan opened this issue Nov 29, 2024 · 0 comments · Fixed by #174

Comments

@jasonmadigan
Copy link
Member

We've aligned our images recently to use UBI9 as a base, rather than using multiple images for builds (e.g. using both registry.access.redhat.com/ubi9/nodejs-20 and registry.access.redhat.com/ubi9/nginx-124:latest.

By not using the nginx image, the permissions for logs, cache and pids are restrictive OOTB after a dnf install of the nginx 1.24 package. This results in an error like this when starting with entrypoint.sh:

/usr/share/nginx/html/entrypoint.sh
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2024/11/29 15:22:39 [warn] 12#12: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
2024/11/29 15:22:39 [emerg] 12#12: open() "/var/log/nginx/error.log" failed (13: Permission denied)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant