Site icon MageComp Blog

Solved: Magento 2 Service Temporarily Unavailable (Error 503)

Magento 2 Service Temporarily Unavailable Error 5031 1

Hello Magento Folks,

Last time we learned about Order state and order status and how they are different from each other? Today, I am here to explain to you how to solve error 503 – service temporarily unavailable for Magento 2 stores.

If you or your visitors are getting error 503 – service temporarily unavailable, it means that there is something wrong with your site. In other words, it means that the server is not available to fulfill the request at the moment due to it may not be responding, it may be busy, or it may be in the maintenance mode. You will likely get the below message.

You may get this kind of error when you have installed an extension or upgraded your Magento 2 version to the latest version. Whenever this message appears, you or your visitors will not be able to access the site.

Few errors can be seen during the installation of store or server

– Services temporarily unavailable

– The server is temporarily unable to handle the request.

– The server is temporarily unavailable due to capacity problems or maintenance downtime; please try again later.

Let’s look at the reasons for error 503 – Service Temporarily Unavailable for Magneto 2,

During the installation of Magento 2, the system creates the file .maintenance.flag  to show the system is under maintenance mode. This can be helpful to hide any issues or problems that occur during the installation or upgrade of your visitors.

The file is automatically removed after the overall processing is complete. But sometimes it may not be automatically removed or deleted, or the file may be created again in the system. Therefore, the existence of .maintenance.flag file in Magento 2 system will display error 503 – Service Temporarily Unavailable.

Let’s look at how to fix this error in Magento 2?

In Magento 2 root folder of var, navigate and find the file named .maintenance.flag. Delete this file. The file should have been deleted after update or installation is over, but due to some reason, it may be created again in the system.

Disabling the maintenance mode:

So this was it for the day. Once you complete the above steps, you will be free from error 503 – Service temporarily Unavailable. If you face any issues while doing so, then contact our support team for help.

One important note:

The maintenance mode file in Magento 2 differs from Magento 1 in a leading dot, compare: .maintenance. Flag and maintenance. Flag!

Happy Reading?

Exit mobile version