• Resolved richbhanover

    (@richbhanover)


    I have several WP sites. Only one has not updated automatically from 4.9.8 -> 4.9.9. In its dashboard, I see a message, “An automated WordPress update has failed to complete – please attempt the update again now.” Clicking the link leads back to the same message.

    So I learned about the Health Check plugin and installed it. (It’s very cool!) In amongst the advice that I have a couple inactive plugins & themes, and that I need to update to php7.2 & mysql 5.6 (which I’ll do), it offers the diagnostic info at the bottom of this message.

    My question: Where can I find more information about the “copy_failed_for_update_core_file” message? Many thanks!

    Background updates 	
    
        A previous automatic background update could not occur. 
           You would have received an email because of this. 
           We'll try again with the next release. 
           The error code was copy_failed_for_update_core_file.
        No version control systems were detected.
        Your installation of WordPress doesn't require FTP credentials to perform updates.
        All of your WordPress files are writable.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marius L. J.

    (@clorith)

    Hiya,

    This error means that the file wp-admin/includes/update-core.php was not accessible during the update procedure, or that the automated updater did not download it properly so it could be copied. Unfortunately we can’t know the exact reason, since that’s a filesystem level thing, so double-check the permissions of that file (if it appears to be wrong, please do let us know so we can see why it was detected as being correct).

    Thread Starter richbhanover

    (@richbhanover)

    Hmmm… Here are my permissions, starting at public_html:

    drwxr-xr-x 9 www-data www-data 4096 Aug 2 16:39 wp-admin

    then wp-admin/includes:

    drwxr-xr-x 2 www-data www-data 4096 Aug 2 16:39 includes

    then wp-admin/includes/update-core.php

    -rw-r--r-- 1 www-data www-data 31217 Oct 4 2017 update-core.php

    These seem to match other WP sites that did update automatically.

    Other info:

    • There’s plenty of disk space left (~30% of my 95GBytes)
    • I also checked my error.log and access.log files. Clicking the “please attempt the update again now.” link doesn’t seem to create any errors. (I see the fact that …/wp-admin/update-core.php was accessed in the access.log file, but no errors.)

    What other info could I provide? Many thanks!

    PS I’m quite comfortable in Linux command line, and I’m prepared to get to the bottom of this. Thanks again.

    • This reply was modified 5 years, 11 months ago by richbhanover. Reason: Added PS
    Plugin Author Marius L. J.

    (@clorith)

    Then it’s not unlikely that it’s just a bad download, which some times happen, does a manual update (by visiting Dashboard > Updates and hitting the update now button) work like it should? This should fetch a brand new copy of WordPress (version 5.0.2 at this time)

    Thread Starter richbhanover

    (@richbhanover)

    Yes. After I made a full backup, I held my breath and upgraded to 5.0.2. It seems to have worked exactly as expected. (I had been holding off on the 4.9.x -> 5.0.x upgrade until the new version had settled out.)

    Thanks for the Health Check plugin – it provides excellent diagnostic info about the state of my system.

    And thanks, too, for getting back to me with troubleshooting advice. It greatly calms the nerves to have someone with experience say, “It’ll probably be OK…”

    Plugin Author Marius L. J.

    (@clorith)

    My pleasure, and I’m glad to hear the upgrade went fine! Sorry about the delay in getting back originally though, holidays and such ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“copy_failed_for_update_core_file” – find further info?’ is closed to new replies.