Briefly Unavailable for Scheduled Maintenance

WordPress under maintenance

It is increasingly common to encounter this error when updating several plugins simultaneously.

When WordPress performs updates, it creates a file in the root of the installation with the name .maintenance starting with dot, which are the hidden files in Linux.

This file contains a PHP variable ($upgrading) whose value is a date timestamp that if we convert it to a date and time, it is the same as the creation date of the file.

maintenance
File .maintenance in the root of the installation, showing date and time
maintenance content
Contents of the file .maintenance with the date and time variable
maintenance converted
Timestamp converted to date and time format and matched to the one in the file

That file prevents us from doing anything in WordPress while the update is taking place, so if we refresh the page or go to the frontend we will see the message “Briefly Unavailable for Scheduled Maintenance. Check Back in a Minute.”

maintenance message

At the end of the updates, you will exit the maintenance mode by deleting this file and everything will be correct.

But if for any reason, the process is interrupted and the file is not deleted, we will have a beautiful blank web page with this permanent message.

Troubleshooting the error

As you may have deduced, the solution to this error is very easy and quick: delete the file.

The method is indifferent, either by SSH, connecting via FTP, from the file manager of the hosting … just keep in mind that if the file is not displayed in your FTP program, it is because it is a hidden file (dotfiles), you will have to select in the program of turn, that it shows you the hidden files.

Delete the file and voilĂ , web up and running.

Join my superlist ;)

I won't share your details with anyone or bombard you with emails, only when I publish a new post or when I have something interesting to share with you.

Leave a Comment