Skip to content

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

@caseyhofford

Description

@caseyhofford

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions