• Resolved richrabago

    (@richrabago)


    I keep getting this error when I try to to do the update from 1.22.1 to 1.22.4.

    This has been going on for over a week. I have tried doing the update manually and allowing the auto update to occur but the error always occurs.

    Update failed: Could not copy file. updraftplus/vendor/aws/aws-crt-php/run_tests.bat

    I am not using AWS for my backup storage. This is the free version.

    Any suggestions to get the update? I really do not want to do the full uninstall and re-install.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    When WordPress updates a plugin, it unzips the zip file and copies the files. If that fails part way through, it’s almost always due to lack of available disk space on your hosting account.

    David

    Thread Starter richrabago

    (@richrabago)

    Thank you for the super fast response. And suggestion.

    I checked and I have plenty of disk space on my hosting account. I have recently had several other plug-ins update successfully (including WordPress). I wonder if its a permissions issue where the permission of the file is set to high and my hosting provider is preventing it. Or if it is that it does not like .bat files because they can do bad things.

    I will try and look at the file itself and see if I can see anything different. I also have a different website that currently does not have the UpdraftPlus plug-in installed. I can test just doing an install on that one.

    thanks again

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Does trying to upload that file by FTP also fail? That would confirm that your web hosts have something blocking .bat files.

    Since that file isn’t needed, I’ve tweaked our development build so that it won’t be in the next release. Until then, you could just upload the plugin by FTP, minus that particular file, assuming that is the problem.

    David

    wpjuliell

    (@wpjuliell)

    I have the exact same problem. Obviously is a security issue caused by the server, since bat files run commands that may affect the system.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    It is not a security issue – nobody in the world has configured their webserver to locally execute a .bat file if it is requested over HTTP (if they had done something as mad as that, then *that* would be a security issue).

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    UpdraftPlus 1.22.5 is now released, and has some unnecessary files from the AWS toolkit pruned.

    David

    Thread Starter richrabago

    (@richrabago)

    Hi @davidanderson,

    Thank you so much for removing the .bat file. I have not tried the latest version you released (1.22.5) yet, but I will do that later this afternoon.

    However, I did test your suggestion to manually upload the .bat file to my hosting account. As you hypothesized my hosting provider does not allow me to upload .bat files. I tried with FTP and via the file manager. In both cases it says denied.

    So, I learned something about my provider. I will post back after I do the update with the latest version.

    Thanks again,
    Rich

    wpjuliell

    (@wpjuliell)

    Just performed the update! Without the .bat file the update worked fine like always.

    Thread Starter richrabago

    (@richrabago)

    @davidanderson the 1.22.5 update also worked for me on two different sites.
    Thank you again for the update and thank you for a great plugin.

    Thanks,
    Rich

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Update failed: Could not copy file’ is closed to new replies.