[GH-ISSUE #74] /run/nginx folder missing on k8s #54

Closed
opened 2026-02-25 23:39:43 +03:00 by kerem · 1 comment
Owner

Originally created by @tctlrd on GitHub (Dec 31, 2023).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/74

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.

Originally created by @tctlrd on GitHub (Dec 31, 2023). Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/74 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.
kerem closed this issue 2026-02-25 23:39:43 +03:00
Author
Owner

@geek-at commented on GitHub (Dec 31, 2023):

sure, send a pull request

<!-- gh-comment-id:1872868347 --> @geek-at commented on GitHub (Dec 31, 2023): sure, send a pull request
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrashmail#54
No description provided.