Pre Black Friday Sale. 20% OFF on all products. Coupon code: fme20off
[FIXED]: Magento 503 Service Temporarily Unavailable?
If you are searching for ‘service temporarily unavailable Magento 2’, you are facing trouble logging in to your admin panel or accessing the store front. Don’t worry as this is a common server-related error. In technical terms, service unavailability means a 503 error. When a server is unable to handle user requests, users cannot access any service at all.
The following errors appears on the screen:
“Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.”
Possible Causes of the Server is Temporarily Unable to Service your Request Due to Maintenance Downtime or Capacity
As stated above, the 503 is a server error. It may occur in one of the following cases:
- If the server is overloaded
- If the server is busy
- If the server is down for maintenance
This is however a temporary error and may restore once the server is available sometimes by just reloading the page. Thus, we recommend contacting the server provide first. If they report that there are no server issues, then there is no doubt that the error is on the store side.
Other Causes of the 503 Service Temporarily Unavailable Error in Magento 2?
During Magento 2 installation, a .maintenance.flag file is created to display a system message and inform users that the system is under maintenance. It helps to hide any issues that occur during installation. Usually, this file is automatically removed after successful installation.
However, it is not always the case. Based on our experience. There are instances where the file is either not removed or created again. In other words, whenever a user tries to access the store, they’ll keep coming across this error. Thus, the only solution is to remove this file.
How To Fix Service Temporarily Unavailable Error in Magento 2?
The .maintenance.flag file is mainly responsible for the error. So, to fix the error, you have to get rid of this file. Note that this maintenance file is different in Magento 1.x and Magento 2.x. In Magento 1.x, it is maintenance.flag in Magento root folder. In Magento 2.x, it is .maintenance.flag in Magento root folder/var.
To disable the maintenance mode, do the following.
- Go to the Magento root folder and delete the var/.maintenance.flag file
- Refresh Magento 2 cache from php bin/magento cache:flush or via the Admin Panel
- Check the error log if you see a message saying “Exception printing is disabled by default for security reasons.”
- Run php bin/magento setup:upgrade from the root directory if you see the error “Please Upgrade your database.”
Final Thoughts on Service Temporarily Unavailable Magento 2
This is the simplest solution to fix the Error 503: Magento 2 service temporarily unavailable. If you have any questions or if the error persists for you, don’t hesitate to contact our support team.
Related Articles:This blog was created with FME's SEO-friendly blog