Checking a website the morning after a recent WordPress update I found that the update had failed.
At the top of the admin page an error message was showing the message:
An automated WordPress update has failed to complete - please attempt the update again
As per the instruction I clicked on the link to run the update once more.
But that failed too! The message was still showing at the top of the admin screen.
WordPress uses a file in the root of the WordPress installation to determine whether it’s in maintenance mode.
The file named .maintenance is added by the WordPress updater to the root of the WordPress website.
Here’s the scary part. If I delete the file will it cause damage to my WordPress website?
I would allow sufficient time to ensure that WordPress has completed the task which put it into maintenance mode. The update process is reckoned to take not more than 10 minutes, but allow a few more to be sure.
If its an update to the WordPress core files then it will be clear when the task is completed.
As you are searching for reasons for the maintenance mode error message the associated task ought to be complete.
I deleted the file .maintenance from the WordPress root folder.
I clicked on the dashboard link on the admin page, preferring not to click on the update link.
Resolved the failed update notification was gone.
The version of WordPress indicated as installed was the latest one.