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

Trailing server.pid #68

Open
mika018 opened this issue Nov 23, 2021 · 0 comments
Open

Trailing server.pid #68

mika018 opened this issue Nov 23, 2021 · 0 comments
Labels

Comments

@mika018
Copy link
Contributor

mika018 commented Nov 23, 2021

Sometimes rails leaves a trailing /usr/src/app/tmp/pids/server.pid file in the container causing it not to be able to restart.
We fixed the latest incident reported here https://github.com/epimorphics/hmlr-ansible-deployment/issues/72 by removing the file manually but it would be nice if we can know exactly how it is left behind.

A potential solution is to just add

rm -f /usr/src/app/tmp/pids/server.pid

at the start of the entrypoint.sh script but not sure if that is the right solution. It is treating the consequence rather than the cause.

@mika018 mika018 added the bug label Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant