boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.57k stars 149 forks source link

Error: Invalid value for '-d' / '--directory': Path '/home/apps/iCloud' is not readable #549

Closed VinayHalbai closed 1 month ago

VinayHalbai commented 2 months ago

I am seeing error when i tried to connect to my icloud account. Any help is appreciated.

024-04-18 02:10:45.780847+01:002024-04-18 02:10:45 INFO Keyring file exists, continuing 2024-04-18 02:10:45.848502+01:002024-04-18 02:10:45 INFO Check download directory mounted correctly... 2024-04-18 02:10:45.864905+01:002024-04-18 02:10:45 INFO Failsafe file /home/apps/iCloud/.mounted exists, continuing 2024-04-18 02:10:45.869532+01:002024-04-18 02:10:45 INFO Check for new files using password stored in keyring file 2024-04-18 02:10:45.878930+01:002024-04-18 02:10:45 INFO Generating list of files in iCloud. This may take a long time if you have a large photo collection. Please be patient. Nothing is being downloaded at this time 2024-04-18 02:10:50.106559+01:002024-04-18 02:10:50 ERROR Failed check for new files files 2024-04-18 02:10:50.124667+01:002024-04-18 02:10:50 ERROR - Can you log into icloud.com.cn without receiving pop-up notifications? 2024-04-18 02:10:50.133560+01:002024-04-18 02:10:50 ERROR Error debugging info: 2024-04-18 02:10:50.141614+01:002024-04-18 02:10:50 ERROR Usage: icloudpd-1.17.3-linux-386.dynamic 2024-04-18 02:10:50.141644+01:00Try 'icloudpd-1.17.3-linux-386.dynamic -h' for help. 2024-04-18 02:10:50.141649+01:002024-04-18T02:10:50.141649769+01:00 2024-04-18 02:10:50.141662+01:00Error: Invalid value for '-d' / '--directory': Path '/home/apps/iCloud' is not readable. 2024-04-18 02:10:50.152661+01:002024-04-18 02:10:50 ERROR Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2024-04-18 02:10:50.156757+01:00ash: out of range

I installed iCloud on TrueNAS-SCALE-23.10.2 kubernetes from Truechart train. Mapped my local datasets directory as Data storage folder while app installation.

boredazfcuk commented 1 month ago

This error occurs when the destination directory is mounted to an SMB location. It also happens if the directory is being mounted elsewhere by the host. Make sure you mount your volumes locally and that the container has exclusive access, or alter your volume mapping to tell the system it's a shared volume. I think it's :z, not 100% sure.

srirampsbb commented 1 month ago

I'm seeing this too: Error: Invalid value for '-d' / '--directory': Path '/home/madhurya/iCloud' is not readable. The destination is not an SMB Location The source directory is mounted locally (on my Synology NAS):

~/icloudpd_boredazfcuk$ df -h  "/var/services/homes/madhuram/icloudpd_boredazfcuk/madhurya_icloudPD_data"
Filesystem      Size  Used Avail Use% Mounted on
-               3.5T  1.1T  2.5T  31% /volume1/homes

I am able to login to the container (as root) and list the destination dir contents fine. Also, this dir was working before, I just created a new container with the latest image so not sure what I'm missing here

P.S. Also tried :z option for the mount but that didn't help either:

        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/services/homes/madhuram/icloudpd_boredazfcuk/madhurya_icloudPD_data",
                "Destination": "/home/madhurya/iCloud",
                "Mode": "rw,z",
                "RW": true,
                "Propagation": "rprivate"
            },
boredazfcuk commented 1 month ago

Closed as stale.