How to fix Service Temporarily Unavailable (Error 503) in Magento

If you are a Magento user, you may have seen error 503 – Service Temporarily Unavailable. And you don’t know how to fix this issue. In this post, I will show you how to fix it.

Error 503 - Service Temporarily Unavailable

First, you have to learn about this error.

Error 503 code – Service Temporarily Unavailable is the server cannot handle the request (because it is overloaded or down for maintenance). Generally, this is a temporary state. It is one of the common errors while setting the Magento store.

So, why does it occur?

During the installation of Magento, it creates a file maintenance.flag. If the file still exists, the system will display an error 503 – Service Temporarily Unavailable. It will automatically delete that file after processing. But sometimes, it wasn’t deleted.

Disable the maintenance mode:

  • Go to Magento root folder and delete var/.maintenance.flag.
  • Fresh Magento 2 cache: php bin/magento cache:flush or via the Admin Panel.
  • If you see a message saying: “Exception printing is disabled by default for security reasons.” on the error log.
  • And if have an error “Please Upgrade your database”, run php bin/magento setup:upgradefrom the root directory.

*/ Note: Magento 1 maintenance mode file is different from Magento 2 maintenance mode file. Magento 1: delete maintenance.flag file from Magento root folder and Magento 2: delete .maintenance.flag file from the folder [Magento root folder]/var.

It comes to the end of the tech & tips: How to fix Service Temporarily Unavailable (Error 503) in Magento

I hope this is useful for you.

Thank you for reading!

5 1 vote
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Daniel
Daniel
December 18, 2019 4:18 am

Really great tips, it works, love your blog!

Adam Roger
Admin
December 18, 2019 7:20 am
Reply to  Daniel

Thanks, glad you found it helpful.

2
0
Would love your thoughts, please comment.x
()
x