Common HTTP Errors on a Web Hosting¶
Error 503¶
Error 503 is nearly always caused by the application that you installed on your web hosting, or its configuration.
To understand how this error occurs, and to fix it, it is necessary to understand how our PaaS infrastructure works (the following explanation is simplified for demonstration purposes).
First, there is a Varnish cache server, which exists (in part) in order to relieve the web hostings by keeping elements in its cache for a limited duration. When you request a page that is found on a web hosting, it is the cache server that first receives the request, and in turn it transmits the request to the web server installed on the web hosting.
The web server that receives the request then searches for the content on the web hosting, and sends it to the cache server which in turn sends the visitor to the requested page. For HTML files, the page is sent directly, since the content is not dynamic. If you use a language for generating your pages (ex. php, Python, node.js, etc.) then it is generated by the interpreter of the language before being transmitted to the web server, which in turn sends the request.
What causes an Error 503?¶
This is precisely when the 503 error occurs; when not everything works correctly during the process described above. The cache server that sent the request to the web hosting is waiting for a response, namely the page that the visitor wanted to see. If the web hosting does not reply, for whatever reason, this will display the 503 error.
There are many reasons for this, and so it is necessary to analyze what is happening on the web hosting in order to find a solution. Here are some of the most common reasons:
The web hosting is too small: If the web hosting is too small with regards to its needs (for example, too many visitors, plugins that are very large or take up too many processes or resources.)
Timeouts: When a script takes longer than 180 seconds to execute, it stops. This is normal and avoids the consumption of resources when the script contains a bug.
The web hosting’s disk space is full: The data disk of the web hosting is 100% full. In this case, the services present on the web hosting will be unable to work correctly and the requests will not be able to be sent to the Varnish cache server.
The errors may originate from an incident on our end: a bug of the language interpreter, one of the plugins you installed on your CMS, etc.
These are the most common reasons that we are contacted by users who encounter an Error 503, though the list is not exhaustive.
Therefore, we recommend that you use the cache server made available to you in order to maximize the power of Web Hosting. If you don’t feel confident in configuring the cache system yourself, there are plugins that exist for most CMS that will assist you in its installation and configuration.
Note
When you contact us concerning an Error 503, our support can only look at the same logs of your web hostings that you have access to. We can not go farther because we cannot look at the source code of your website and offer suggestions. Therefore, if you do contact our support concerning an Error 503, please be as detailed as possible, so that we can try and find the origin of your problem as efficiently as possible.