You visit a library's feed page or the admin web interface and you get a 500 error in your browser.
There are multiple causes for the error. An HTTP 500 error only indicates there is an internal server problem that the web server cannot resolve. Here are a few tips.
Restart the Application Service
Similar to the standard power cycle "turn it off; wait 30 seconds; turn it back on" advice you receive for a number of issues when dealing with hardware, occasionally a service issue can be resolved simply by restarting the Circulation Manager application server. For the Docker version of the Circulation Manager, log into the
circ-deploy in previous versions) container host and issue the following command to restart the uwsgi application:
sudo docker exec circ-webapp touch uwsgi.ini
Check the Application Log for Errors
Most problems producing a 500 response from the web server will also produce an error in the application log. You can review the log size by logging into the circ-webapp container host and issuing the following command:
sudo docker exec circ-webapp ls -l /var/log/uwsgi
If the log is less than 100MB or so in size, you can open the log file and search for errors.
- Enter the container:
sudo docker exec -it circ-webapp /bin/bash
- Open the log file for searching:
- Issue a command to search backwards from the top of the file for the ERROR string:
- Most likely you will find the latest error condition; check the timestamp to see if it is current
- If the error is current, review the error text and begin diagnosing the issue
- You can continue searching backwards for the previous error by pressing
- Post a message to the #devops channel on Slack if you get stumped and need help