This article shows how to disable maintenance mode in the event your store shows the error message, “The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.” This also sometimes appears as HTTP error code 503.
ATTENTION: This error code is often the result of a failed or prolonged installation, upgrade, or backup causing your store to become “stuck” in maintenance mode. It is easily fixed with the below solution, or by contacting our Support Team for assistance.
By default, both Magento 1 and 2 will put your store in maintenance mode when installing or upgrading, or during backup creation. In most cases, this works as expected, and your store exits maintenance mode after the operation completes.
However, when larger operations fail, it can sometimes cause your store to become “stuck” in maintenance mode. Stores in maintenance mode show the message, “The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.”
To stop maintenance mode and restore your store’s normal function, use one of the below methods to delete the maintenance.flag file in Magento 1, or the var/.maintenance.flag file in Magento 2.
ATTENTION: Angled brackets (<>) indicate placeholder information. Replace those brackets and everything between them with the indicated value.
This method requires you have a working FTP client configured to use with your server. If you already do, skip to Step 3.
- Follow the instructions provided in How to add FTP accounts with SiteWorx. Take note of your FTP username and password, and then continue to Step 2.
- Download and install an FTP client. Although many are available, FileZilla is a popular choice. See How to set up FileZilla for more information.
- Use your FTP client to find and delete maintenance.flag or var/.maintenance.flag, as appropriate. See How to use FileZilla for guidance about how to navigate an FTP interface.
- For Magento 1, in root, delete maintenance.flag
- For Magento 2, delete var/.maintenance.flag
- Log in to your Magento server using SSH.
- Change to the directory containing your Magento installation:
- Remove the maintenance.flag or var/.maintenance.flag file, as appropriate:
- For Magento 1, issue:
- For Magento 2, issue:
- For Magento 1, issue:
This method only works in Magento 2. See the Get started with command-line configuration article on the Magento 2 website for more information.
Issue the below command to remove the var/.maintenance.flag file: