Bạn có chắc chắn muốn xóa bài viết này không ?
Bạn có chắc chắn muốn xóa bình luận này không ?
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.
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:upgrade
from 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
.
Source : https://www.magetop.com/blog/how-to-fix-service-temporarily-unavailable-in-magento/
Visit magetop blog to get useful information about ecommerce and magento


