WordPress stuck on "Briefly unavailable for scheduled maintenance"
When WordPress gets stuck on the message “Briefly unavailable for scheduled maintenance. Check back in a minute,” it’s because an update was interrupted and the .maintenance file was left in the site folder. To fix it, delete that file in cPanel’s File Manager and reload the site. Usually, the site comes back right away.
This article is for anyone who updated WordPress, a theme, or a plugin, and then the site (or the dashboard) got stuck on this message. It explains what the .maintenance file is, how to remove it safely, what to check afterward, and how to keep it from happening again.
What does “Briefly unavailable for scheduled maintenance” mean?
It is the message WordPress shows visitors while it updates the core, a theme, or a plugin. If your site is set to another language, WordPress shows this message translated into that language, so you may see it in a different form.
To display the message, WordPress creates a file called .maintenance in the main site folder and deletes it when the update finishes. If the process is interrupted midway, the file is not deleted and the message keeps showing.
Why does the site get stuck on this message?
The cause is always an update that did not reach its end. The most common reasons:
| Situation | What happens |
|---|---|
| You closed the tab or lost the connection during the update | WordPress doesn’t finish the process and doesn’t delete the file |
| Several plugin updates at the same time | One of them fails or takes too long and interrupts the others |
| The server ended the process because of time or memory | The update stops halfway |
| A faulty plugin or theme stalled the update | The file stays until someone removes it |
In many WordPress versions, the system itself ignores a .maintenance file that is more than a few minutes old. If the message disappears on its own after a while, that is why. If it stays, delete the file by hand.
Before you start
- You need access to the hosting cPanel. The WordPress dashboard does not need to be working.
- If you can, download a copy of the site and the database before touching anything, especially if the update got stuck midway.
- Wait about 10 minutes before deleting the file, in case someone is still updating the site. Deleting it during an update in progress can leave the update incomplete.
How to remove the .maintenance file in cPanel
The file name starts with a dot, so it is hidden by default.
- Log in to cPanel and open File Manager.
- Click Settings (upper right corner) and check Show Hidden Files. Save.
- Open the site folder. On a main domain, it is usually
public_html; on an addon domain, it is the folder created for that domain. It is the same folder wherewp-config.phpis. - Find the
.maintenancefile. - If you want to keep a copy, right-click it and choose Download. Then delete the file.
- Open the site in a private window, to avoid the page stored by your browser.
The file is small and contains just one line of code with the time the maintenance started, something like:
<?php $upgrading = 1700000000; ?>
It does not store any site content, so deleting it does not remove pages, posts, or settings.
If you prefer to use FTP, the path is the same. See how to create and access FTP accounts in cPanel with FileZilla and turn on the display of hidden files in the program.
What if the .maintenance file doesn’t exist?
If you can’t find the .maintenance file, the message may be coming from somewhere else:
- Maintenance mode plugin. “Coming soon” and “under maintenance” plugins show their own page. Deactivate the plugin from the dashboard, or rename its folder in
wp-content/plugins. - Cache. A caching plugin or your browser’s cache may be showing the old page. Clear the cache and test in a private window. See what a caching plugin is for in WordPress.
- File in the wrong place. Confirm that you opened the folder where
wp-config.phpis, and not a folder above or below it.
If you see a 500 error or a blank white screen instead of the message, the problem is different: see 500 error or white screen in WordPress.
What to check once the site is back
If the update was interrupted, it may have been left half-done. Run this check:
- Log in to the dashboard and go to Dashboard > Updates. If updates are still pending, redo each one, one at a time.
- Open the main pages of the site and test the forms, the cart, and the login.
- Check whether the site shows any warning about a plugin or theme with a problem.
- If something is broken after the update, such as a distorted layout or a plugin that won’t open, reinstall that plugin or theme, or restore the previous copy.
If the dashboard asks you to update the database, follow the instructions on the screen and confirm.
How to keep WordPress from getting stuck in maintenance mode
Prevention is simple and applies to every update:
- Make a copy of the site and the database before updating.
- Update one item at a time, instead of using “Update all” with many plugins.
- Don’t close the tab or go to another page until the update finishes.
- Do updates outside peak traffic hours.
- Keep PHP and WordPress at versions compatible with your plugins.
- If an update takes a long time, wait a few minutes before interrupting it.
The complete guide is in how to update WordPress, themes, and plugins safely.
When to contact support
If you deleted .maintenance and the site still has a problem, if the update always stalls on the same plugin, or if you can’t access cPanel, contact your hosting support. Bring the message shown, the time the problem started, and what you already tried. MigraCloud customers can get in touch with the team.
Frequently asked questions
What is the .maintenance file in WordPress?
It is a temporary file that WordPress creates in the main site folder while it runs an update. It makes the site show the maintenance message to visitors. When the update finishes, WordPress deletes it on its own.
Where is the .maintenance file?
In the same folder as wp-config.php, which is usually public_html on the main domain. Because its name starts with a dot, it only appears in cPanel’s File Manager if you check Show Hidden Files in Settings.
Can I delete the .maintenance file without losing data?
Yes. The file only stores the time the maintenance started. Deleting it does not remove pages, posts, images, or settings. If the update was incomplete, run it again afterward, and make a copy of the site first.
How long does WordPress stay in maintenance mode?
A normal update takes just a few moments. If the message keeps showing for more than a few minutes, the update was probably interrupted and the .maintenance file needs to be removed by hand.
I deleted .maintenance, but the message is still there. What now?
Open the site in a private window, and clear your browser’s cache and the cache of your caching plugin. If it still shows, look for an active maintenance mode plugin, or check that you are in the right site folder.
The dashboard also shows the maintenance message. Can I fix it the same way?
Yes. .maintenance blocks the entire site, including /wp-admin. After you delete it, dashboard access returns, and you can finish the pending updates.
The update was interrupted. Can the site be broken?
It can, if the plugin, theme, or core was left with partially written files. After you remove .maintenance, run the update again from the dashboard. If the site still has errors, reinstall the affected item or restore a copy from before the update.