Skip to content

nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied) #304

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

Closed
K2ouMais opened this issue Apr 27, 2025 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@K2ouMais
Copy link

K2ouMais commented Apr 27, 2025

Bug Overview

Hello everyone,

my project using the 1.27.5-alpine-slim image isnt working anymore.

Using the 1.27.4-alpine-slim works without a problem.

This are the docker logs:

2025/04/27 21:41:51 [notice] 1#1: using the "epoll" event method
2025/04/27 21:41:51 [notice] 1#1: nginx/1.27.5
2025/04/27 21:41:51 [notice] 1#1: built by gcc 14.2.0 (Alpine 14.2.0)
2025/04/27 21:41:51 [notice] 1#1: OS: Linux 5.15.167.4-microsoft-standard-WSL2
2025/04/27 21:41:51 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/04/27 21:41:51 [emerg] 1#1: open() "/run/nginx.pid" failed (13: Permission denied)
nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied)

I found this mentioned in your README but I am not overriding the default nginx.conf at all and so I was expecting it to work out of the box.

Expected Behavior

I was expecting that it works like the 1.27.4 version.

Steps to Reproduce the Bug

Start a project using 1.27.5-alpine-slim.

Environment Details

  • Version of Docker and method of installation: [e.g. Docker Desktop / Docker Server]
  • Version/tag of the NGINX Docker unprivileged image or specific commit: [e.g. 1.4.3/commit hash]
  • Target deployment platform: [e.g. OpenShift/Kubernetes/Docker Compose/local cluster/etc...]
  • Target OS: [e.g. RHEL 9/Ubuntu 24.04/etc...]

Additional Context

No response

@K2ouMais K2ouMais added the bug Something isn't working label Apr 27, 2025
@jwesselink
Copy link

See #302

@K2ouMais
Copy link
Author

After using the newest images it seems to work again.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants