Tutorial: What To Do When WordPress Auto-Update Fails

by John P.

I don’t know about the rest of you, but I’ve experienced many instances where the Auto-update feature in WordPress fails to update either a plugin or WordPress itself.

The solution to this problem is remarkably simple, and hopefully will be fixed soon by the WP core developers in an upcoming release. The problem seems to be caused by a messy previous upgrade in which files are left in a temporary “upgrade” directory with the wp-content directory.

WordPress Auto-Update Failed

In order to solve the problem, you simply need to delete the “upgrade” directory in it’s entirety and then try the upgrade again. I’ve yet to find an instance on several blogs across multiple machines where this didn’t solve the problem.


{ 85 comments… read them below or add one }

1 fas July 22, 2009 at 8:00 am

Oh this is really cool, I really did not know it would be that simple. However hopefully it wont cause any problems or issues like loss of any data or file.

Reply

2 Jeff Hester July 22, 2009 at 10:49 am

Unfortunately, this didn’t work for me. I still got a “could not copy files” error when attempting the upgrade.

Reply

3 Jonalyn July 23, 2009 at 1:31 am

Hello John, I have been finding not only wordpress update failing on me on a regular basis but also larger plugins like All In One SEO. I am not sure why do you have any ideas. At first i thought it was bad net connection or time of day that I am trying to do the updates, but I am really not sure if that is the case. Your guru incite would be greatly appreciated. jon

Reply

4 Lewis Write July 23, 2009 at 1:49 am

Very cool,,, this worked for me. My main blog got hacked a few weeks ago while I was traveling, so now I am playing catch up trying to get my post back, upgrade plugins etc. Thank you for you solution to this upgrading issue. lew

Reply

5 John P. July 23, 2009 at 2:53 am

I don’t know what to tell you Jonalyn. I’ve seen the failure to update randomly with a number of plugins, both big and small, as well as with WordPress itself. It seems entirely random to me, and the main issue seems to simply be WordPress’ auto-update feature not cleaning up after itself by deleting the previous upgrade files.

I think the proof of this comes in the fact that you can manually remove them and try the upgrade again and it works every time. So, I wouldn’t worry too much about root cause diagnosis. We just need to wait till the developers get the process ironed out and in the meantime you now know the fix.

Cheers,

John P.

Reply

6 John P. July 23, 2009 at 2:55 am

Jeff,

That sounds like it could be a permissions issue. Which is really hard to diagnose in the comments of a blog post. But you might try changing the permissions on your wp-content folder to 755 if they are not already like that.

John P.

Reply

7 brad July 23, 2009 at 10:18 am

ok this article really rocks in fact this is something amazing because something that it seems all this year for me really difficult now is just simple as taking a candy to a baby I really fell like an idiot because all this time with problems when wordPress auto-update fails and now I realize that is so easey…

Reply

8 Mircea nunti July 29, 2009 at 3:46 am

Many times i’ve experienced problems to that auto update because of the file permissions. But before playing around with those, get rid off that “upgrade” folder. It could save you a lot of time messing with the WP installation.

Reply

9 Josh July 30, 2009 at 8:52 am

Perfect! It worked, thanks John! On a side note, some of my plugins caused the issue to happen again (not all) and even when doing the fix the upgrade did not happen as it was supposed to. I believe this is a plugin issue, but I could be wrong. For those ones I had to manually upgrade them. The two specific plugins I had issues with were “Subscribe2″ and “Lifestream”.

Thanks again!

Reply

10 ShaDow August 2, 2009 at 1:07 am

Aaahh…Thanks.. I was updating flickr plugin when it failed…and as usual I search the internet and there was your blog..Thanks..the fix works great…

Reply

11 Dave August 9, 2009 at 4:02 am

