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

Server won't start due to old .pid file #126

Open
caseyhofford opened this issue Mar 30, 2020 · 3 comments
Open

Server won't start due to old .pid file #126

caseyhofford opened this issue Mar 30, 2020 · 3 comments

Comments

@caseyhofford
Copy link
Contributor

When the app starts, sometimes the last process has not remove its server.pid file. This causes startup to fail. This is an issue in production because it requires manual intervention if the app or server restarts for any reason.

Reproduce:

  1. Start rails app with docker-compose.
  2. Force-close app with ctl-c
  3. Restart app with docker-compose
  4. See error message in console/logs:
    app_1 | A server is already running. Check /app/tmp/pids/server.pid. app_1 | Exiting ghgvc-1_app_1 exited with code 1
@teixeirak
Copy link
Contributor

How do we solve this?

@caseyhofford
Copy link
Contributor Author

I think I can add a command to the docker-compose file that clears this each time it starts. It's not a huge problem, but I figured I should log an issue for it. I will try to include this in the next PR.

@teixeirak
Copy link
Contributor

Okay, thanks!

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