boredazfcuk / docker-icloudpd

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

IOError while writing file to ... #436

Closed giantsystems closed 9 months ago

giantsystems commented 10 months ago

Docker on Ubuntu, with a shared folder on a NAS mapped to /home/boredazfuck/iCloud in the container.

Logs show it listing all icloud photos (about 24k of them so takes a while). Then as it gets to copying the files it reports errors like below.


2023-11-29T13:15:56.225807481Z 2023-11-29 13:15:56 ERROR    IOError while writing file to /home/boredazfcuk/iCloud/2023/10/03/IMG_2965.JPG. You might have run out of disk space, or the file might be too large for your OS. Skipping this file...
2023-11-29T13:15:56.227007748Z 2023-11-29 13:15:56 DEBUG    Downloading /home/boredazfcuk/iCloud/2023/10/03/IMG_2964.JPG...
2023-11-29T13:15:56.429373422Z 2023-11-29 13:15:56 ERROR    IOError while writing file to /home/boredazfcuk/iCloud/2023/10/03/IMG_2964.JPG. You might have run out of disk space, or the file might be too large for your OS. Skipping this file...

However I can also see files being created in the destination folder on the nas - using the default structure 2023/11/26 and some files exist.

What have I missed?

boredazfcuk commented 10 months ago

I believe this is a problem occurs when writing to a folder which is mounted to a CIFS share.

You could try mounting like /share/:/home/boredazfcuk/iCloud:z to see if that works. Or just mount CIFS directly in a docker compose file with something like this:

volumes:
   icloudpd_config:
      name: icloudpd_config
  nas_icloud
    driver_opts:
      type: cifs
      o: "username=nasuser,password=naspassword,vers=3.0"
      device: "//NAS/Path/To/Photos"

services:
  icloudpd:
    image: boredazfcuk/icloudpd:latest
    volumes:
      - icloudpd_config:/config
      - nas_icloud:/home/boredazfcuk/iCloud/
    restart: unless-stopped
boredazfcuk commented 9 months ago

Closed as no response in over a month