Site fails to load due to maintenance mode left enabled

This article provides a fix for when your site doesn’t load due to maintenance mode being left enabled or not been disabled automatically. You may receive an error message: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems.

Affected versions and products

  • Adobe Commerce on cloud infrastructure 2.2.x, 2.3.x
  • Adobe Commerce on-premises 2.2.x, 2.3.x

Issue

Maintenance mode is a part of the deployment process. However, if it has been enabled automatically and has not been disabled, or the merchant enabled maintenance mode manually and forgot to disable, it can cause a failed deployment.

Cause

Having maintenance mode enabled prevents the site to load.

Solution

To check the current maintenance mode status, run the following command from the CLI:

bin/magento maintenance:status

To disable maintenance mode, run the following command in CLI:

bin/magento maintenance:disable

To learn when to use maintenance mode, refer to Enable or disable maintenance mode in our developer documentation.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a