What does http 1.1 service unavailable mean

New Page

errors

July 26, 2022

Nabilla R. and Freddy M.

8 minute read

How to fix error 503 Service unavailable: 7 steps that work

Copy link

Copied !

How to fix error 503 Service unavailable: 7 steps that work How to Fix Error 503 Service Unavailable: 7 Steps That Work

Every time visitors access a website, the web browser sends a request to the web server. Sometimes, instead of fulfilling the request, the server sends a blank page with an HTTP status code. Please indicate an error.

Don’t worry though: most sites experience errors at least once in their life. The error 503 of service not available is one of the most frequent problems. Web servers return HTTP 503 error every time they are unable to process a request.

Like any server issue, the 503 service unavailable error can negatively impact a site if not resolved. Therefore, this guide will dive into the possible causes of this error and how to fix it effectively.

First, let’s start with what exactly is the 503 service unavailable error.

Download le livre électronique : Create your first website in 9 easy steps

Error code 503 service not available error
type of error Server Server Error
Error Variations 503 Service not available Error 503 Service not available 503 Service temporarily not available HTTP Error 503 HTTPS Error 503 HTTP Server Error 503 HTTP Error 503. Le service n’est pas available. The server is temporarily unable to service your request due to maintenance downtime or capacity issues. Please try again later.
Causes of error Resource usage exhaustion Communication problems with the server Sudden spikes in traffic Distributed Denial of Service (DDoS) attack DNS misconfiguration Plugin or theme incompatibility
  • What is the 503 Service Unavailable error and what causes it?
  • 7 steps to find the raíz cause and resolve the 503 error:
    • 1. Check resource usage
    • 2. Check ongoing maintenance
    • 3. Hold processes in ejection
    • 4. Reset firewall
    • 5. Check service records and corrija el código
    • 6. Restart your server and network equipment
    • 7. Check your DNS
  • Troubleshooting other 5xx errors

What is the 503 Service Unavailable error and what causes it?

Web browsers and web servers interact with HTTP (Hyper Text Transfer Protocol) status codes.

Cada vez que access a website, su navegador envía solicitudes al servidor web que aloja el contenido. There, the web server gets the solicited calls with an HTTP response status code.

These are the five server response codes:

  • 1xx – informative
  • 2xx – success
  • 3xx – redirection
  • 4xx – client error
  • 5xx – error del lado del servidor

Por lo general, los servidores solo devuelven el sitio web solicitado y los navegadores no muestran los códigos de estado HTTP, lo que indica que la conexión es exitosa. Sin embargo, siempre que ocurra un error, los servidores reenviarán un mensaje de error junto con el código de error.

The 503 service unavailable error is one among these error codes. It’s common and happens on the server side, showing that the server temporarily cannot handle the request.

Below are the most common ways the HTTP error 503 messages can appear in:

  • 503 Service Unavailable
  • Error 503 Service Unavailable
  • 503 Service Temporarily Unavailable
  • HTTP Error 503
  • HTTPS Error 503
  • HTTP Server Error 503
  • HTTP Error 503. The service is unavailable.
  • The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Browser showing 503 service not available error. Browser displaying the error 503 service unavailable.

Unlike other server-side errors, the HTTP error 503 service unavailable means that your web server operates properly but can’t be reached at the moment. Typically, it’s caused by a high number of requests sent to the server, which exhausts available resources.

In most cases, the 503 service unavailable error will disappear as soon as the traffic goes down. Hence, allowing visitors to view your content after a little while. However, when the error persists for an extended period, it might be an indication of a more serious problem within your server.

Therefore, the next section will show you the seven effective ways to find the root cause and resolve the 503 service unavailable error.

7 Steps to Find Root Cause and Resolve the 503 Error:

From checking your resource usage to viewing server logs, we will walk you through seven ways to diagnose and fix the HTTP 503 errors.

1. Check Resource Usage

The resources that a server uses are RAM, CPU, I/O, entry processes, and website inodes. Checking these metrics can help you confirm whether the issue is related to limited resources. For example, you can monitor incoming traffic and detect whenever an unusual traffic surge occurs.

Hostinger’s hPanel has excellent functionality to monitor resource usage. Users can access the dashboard and navigate to Order -> Order Usage.

Using hPanel Orders hPanel's Order Usage

From there, you will find various metrics related to your website’s resource usage, including:

  • CPU – the amount of CPU power consumed by your site.
  • Memory limit – total memory used by your website to process requests.
  • Processes – the number of processes running on your hosting account.
  • Throughput (I/O) – the speed of data transfers between the hard disk and RAM.
  • Total requests – the amount of HTTP and HTTPS requests of all hosting accounts.
  • Bandwidth – data transferred within a specific period of time.

These metrics can help you solve the 503 service unavailable error. For example, look at the following metric:

Memory exhaustion graph in hPanel Memory exhaustion graph on hPanel

In the graph above, the red line represents your current plan’s limit, and the blue one shows the amount of memory used by your website. When your website exceeds the memory limit, it will slow down your overall performance, triggering the HTTP error 503.

A good rule of thumb is to upgrade your hosting package to increase these three server components:

  • CPU. Although the CPU can process numerous requests simultaneously, a constant strain can exhaust the CPU and slow down your site’s performance. Therefore, if you have a large volume of requests, it’s best to upgrade your CPU capacity.
  • RAM. A website with large traffic needs to have more RAM to keep it up and running. The more memory your website has, the less strain it will have on your CPU, allowing the server to run faster and process more requests.
  • Bandwidth. The more bandwidth you have, the faster data travels between your site, users, and the internet. If your site has a lot of dynamic content, such as images and videos, you will need a higher bandwidth allowance for optimized loading time.

2. Check for Ongoing Maintenance

Regular server maintenance is vital to optimize site performance and minimize security risks.

Pro Tip

Use tools like GTMetrix to get insights on optimizing your site performance.

Generally, a web server or application is set to shut down whenever it’s going through maintenance.

With that in mind, the HTTP error 503 service unavailable might occur during this unexpected maintenance. For instance, some web hosts usually provide their users with automatic updates whenever a new WordPress version is released. The system automatically issues the 503 service unavailable error during the process.

Contact your hosting provider to check if the 503 error is caused by scheduled maintenance. Hostinger users can simply go to our status page and see real-time updates of the system.

Alternatively, you can choose to modify your server configuration options and disable automatic updates. That way, you will have complete control over your server maintenance.

Below are the steps to disable automatic updates via Hostinger’s hPanel:

  1. Access your hPanel dashboard and go to Website -> Auto Installer. Then, select WordPress.

Automatic WordPress installer in hPanel WordPress auto-installer on hPanel

  1. Next, fill in all necessary information, from your domain name to administrator login credentials.
  2. At the bottom of the page, you will see three automatic update options. Continue by selecting Turn off automatic application updates.

Turn off automatic app updates Turn off automatic application updates

  1. Click Install and wait for the process to complete.

3. Stop Running Processes

Another common problem causing the 503 service unavailable error is exceeding the maximum process limit. When your web server processes too many processes simultaneously, it can overload and stop working.

To get your site back online, you will need to stop running processes. For VPS hosting users, you can kill a process using the kill command line.

Meanwhile, shared hosting users can navigate to the hosting control panel and go to the Order Usage page. From there, scroll down to the bottom of the page until you find the Stop running processes option.

Stop running processes option Stop running processes option

Clicking on the Stop button will kill all ongoing processes on your website. Keep in mind that this solution is just a temporary fix – you still have to do further investigation to identify what is causing many processes to run simultaneously.

Start by examining your WordPress themes and plugins as they can use up resources and conflict with each other.

If you encounter the HTTP 503 error after installing a specific plugin, it means you have found the culprit. However, if you can’t identify which plugin is causing the problem, you might need to disable all plugins and enable them one by one.

Aside from plugins, poorly-coded WordPress themes can also trigger the 503 errors. To fix this, try to change your WordPress theme to a default one, such as Twenty Nineteen or Twenty Twenty.

If you keep exceeding the maximum process limit, some scripts or applications might be using more resources than your current plan provides. In this case, you will need to either optimize your website speed or upgrade your hosting plan altogether.

4. Reset Firewall

A web application firewall (WAF) blocks any suspicious traffic from coming into your site. In other words, the firewall protects your website against malicious activities, from brute force and DDoS attacks to cross-site scripting and SQL injections.

That being said, improper firewall configuration can detect false positives and block connections from a specific client. For example, your firewall might mistake a safe request from a content delivery network (CDN) as malicious, blocking critical traffic and triggering the 503 errors.

Resolve this problem by resetting your firewall configuration. Hostinger VPS users can go to the admin panel, navigate to the VPS Management section, and click Reset Firewall.

Reset firewall settings Reset firewall settings

However, the steps will vary depending on your hosting provider. It’s best to contact the support team and ask for assistance.

5. Check Server Logs and Fix the Code

If the 503 error still persists, try checking your error log.

Server-side logs record information about your website’s activities, from web pages requested by visitors to errors happening in the system. Using information from the logs, you can identify and fix errors more efficiently.

Usually, your hosting provider features the website error log through the admin dashboard. Hostinger users should access hPanel and go to Advanced -> PHP Configuration.

Advanced section of the hPanel, highlighting PHP Settings Advanced section of the hPanel, highlighting PHP Configuration

The next step is to switch to the PHP Options tab and check the logErrors option.

logErrors option in PHP Options tab logErrors option on the PHP Options tab

Scroll down to save the changes. Go to the public_html directory, open the wp_content folder, and view the error log file whenever an error occurs.

Additionally, you can also enable error logging by adding the WP_DEBUG PHP constant in the wp-config.php file.

To get started, open your website root directory and locate the wp-config.php file. Hostinger users can access hPanel and go to Files -> File Manager.

  1. Click on the public_html folder and choose wp-config.php.

archivo wp-config.php wp-config.php file

  1. Add the following code inside the file: define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false );
  1. Once you’re done, click the Save and close button.

wp-config.php file, highlighting the wp_debug code snippet wp-config.php file, highlighting the wp_debug code snippet

Moreover, you can check the server error log on your web server software by accessing the following file accordingly:

  • Nginx server: /var/log/nginx/error.log/
  • Apache server: /var/log/apache2/error.log/

6. Restart Your Server and Networking Equipment

The 503 service unavailable error can happen due to connectivity issues between the server chain hosting your application.

Thus, if you have root access to your website, one of the easiest ways to fix the 503 service temporarily unavailable error is to reboot your server. If your site is hosted on multiple servers, make sure to refresh each server to return it to normal.

To do so, Hostinger users can access the Server Management page and click on the Reboot button.

Server administration page, highlighting the Restart button Server management page, highlighting Restart button

If the 503 service unavailable error persists, the problem might come from temporary issues within your computer devices and home connection. This can happen due to network misconfiguration that prevents your devices from processing requests.

In this case, a simple restart can get the job done – switch off all networking equipment, wait for a second, and turn it back on again. Once done, reconnect your computer to the network and reload your website.

7. Check Your DNS

Another possible factor causing the 503 error is a DNS-related issue, such as unresolved IP addresses, unresponsive DNS servers, or a corrupted DNS cache.

One effective way to fix this issue is to flush your DNS. The way to flush DNS cache depends on your operating system. Below, we will show you how to perform this task on Windows, macOS, and Google Chrome.

Microsoft Windows

In Windows, open the command prompt and enter the following directive:

ipconfig /flushdns

The command will clear the DNS files and reset the DNS resolution cache. A confirmation message will appear once the DNS has been successfully flushed.

MacOS

Mac users can press F4 to access Terminal and run the following command:

sudo killall -HUP mDNSResponder

Important ! Different versions of macOS require different commands.

Google Chrome

Google Chrome users can flush DNS cache and browse the web.

Open the program and enter the following URL in the direction bar:

chrome://net-internals/#dns

Te llevará has the internal configuration page. After all, select the hidden Borrar option from host .

Cancel host cache option Clear host cache option

Temporarily changing your DNS servers is another method to try. Your ISP assigns your DNS servers by default, but you can always change them to third-party servers, like Google Public DNS.

Troubleshooting other 5xx errors

¿How to resolve the HTTP 500 error? ¿How to fix error 502: puerta de enlace incorrecta? ¿How to resolve the HTTP 504 error?

Conclusion

Error 503 is an HTTP status code that appears when the server cannot handle a request. Generally speaking, this error is caused by server maintenance. However, 503 errors can also be the result of resource outages.

Although the error usually goes away on its own, it can negatively affect your site’s performance and user experience if left unattended. With this in mind, we’ve looked at seven effective ways to resolve this issue and get your site back on track.

Let’s do a quick recap:

  1. Check resource usage – Check your resource  metrics to confirm if the issue is related to excessive usage. If necessary, upgrade your hosting plan.
  2. Check ongoing maintenance – Contact your hosting service provider to see if scheduled maintenance is in progress.
  3. Stop Running  Processes – Kill ongoing processes that are overwhelming your server capacity.
  4. Pare-feu Reset  : rétablit a pare-feu configured incorrectly by resetting it through your hosting administration panel.
  5. Check service logs and correct code : Analyze your website’s error logs and resolve any unusual code.
  6. Repair server and red equipment  : Repair server and red equipment for the resolver in case of possible configuration error.
  7. Check the DNS  : clear the DNS cache and temporally change the public DNS server.

In general, we hope that these troubleshooting steps will allow you to remove the HTTP 503 error and recover the website. If you have any further questions, feel free to leave them in the comments section below.

Was this tutorial helpful?

And

Non

Auteur Auteur

The author

nabilla r

Nabilla is a digital content writer at Hostinger. She has a passion for hosting and website development and is keen to share her knowledge to help people continue their journey online. When she’s not busy writing, she enjoys exploring nature and going on adventures.

More Nabilla R.

Auteur Auteur

The co-author

Freddie M.

Freddy is a WordPress theme reviewer at WP Theme Raves, a published WordPress blogger, web developer, and founder of Vista Media Enterprises – an online business dedicated to WordPress users looking to increase conversion rates through content marketing. Here he shares his rich experience.

More Freddy M.

Google Google translator

Google Google Translate


Video What does http 1.1 service unavailable mean

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…