[Ruby] How to fix A server is already running. Check /[WORKDIR]/tmp/pids/server.pid.

less than 1 minute read

Status

After docker-compose up,

A server is already running. Check /[WORKDIR]/tmp/pids/server.pid.
Exiting

Sometimes it came out and the server did not start up.

Cause

The reason is that if you forcibly delete the container while the service is running, the pid file will remain.

Solution

As instructed

tmp/pids/server.pid.

When you go to, the numbers are written here. Deleting the server.pid. file and docker-compose up will solve the problem.