Title: Cannot restore if uploads folder is mounted using docker
Last modified: November 13, 2023

---

# Cannot restore if uploads folder is mounted using docker

 *  Resolved [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/)
 * Hello,
 * pretty easy to generate this error,
 * I’ve mounted the uploads folder using docker, when I try to restore I get this
   permission error, which I assume is caused cause the plugin is doing either a
   move or a rename, hence, you can’t touch the upload folder as it is mounted using
   Docker.
 * I have many sites and we will want to use the pro plugin, that’s the only thing
   that does not work for us.
 * I guess that mounting the upload folder should somehow be a requirement to use
   docker, not sure why I couldn’t find anything about it in the forum.
 * Can you please advice on this topic?
 * Thanks,
 * Rotem
    -  This topic was modified 2 years, 5 months ago by [rotem925](https://wordpress.org/support/users/rotem925/).

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/page/2/?output_format=md)

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17198576)
 * can you post your restoration log from the wp-content/updraft directory of your
   restored site using a tool such as pastebin.com?
    -  This reply was modified 2 years, 5 months ago by [vupdraft](https://wordpress.org/support/users/vupdraft/).
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17199424)
 * Of course, there you go: [https://pastebin.com/sxAE58fD](https://pastebin.com/sxAE58fD)
 * I’ve tried to restore only the uploads folder to make the logs smaller.
 * It is pretty easy to produce with any mount to uploads folder
 * I think you are trying to rename the uploads folder which won’t be possible if
   that’s a mount point of course.
 * Thanks
    -  This reply was modified 2 years, 5 months ago by [rotem925](https://wordpress.org/support/users/rotem925/).
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17200514)
 * UprdaftPlus uses copy and rename (if copy fails)
 * Are you mounting your containers through a NFS?
 * Are the wp-content/uploads and wp-content/updraft on the same mounts?
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17200687)
 * Yes, I’m using NFS as well, actually, that’s EFS on AWS Elastic Container Service.
 * BUT, that happens also on my local machine, which use a normal mount using docker-
   compose, no NFS here, same exact error.
 * I mount only the uploads folder, the updraft folder is inside the container volume(
   different one), I do not mount it into a different folder.
    -  This reply was modified 2 years, 5 months ago by [rotem925](https://wordpress.org/support/users/rotem925/).
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17204965)
 * I think the issue is related to file permissions issues between your containers,
   its likely because
    1. The `/etc/passwd` is different across containers. Creating a named user in one
       container and running as that user may use ID 700, but that same name in another
       container with a different `/etc/passwd` may use a different ID for that same
       username.
 *  Two processes trying to access the same file must have a matching user ID or
   group ID.
 * Or
 *  2. Your two containers are running as different users. Maybe the user/group 
   IDs and/or the USER statement in your Dockerfiles are different, and the two 
   containers are technically running under different IDs.
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17205850)
 * Hi,
 * two containers? I only have a single container for WordPress. The permissions
   are set correctly on the volume. Something I’m making sure of before running 
   the container (again, single container).
 * If you’re referring to the volumes, both volumes have the same permissions for
   the user that is running the webserver.
 * It is actually very easy to reproduce, with any compose stack that includes WordPress.
 * See this compose I’ve just created for you to test, upload any file, install 
   the plugin, and try to restore, you will reproduce this error immediately.
 * Let me know if you need any assistance from me with pleasure. And thank you again
   for your help on this! We really want to apply this plugin to our WordPress sites.
 * Here is a link to the compose in pastebin:
 * [https://pastebin.com/4wxD91su](https://pastebin.com/4wxD91su)
 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17215298)
 * Hi, Apologies for the delay.
 * I’ve asked one of our developers to look into this and will update you when I
   hear back.
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17217486)
 * Great, thank you for the response.
 * Waiting to hear on on this issue.
 * Rotem
 *  [Anthonius Alfred Andreas](https://wordpress.org/support/users/anthoniusalfred/)
 * (@anthoniusalfred)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17223591)
 * Hi Rotem,
 * Apologies for the delay,
 * The development team has made a small tweak to the UpdraftPlus 1.23.12 version,
   the tweak concerns only the issue you’re currently facing right now, so I would
   suggest you to download the following UpdraftPlus file, upload and install it
   on your website and see if you can restore your backups without getting the same
   error.
 * Thanks
   Anthon
    -  This reply was modified 2 years, 5 months ago by [Anthonius Alfred Andreas](https://wordpress.org/support/users/anthoniusalfred/).
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17224689)
 * Great news ! Thank you for this quick fix. I will test it right away.
 * Will this also handle any mounted folder? Say for example the languages folder?
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17224828)
 * Just checked!! Works perfectly ! I just tested the uploads folder though..
 * Thanks a lot !
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17248695)
 * Hi there,
 * I see a new version without the fix you sent me. When is it planned to be officially
   released?
 * Thanks!
 * Rotem
 *  [Anthonius Alfred Andreas](https://wordpress.org/support/users/anthoniusalfred/)
 * (@anthoniusalfred)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17250260)
 * Hi,
 * Apologies for the inconvenience and for not adding the fix in the current release
   of UpdraftPlus. Actually, the fix is with our tester team right now for final
   test. I will make sure that the fix is added in the next release of UpdraftPlus.
   
   ThanksAnthon
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17250368)
 * That’s perfect!! Thank you for this update!
 * Rotem
 *  Thread Starter [rotem925](https://wordpress.org/support/users/rotem925/)
 * (@rotem925)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/#post-17300171)
 * Hi [@anthoniusalfred](https://wordpress.org/support/users/anthoniusalfred/) checking
   back, I see another release of updraft, does it include this fix? Couldn’t find
   this in the ChangeLog.
 * Thanks,
 * Rotem

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/page/2/?output_format=md)

The topic ‘Cannot restore if uploads folder is mounted using docker’ is closed to
new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

 * 17 replies
 * 4 participants
 * Last reply from: [rotem925](https://wordpress.org/support/users/rotem925/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/cannot-restore-if-uploads-folder-is-mounted-using-docker/page/2/#post-17314600)
 * Status: resolved