Question

Why Service Unavailable

Posted December 18, 2020 637 views
ApacheAPI

Is the problem from my side?

503 Service Unavailable

The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

[Fri Dec 18 16:48:00.614943 2020] [proxy_http:error] [pid 6320] [client 91.186.248.162:44685] AH01114: HTTP: failed to make connection to backend: >
[Fri Dec 18 16:48:43.523781 2020] [proxy:error] [pid 5859] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (127.0.0.1)>

<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:5000
ProxyPassReverse / http://127.0.0.1:5000
ErrorLog /var/log/apache2/datingapp-error.log
CustomLog /var/log/apache2/datingapp-access.log common
</VirtualHost>

Hello,

Thank you for reaching out, I’m sorry to hear about the issues that you’re experiencing with your site!

A 503 status code, or “Service Unavailable” error, means that the server is overloaded or under maintenance. If the server is not under maintenance, this can indicate that the server does not have enough CPU or memory resources to handle all of the incoming requests, or that the web server needs to be configured to allow more users, threads, or processes.

These types of issues can be troublesome to pinpoint, however we have some guides that will assist you with reviewing your Droplet’s resource usage and logs to find out what the likely causes could be:

How To Monitor CPU Use on DigitalOcean Droplets
https://www.digitalocean.com/community/tutorials/how-to-monitor-cpu-use-on-digitalocean-droplets

How To Use Top, Netstat, Du, & Other Tools to Monitor Server Resources
https://www.digitalocean.com/community/tutorials/how-to-use-top-netstat-du-other-tools-to-monitor-server-resources

How To View and Configure Linux Logs on Ubuntu and Centos
https://www.digitalocean.com/community/tutorials/how-to-view-and-configure-linux-logs-on-ubuntu-and-centos

Feel free to open the Support ticket for us to see on your Droplet. We will not be able to access it from community.

Hope this helps!

Cheers,
Lalitha

by Justin Ellingwood
Monitoring a server's resources is an important task for every administrator. There are many command line tools made for this purpose. This guide will cover some of the more popular utilities for monitoring your VPS.