Skip to content

Fix for "nginx.pid failed (13: Permission denied)" error #125

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

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Fix for "nginx.pid failed (13: Permission denied)" error #125

merged 2 commits into from
Dec 6, 2023

Conversation

victor-sm
Copy link

I assumed this is some kind of permission error, caused by deleting and recreating the file, thus losing the owner set by chown in the Dockerfile. This fix circumvents this, by placing the files in a non-root subdirectory and adjusting the necessary configurations.

This solves the permission error on startup:

> unlink() "/var/run/nginx.pid" failed (13: Permission denied)
@victor-sm
Copy link
Author

Fixes #104

@macbre macbre merged commit 547443f into macbre:master Dec 6, 2023
@macbre
Copy link
Owner

macbre commented Dec 6, 2023

Thanks, @victor-sm !

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

Successfully merging this pull request may close these issues.

2 participants