Skip to content
Aaron Carmen
Errors and fixes

WordPress Maintenance Mode Stuck? The 1-Minute Fix

By Aaron CarmenUpdated October 19, 20263 min readTested on WordPress 7.1.3, October 19, 2026

Quick answer

WordPress stuck in maintenance mode means a file called .maintenance was left in your site's main folder, usually by an update that didn't finish. Delete that file through your host's file manager or FTP and the site comes back straight away. Then check the plugin, theme or WordPress update that was running, because it may be half-installed.

What you see

  • "Briefly unavailable for scheduled maintenance. Check back in a minute."
  • The same message on the site and when you try to log in to wp-admin
  • It started during or right after an update

WordPress maintenance mode stuck on your site? It shows one line, on the site and in wp-admin: “Briefly unavailable for scheduled maintenance. Check back in a minute.” The cause is a small file called .maintenance that an update left behind. Deleting it takes about a minute.

I reproduced this on a test site running WordPress 7.1.3 and PHP 8.3, and checked WordPress’s own code for how the file works.

WordPress page with the message Briefly unavailable for scheduled maintenance. Check back in a minute.
What visitors and admins both saw while the .maintenance file was in place. The server returned HTTP 503.

Why it happens

Every time WordPress updates a plugin, a theme or itself, it creates .maintenance in your site’s main folder. While the file exists, every page shows the message above with an HTTP 503 status. When the update finishes, WordPress deletes the file.

If the update stops partway, because the tab was closed, the server timed out or a file couldn’t be replaced, the file stays behind.

The 1-minute fix: delete .maintenance

  1. Open your host’s file manager, or connect with FTP.
  2. Go to your site’s main folder, the one that holds wp-config.php, wp-admin and wp-content. On many hosts it’s public_html.
  3. Find .maintenance. Because the name starts with a dot, some file managers and FTP apps hide it. Look for a “show hidden files” setting if you can’t see it.
  4. Delete it, then reload your site.

On my test site, the site came back the moment the file was deleted.

The file itself holds a single line like this, where the number is the time the update started:

<?php $upgrading = 1792417355; ?>

If it fixed itself before you got there

WordPress’s own code ignores a .maintenance file once its timestamp is 10 minutes old. I tested this: with the timestamp set 9 minutes in the past the site was still blocked, and at 11 minutes it loaded normally.

So if you’re stuck for longer than about 10 minutes, the file probably isn’t a normal leftover. Two things can cause that:

  • A .maintenance file someone created by hand. Some guides, and Google’s AI summary, suggest creating one with $upgrading = time();. That version never expires, because time() is always “now”. On my test site it was still blocking the site when the file was two hours old. Delete it.
  • A maintenance or “coming soon” plugin. These show their own page, usually with your logo or a countdown, not WordPress’s plain message. Turn the mode off in the plugin’s settings, or rename the plugin’s folder in wp-content/plugins if you can’t log in.

Then check what the update left behind

Deleting the file brings the site back, but the update that was running may not have finished. Log in and check:

  • Dashboard → Updates. If the plugin, theme or WordPress version still shows an update available, run it again. If it fails again, note the error message.
  • Plugins. A plugin that was mid-update may be deactivated, missing or half-copied. If the site shows “There has been a critical error on this website” instead, follow my guide to the WordPress white screen of death, which uses the same steps to find the broken plugin.
  • wp-content/upgrade-temp-backup. Since WordPress 6.3, WordPress moves the old copy of a plugin or theme into this folder during an update. If the update fails, it puts that copy back automatically. If an update was cut off before that could happen, the old version may still be sitting in that folder.

If the same update fails twice, stop retrying. Repeated failures usually point to something on the server, such as low disk space or file permissions, and your host can confirm which.

Avoiding it next time

  • Run updates one at a time on a busy site, rather than updating everything at once.
  • Keep the update tab open until WordPress says it’s finished.
  • Take a backup before updating, so a failed update is a quick restore rather than a repair job.

Handling updates safely, with backups and a check that the site still works afterwards, is part of my WordPress development work. If your site is up but slow, see how to speed up a WordPress site.

FAQ

Common questions

How long does WordPress maintenance mode last?

Normally a few seconds, while an update runs. WordPress's own code ignores a .maintenance file once its timestamp is 10 minutes old, so a leftover file from a normal update stops blocking the site after 10 minutes. If it lasts longer, the file was written some other way, or something else is causing it.

Where is the .maintenance file?

In the same folder as wp-config.php, wp-admin and wp-content. On most hosts that's public_html or a folder named after your domain. It starts with a dot, so some file managers and FTP apps hide it until you turn on hidden files.

Is it safe to delete the .maintenance file?

Yes. It only contains one line with a timestamp and has no other job. WordPress creates a new one the next time it runs an update and deletes it when the update finishes.

Does maintenance mode hurt my SEO?

Not for a short time. WordPress returns an HTTP 503 status with a Retry-After header, which tells search engines the page is temporarily unavailable and to come back later. A site left in that state for days is a different matter, so fix it the same day.

Why did the update fail in the first place?

Common reasons are the browser tab being closed mid-update, the server timing out, too little disk space, or file permissions that stop WordPress replacing files. Check the update screen for an error message, and ask your host if the same update keeps failing.

Aaron Carmen, SEO specialist

About the author

Aaron Carmen

Senior WordPress Developer and SEO Specialist

I've built and optimized WordPress websites since 2013, 13+ years in total, including 9.5 years building WordPress sites for every client of a dental marketing agency. Today I help local businesses and agencies with WordPress development and SEO, so they get found on Google Search, Google Maps and AI search.

WordPress is a trademark of the WordPress Foundation. Aaron Carmen is not affiliated with or endorsed by the WordPress Foundation or the WordPress open source project.

Contact

Want this done for you?

Tell me about your site and what you need. I'll reply within one business day with any questions, then a fixed quote.

  • Reply within one business day
  • No obligation, no hard sell
  • Form and email only, calls optional
What you need

Prefer email? hello@aaroncarmen.com