How to detect the error cause: 'The requested URL returned error: 503'?

Asked

Viewed 576 times

6

I’m working on developing a web-site where I get back and forth the following error that I can see through the Firebug:

The requested URL returned error: 503

Is there any way to find out the origin of this problem, maybe through logs or something like that so you can solve it?

Note:
If you wait a few seconds and update the page, "I receive" the web-site in condition, that is, without the error.

  • See this: http://stackoverflow.com/questions/6299086/how-to-detect-cause-of-503-service-temporarily-unavailable-error-and-handle-it

1 answer

8


The HTTP error code 503 means that the service requested from the WEB server is not available, Apache usually presents such an error when it cannot meet the request in question, several may be the reasons, among them:

  • Server request overflow, which becomes unstable.
  • Internal error generated by some wrong configuration.
  • Lack of server resources available to fulfill the request.
  • Among others.

To find such errors, apache provides two places to look for bugs, the Errorlog and Accesslog, in a standard apache configuration, these logs can be found in

  • /var/log/apache2/error.log
  • /var/log/apache2/access.log

respectively.

If you are working with more than one virtual host in your installation, they may or may not be being recorded in different locations.

To record the virtual site.com host logs for example, add the following lines to the session <VirtualHost>...</VirtualHost> correspondent:

CustomLog /meu/caminho/onde/quero/salvar/os/logs/site.com.log combined
ErrorLog /meu/caminho/onde/quero/salvar/os/logs/site.com.error.log

and then the files site.com.log and site.com.error.log will contain the access and error logs respectively.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.