Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Docker compose service fails to clean up pids on exit #347

Open
ysimonson opened this issue Aug 20, 2020 · 2 comments
Open

Docker compose service fails to clean up pids on exit #347

ysimonson opened this issue Aug 20, 2020 · 2 comments

Comments

@ysimonson
Copy link
Contributor

When running make up, I get this error:

sanctuary_web | A server is already running. Check /sanctuary/tmp/pids/server.pid.
sanctuary_web | => Booting Puma
sanctuary_web | => Rails 5.2.4.3 application starting in development 
sanctuary_web | => Run `rails server -h` for more startup options
sanctuary_web | Exiting

Exiting make up, running make down, or running make build do not fix the issue. AFAICS the only workaround presently is to shell into the web service and manually remove the file.

@CZagrobelny
Copy link
Owner

Ah, good to know. It seems like it may be an intermittent issue as well :/ I didn't hit it when running make up. I'm not super familiar with docker, so would also be interesting to see if this is a common issue.

It looks like we are attempting to remove this file on make build (https://github.com/CZagrobelny/new_sanctuary_asylum/blob/master/Dockerfile#L19) so it's definitely puzzling that running make build didn't resolve it 😬.

@ysimonson
Copy link
Contributor Author

Huh, yeah that looks like it should be fine. I can dig in a little later.

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

2 participants