Opened 9 years ago
Closed 4 years ago
#34393 closed defect (bug) (duplicate)
"update has failed" message won't go away
Reported by: | steevithak | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.3.1 |
Component: | Upgrade/Install | Keywords: | |
Focuses: | Cc: |
Description
After running a routine plugin update, the site became inaccessible for a few minutes with a blank white page saying "Briefly unavailable for scheduled maintenance. Check back in a minute." After approximately four minutes, the site became accessible again but the admin pages now show the message "An automated WordPress update has failed to complete - please attempt the update again now."
The words "please attempt the update again now" are a link to /wp-admin/update-core.php
Clicking the link has no effect, it simply reloads the page and the message is still there. It seems like this means one of two things: 1) there is no update that needs to be re-attempted, in which case the update software should realize that and remove the message - or 2) there really is an update needing to be installed and failing, in which case the error message should give the user some additional information (what plugin specifically is it that needs the update? what specifically is the reason it failed? etc).
Any suggestions on how to debug this problem and remove the persistent error message?
Change History (4)
#2
@
9 years ago
How does one "re-run the core update"? As noted above, the error message links to /wp-admin/update-core.php and I tried that repeatedly but it didn't fix the error.
I eventually found several forum discussions on other sites that recommended as a fix removing a file called .maintenance from the wordpress document root directory. I tried this and it worked for me. Everything seems to be fine again. The theory in the forum was that certain kinds of network timeouts during an update trigger a wordpress bug that causes the program to leave a spurious .maintenance file lying around and that results in the incorrect error message.
From the docs in
maintenance_nag()
, the function responsible for that message:Re-running the core update should fix this.