Bạn có chắc chắn muốn xóa bài viết này không ?
How to fix Service Temporarily Unavailable (Error 503) in Magento
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
- Fresh Magento 2 cache:
php bin/magento cache:flushor 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.
Visit magetop blog to get useful information about ecommerce and magento