-
Notifications
You must be signed in to change notification settings - Fork 6
So the CantusDB server is down...
This page lists common troubleshooting steps when the Cantus Database server is down.
Obviously, one way you'll discover that the server is down is that someone will alert you that they tried to access Cantus DB but couldn't because of some error. Hopefully, though, you'll receive a notification that the server is down before it gets to this point. How? Through a service called Uptime Robot, we ping www.cantusdatabase.org every 5 minutes and get an email alert if the site is unreachable. If you want to get this notification, talk to whoever manages the lab gmail account about setting up forwarding of these notifications to you.
First, check the logs on the server to see if you can see any obvious errors:
-
ssh
into the server and head to the Docker Compose application home directory. On current servers, this is at/home/cantusdb/code/CantusDB/
. - Run
docker logs [name of container]
to see the logs for a particular container. The-f
flag on this command will follow logs. The--since
and--until
parameters can be useful to segment the logs (see the Docker documentation for details).
A good start to getting the application working again is to restart the Docker Compose application. Simply run docker compose down; docker compose up -d
in the terminal to do so.
If restarting the application doesn't work or if you cannot ssh into the server, you can also restart the VM on which the application is running:
- Log in to the Arbutus platform management app.
- Head to the
Compute > Instances
panel. - Find the server you are troubleshooting (either
ct-prd-cantus-database
orct-stage-cantus-database
). - In the "Actions" column, choose "Soft Reboot Instance". Depending on continued issues, you can try "Hard Reboot Instance".
Remember that the application will need to be restarted if you have restarted the VM.