It didn’t work for me… :(

I have all permisions OK (777) and the update process works fine until last step…

Take a look…

“Downloading update from http://downloads.wordpress.org/plugin/PLUGIN_NAME.

Unpacking the update.

Installing the latest version.

Removing the old version of the plugin.

Could not create directory. /usr/home/BLOG_NAME.com/web/wp-content/plugins/PLUGIN_NAME/

Plugin upgrade Failed.”

My Blog works with WP 2.8.3 and these plugins (5) works fine in another blog i manage (but in other host).

Current hosting works with PHP5 (5.1.6_3)… maybe plugin updates crashes because of this…

Please help!!! thanks in advance! :-)

Reply

12 John P. August 10, 2009 at 2:15 am

That is strange Dave. Especially with permissions set so liberally. So, out of curiosity, did you try and manually install that plugin via FTP? I believe I would try that next and see if it still causes problems. It might lead to more information for troubleshooting purposes.

John

Reply

13 Dave August 10, 2009 at 1:11 pm

Hi John, thanks for your answer :-)

Yes, i’ve installed the plugins via FTP successfully but i want to enjoy automatic updates… that will make my work easier.

I fear this will cause me trouble when i’ll have to upgrade wordpress to a future new version (2.8.4 or high). It could be a hell!

Reply

14 blaine August 15, 2009 at 11:00 am

Wow, thanks alot for this; it worked like a charm! Nice Search Engine placement too; found this on the first page of Google’s Search.

Reply

15 Don Thompson October 24, 2009 at 10:07 am

Thank you! I have been changing EVERYTHING – owners, permissions, you name it. This was too simple!

Reply

16 Jason Woelfel December 21, 2009 at 7:42 pm

Thanks! Worked perfectly. I am so glad I found your site! Apparently, I need to delete the upgrade folder after each auto update. Maybe WordPress will fix this in the future.

Reply

17 Roberto S. January 4, 2010 at 11:11 am

Please John help me. I work with 10 wp sites and only 1 is giving me this problem. I didn’t solve by simply deleting the upgrade folder. Any other suggestion?

Thank you

Reply

18 Juan Luis January 29, 2010 at 12:25 pm

Hi John,

I have the same problem that Dave. I cannot upgrade my plugins but yes wordpress core.

Same message. “could not create directory /usr/home/cucharadas.com/web/wp-content/plugins/theplugin/”

files/directories permisions???? core yes, plugins no…

Thanks in advance

Reply

19 Patrick January 31, 2010 at 10:07 pm

It did not work for me. I am facing this problem with my host. But with a different host automatic upgrade always works fine. Very badly needed this as it will save lots of time.

Reply

20 Fleagle February 12, 2010 at 11:31 am

Nope. No luck. I don’t get any kind of error when trying to update. It simply hangs on the ‘unpacking files’ portion of the procedure. Nothing else ever happens after that. The same thing happens when I try to install new themes.

Reply

21 kranthi October 5, 2011 at 12:45 am

same problem for me too what did you do atlast to rectify?

Reply

22 Boon February 22, 2010 at 10:20 am

Dude you just saved my life… I did backup my entire site before trying to upgrade in case the upgrade was going to fail (because it has before on me without a backup!)… But i didn’t realize it was going to be so easy to repair it!

I got the whole “Down for scheduled maintenance error” and thought I was going to have to FTP my backup which would take like 30 minutes at least!…. But your solution fixed it in less than 30 seconds. Thanks! Your site was really easy to find too, first search result.

Reply

23 John P. February 22, 2010 at 12:26 pm

Glad I was able to save you some frustration there Boon! ;-)

John P.

Reply

24 john February 25, 2010 at 1:52 pm

Tnx for your tip. Didn’t work for me (although the upgrade dir was there).
What helped me (2.9 -> 2.9.2 DE version hosted on 1+1) was adding
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
to the htaccess.
Cheers
JD

Reply

25 Jules March 13, 2010 at 1:12 pm

This didn’t work for me. My auto update hangs at
Downloading update from http://wordpress.org/wordpress-2.9.2.zip
every time and always has. I’ve tried every fix I can find. =/

Reply

26 Gav March 30, 2010 at 5:29 pm

Yesss! I’ve never been able to auto-update but this has fixed the problem :D Such a simple solution.. Thanks!

Reply

Leave a Comment

Previous post:

Next post: