You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some instances, when starting the container back up after stopping, a log error pops up:
web_1 | A server is already running. Check /dungeonbuddies/tmp/pids/server.pid.
Running docker-compose ps to list container status returns:
Name Command State Ports
-------------------------------------------------------------------------
dungeonbuddies_db_1 docker-entrypoint.sh postgres Up 5432/tcp
dungeonbuddies_web_1 bundle exec rails s -p 300 ... Exit 1
A quick and dirty solution is to remove the server.pid file in the above directory:
However, logging this as an issue to keep track of how frequent this is happening and that we should look for ways around it so that restarting a container back up is more predictable.
The text was updated successfully, but these errors were encountered:
The second volume masks the tmp folder in the host OS so that all other project folders are available for the container except the tmp. When you run docker-compose down, this tmp folder within the container is wiped out.
In some instances, when starting the container back up after stopping, a log error pops up:
Running
docker-compose ps
to list container status returns:A quick and dirty solution is to remove the server.pid file in the above directory:
Also see: https://stackoverflow.com/questions/35022428/rails-server-is-still-running-in-a-new-opened-docker-container
However, logging this as an issue to keep track of how frequent this is happening and that we should look for ways around it so that restarting a container back up is more predictable.
The text was updated successfully, but these errors were encountered: