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

/run/nginx folder missing on k8s #74

Closed
tctlrd opened this issue Dec 31, 2023 · 1 comment
Closed

/run/nginx folder missing on k8s #74

tctlrd opened this issue Dec 31, 2023 · 1 comment

Comments

@tctlrd
Copy link
Contributor

tctlrd commented Dec 31, 2023

For some reason the /run/nginx folder is missing when I deploy opentrashmail on kubernetes.
This prevents nginx from starting.
nginx throws this error: "nginx: [emerg] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)"
I realize that there is a command to create this folder in the Dockerfile. I am not sure why it is missing whenever I deploy...
I was able to solve the issue by adding "mkdir -p /run/nginx" to the start.sh before the "nginx" command.
https://github.com/tctlrd/opentrashmail/blob/master/docker/rootfs/start.sh#L22
If this fix could be added, that would be nice.

@geek-at
Copy link
Member

geek-at commented Dec 31, 2023

sure, send a pull request

tctlrd added a commit to tctlrd/opentrashmail that referenced this issue Dec 31, 2023
This fixes an issue in kubernetes where the /run/nginx folder is missing on deployment.
HaschekSolutions#74 (comment)
@geek-at geek-at closed this as completed Jan 2, 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