WordPress.org

Ready to get started?Download WordPress

Forums

Automatic Upgrade Not working (31 posts)

  1. kentopolis
    Member
    Posted 4 years ago #

    Ok, so I have not been able to use the automatic upgrade since it was released on one of my wordpress websites. It has killed me everytime they come out with a new update. This also included not being able to update plugins automatically or take advantage of the sweet install feature straight from the backend. Here is the weird thing, I have test wordpress sites for development set up on the same server and some of them can do the automatic, some can't. I've tried wiping out wordpress and reinstalling on my main site (which is where I am having the problems) with no luck. I have read a thousand forums and can't find anything that helps. I'm wondering if there is anyone who can give me some insight! PLEASE HELP!

    My site is epic4life.com. Thanks in advance!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Perhaps you have 1 or more problematic plugins? Or a bad theme that is affecting the auto installs & upgrades? Try deactivating all plugins and/or switching to the default theme.

  3. equalmark
    Member
    Posted 4 years ago #

    We have just had this problem with one of our sites and the reason was because the files of the server (WordPress files) were not owned by the Apache web server user. Once this was fixed the auto update was able to work again.

  4. kentopolis
    Member
    Posted 4 years ago #

    how did you make the files "owned" by the the Apache web server user?

  5. equalmark
    Member
    Posted 4 years ago #

    I didn't!! I asked my web host and they sorted it for me. Perhaps you could do the same?

  6. kentopolis
    Member
    Posted 4 years ago #

    How did you figure out which files to have them change?

  7. kentopolis
    Member
    Posted 4 years ago #

    equalmark: Oh, you're talking about permissions, I have changed all my permissions and tried all the tricks with that and can't get it.

    esmi:
    I have also tried uninstalling all my pluggins and various themes - nothing helped.

  8. kentopolis
    Member
    Posted 4 years ago #

    The other weird thing, only one or two of the test sites automatic upgrades, but others won't do the automatic upgrade at all - they act like the main site...

    This is what I get when it fails upgrading wordpress:

    Downloading update from http://wordpress.org/wordpress-2.8.6.zip.

    Unpacking the update.

    Could not copy file: /public_html/kent/wp-content/upgrade/wordpress-2.8.61/wordpress/wp-comments-post.php

    Installation Failed

  9. atanone
    Member
    Posted 4 years ago #

    What is the version of php being used there? I had trouble in one of my site until I found out that I hadn't updated the php in the site from php4 to php5. Once I made the switch, the automatic update worked right away.

  10. kentopolis
    Member
    Posted 4 years ago #

    What is the version of php being used there?

    PHP 5.2.5 in the c-panel - is it possible for the site to still be using an older version?

    Also, the test sites (all of them both the ones that work and don't work) are all on under the same domain, just different folders, ie. epic4life.com/wp (upgrade works) & epic4life.com/kent (doesn't work)

  11. kentopolis
    Member
    Posted 4 years ago #

    Ok, I went file by file and changed every permission in my install that doesn't work to match that of my install that does work. I still get this message though:

    Downloading update from http://wordpress.org/wordpress-2.8.6.zip.

    Unpacking the update.

    Could not copy files.

    Installation Failed

    Any ideas?

  12. equalmark
    Member
    Posted 4 years ago #

    Could not copy files says to me a permissions problem - perhaps on the wp-content folder.

  13. kentopolis
    Member
    Posted 4 years ago #

    content permissions are set to the same as the install that is working on the same server

  14. kentopolis
    Member
    Posted 4 years ago #

    So, it is happening again to me... I am trying to upgrade my root install to 9.2 and all I get is problems. It is such a pain to upgrade manually when you know this should be working...

    Here is the error I got again:

    Upgrade WordPress

    Downloading update from http://wordpress.org/wordpress-2.9.2.zip.

    Unpacking the update.

    Could not copy file: /public_html/wp-content/upgrade/wordpress-2.9.2/wordpress/wp-comments-post.php

    Installation Failed

    PLEASE HELP!
    I can't upgrade pluggins either...

  15. henkholland
    Member
    Posted 4 years ago #

    Check if there is a directory named "upgrade" in wp-content?

    During the process WordPress needs this one for temporarily writing some files.

  16. ubergiant
    Member
    Posted 4 years ago #

    I occasionally get the same problem. Here's three options I've used to solve it:
    1) keep trying the automatic upgrade
    2) do a manual upgrade
    3) ftp to public_html/wp-content/upgrade/ and delete the folder with a .tmp extension. Then try auto upgrade again. If you go into that folder before you delete it, you'll probably see only a few wordpress files. This means files were being transferred, but something cut them off.

  17. kentopolis
    Member
    Posted 4 years ago #

    Upgrade is there, have done all three of those suggestions and got nothing. I finally just manually upgraded once more... I did go into my phpmyadmin in cpanel for an unrelated issue, and while in there noticed that there was no data in the upgrade log for the wordpress installs I've been having issues with but that the ones that have been upgrading have logs... I wonder if there is a problem with the database or the user of the database or something...

  18. kentplum
    Member
    Posted 4 years ago #

    Hi,
    I have a similar upgrade issue, however the upgrade only gets to the step of unzipping the files and no further.

    I am using the automatic upgrade which has worked fine for me up till now. Has anyone else had this problem and discovered a solution?

    Output:

    Downloading update from http://wordpress.org/wordpress-2.9.2.zip.

    Unpacking the update.

  19. Make sure that you have enough space left for the update package to be fully decompressed.

  20. kentplum
    Member
    Posted 4 years ago #

    Checked disk space and I have 300Mb free. I hope that is sufficient space.

  21. That should be enough. My next guess would be that your server doesn't have whatever is needed to unpack the update. Can you do a manual upgrade?

  22. kentplum
    Member
    Posted 4 years ago #

    Thanks macmanx I will have to go the manual upgrade route I guess.

    Previous automatic upgrades have worked fine. They were very quick and easy hence I wanted to keep on using this upgrade approach.

    Thanks for the advice.

  23. You're welcome! If you wanted to, you could ask your hosting provider if anything has changed recently on the server side to prevent the automatic upgrade.

  24. SoundTrip
    Member
    Posted 4 years ago #

    There is one last thing to check when all else fails. Depending on the default memory limit for your PHP installation you may be constrained by a low default. For me the telltale sign was that the zip file would download fine, hence it wasn't a permissioning issue.

    You can increase the memory limit by adding the following to your .htaccess file (assuming you have access to this file)

    AddType x-mapp-php5 .php
    php_value memory_limit 64M

    The first line tells apache to process .php files with the php5 module. The second increases the memory. (check with webhost to make sure this is supported)

    Alternately you can add the following to your wp-config file:
    define('WP_MEMORY_LIMIT', '64M');

    Again, this requires that your host allow you to increase the php memory.

    - Trip

  25. kentopolis
    Member
    Posted 3 years ago #

    Well, it's that time again, WordPress updates and I'm left with only a manual install: SoundTrip, I tried your idea - need to double check with my host and just make sure that I am allowed to do it, but it did not work - is there a way to check and see if the memory was increased?

    Here is the new failure report I am getting from WordPress:

    Downloading update from http://wordpress.org/wordpress-3.0.1.zip…

    Unpacking the update…

    Could not create directory.: /public_html

    Installation Failed

  26. kentopolis
    Member
    Posted 3 years ago #

    In my PHP Configuration file it says:

    Resource Limits memory_limit Maximum amount of memory a script may consume (32MB) 32M

    Is there any way to change this from within cPanel?

  27. kentopolis
    Member
    Posted 3 years ago #

    Sorry to keep posting, but I got this from my server peeps:

    We do not have fix but it happen if database repair without lock tables or
    if search query run by many user at 1 time

    or mysql restart frequently.

    I'm not even sure what that means - can anyone explain or help? I am still having the issue that started this whole thread...

  28. kentopolis
    Member
    Posted 3 years ago #

    Memory has been upgraded to 64M still no luck. Suppose I will upgrade manually...

  29. funfelt
    Member
    Posted 3 years ago #

    I am having this exact same problem on only one of my sites (which are all hosted the same place and haven't done anything different to any of them). Would love to know a solution if anyone has one!

  30. seriocomic
    Member
    Posted 3 years ago #

    The best solution I have found to automatic update issues like this is fixing the ownership/permissions on the upgrade folder.

    To do: delete the upgrade folder in wp-content.

    Recreate the folder and reset permissions to 777

Topic Closed

This topic has been closed to new replies.

About this Topic