mandarons / icloud-drive-docker

Dockerized iCloud Client - make a local copy of your iCloud documents and photos, and keep it automatically up-to-date.
BSD 3-Clause "New" or "Revised" License
962 stars 46 forks source link

[BUG] Changing Ownership of files running every container restart leads to no synchronization at all because a lot of files on my nas #218

Closed nicx closed 1 week ago

nicx commented 2 weeks ago

I do a nighly restart of all my docker containers because of backup jobs. At every restart of the icloud-docker container firstly there is the "changing ownership" part running. only after this has run through does the actual synchronization start. i have a lot of files on my iCloud account and unraid nas, so the first step takes hours. according to the log file, it never ends. therefore it never syncs.

i have manually assigned the files locally to the correct owner. however, the first step is repeated every time the container is started, regardless of whether the ownership is correct or not.

In the log file I can see this status:

====================================================
To support this project, please consider sponsoring.
https://github.com/sponsors/mandarons
https://www.buymeacoffee.com/mandarons 
====================================================

Using UID as 1000, GID as 1000 and UMASK as 022...
Changing ownership of /app ... This operation may take significantly longer depending on number of files in your local copy of icloud.

in another container of another family member with a small amount of files I can see this log file:

https://github.com/sponsors/mandarons
https://www.buymeacoffee.com/mandarons 
====================================================

Using UID as 1000, GID as 1000 and UMASK as 022...
Changing ownership of /app ... This operation may take significantly longer depending on number of files in your local copy of icloud.
Loading config from /app/config.yaml ...

As you can see in the second case the loading of the config file happens correctly and the sync starts. in the first case there is no sync starting at all.

denishartl commented 2 weeks ago

Can confirm, same thing happening for me. Also running on UNRAID with multiple containers. One for files, one for photos in my case.