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

front hangup on restart #341

Closed
gizocz opened this issue Dec 3, 2017 · 2 comments
Closed

front hangup on restart #341

gizocz opened this issue Dec 3, 2017 · 2 comments

Comments

@gizocz
Copy link

gizocz commented Dec 3, 2017

When front container restarts it logs only "Hangup" and does not start. How to reproduce: "docker-compose restart front" OR "systemctl restart docker" OR reboot the machine.

Problem is "nginx -s reload" in config.py. On the first run, it logs 'nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)'. If the container restarts, the "/var/log/nginx.pid" exists, but the not the process, and "nginx -s reload" is the last command executed, "Hangup" is logged, and container exited with code 129.

@kaiyou
Copy link
Member

kaiyou commented Dec 3, 2017

Thanks for reporting, will fix urgently.

@kaiyou kaiyou added the bug label Dec 3, 2017
@kaiyou kaiyou closed this as completed in 4761646 Dec 3, 2017
kaiyou added a commit that referenced this issue Feb 8, 2018
@MadOtis
Copy link

MadOtis commented Apr 1, 2018

FWIW, it's still happening in v1.5.1 (not sure what version the fix on Feb 8 went into), but it just happened to me this afternoon.

As a work-around to get front running again (since it dies before I can get into the container and manually remove the pid file), I used this work-around:

  1. Manually created a folder named 'pids' in the /mailu folder.
  2. Manually added a mount to the front container in docker-compose.
  3. docker-compose restart the stack.

Also, in fix #341, the fix looks to be removing and checking in /var/log/nginx.pid... is that right? Or, shouldn't it be in /var/run/nginx.pid?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants