boredazfcuk / docker-icloudpd

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

docker exec sync-icloud.sh #632

Closed PrayerfulDrop closed 1 month ago

PrayerfulDrop commented 1 month ago

Command being ran in SSH: sudo docker exec -it icloudpd-krissy sync-icloud.sh --Init

Results: -bash-5.2$ sudo docker exec -it icloudpd-krissy sync-icloud.sh --Init --Enable-Debugging ash: missing ]

2024-08-19 11:54:46 INFO boredazfcuk/icloudpd container v1.0.916_23-07-2024 started 2024-08-19 11:54:46 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2024-08-19 11:54:46 INFO Alpine Linux 3.20.2 2024-08-19 11:54:46 INFO Python version: 3.12.3 2024-08-19 11:54:46 INFO icloud-photos-downloader version: 1.22.0 2024-08-19 11:54:46 INFO Checking for updates... 2024-08-19 11:54:46 INFO - Current version is up to date 2024-08-19 11:54:46 INFO Loading configuration from: /config/icloudpd.conf 2024-08-19 11:54:48 INFO Apple ID: krissy@wardfamily.cc 2024-08-19 11:54:48 INFO Authentication Type: MFA 2024-08-19 11:54:48 INFO Cookie path: /config/krissywardfamilycc 2024-08-19 11:54:48 INFO Cookie expiry notification period: 3 2024-08-19 11:54:48 INFO Download destination directory: /iCloud 2024-08-19 11:54:48 INFO Folder structure: {:%Y/%m/%d} 2024-08-19 11:54:48 INFO Keep Unicode: false 2024-08-19 11:54:48 INFO Live Photo MOV Filename Policy: suffix 2024-08-19 11:54:48 INFO File Match Policy: name-size-dedup-with-suffix 2024-08-19 11:54:48 INFO Synchronisation interval: 21600 2024-08-19 11:54:48 WARNING Setting synchronisation_interval to less than 43200 (12 hours) may cause throttling by Apple 2024-08-19 11:54:48 WARNING If you run into the following error: 2024-08-19 11:54:48 WARNING - private db access disabled for this account. Please wait a few hours then try again. The remote servers might be trying to throttle requests. (ACCESS_DENIED) 2024-08-19 11:54:48 WARNING Then check your synchronisation_interval is 43200 or greater and switch the container off for 6-12 hours so Apple's throttling expires. Continuing in 3 minutes 2024-08-19 11:56:49 INFO Synchronisation delay (minutes): 0 2024-08-19 11:56:49 INFO Set EXIF date/time: false 2024-08-19 11:56:49 INFO Auto delete: true 2024-08-19 11:56:49 INFO Delete after download: false 2024-08-19 11:56:49 INFO Delete empty directories: false 2024-08-19 11:56:49 INFO Photo size: original 2024-08-19 11:56:49 INFO Align RAW: as-is 2024-08-19 11:56:49 INFO Single pass mode: false 2024-08-19 11:56:49 INFO Skip download check: true 2024-08-19 11:56:49 INFO Skip live photos: false 2024-08-19 11:56:49 INFO Number of most recently added photos to download: Download All Photos 2024-08-19 11:56:49 INFO Downloading photos from: Download All Photos 2024-08-19 11:56:49 INFO Stop downloading when prexisiting files count is: Download All Photos 2024-08-19 11:56:49 INFO Live photo size: original 2024-08-19 11:56:49 INFO Skip videos: false 2024-08-19 11:56:49 INFO Convert HEIC to JPEG: false 2024-08-19 11:56:49 INFO Downloading from: icloud.com 2024-08-19 11:56:49 INFO Authentication domain: com 2024-08-19 11:56:49 INFO Ignore Synology extended attribute directories: Disabled 2024-08-19 11:56:49 INFO Container initialisation complete 2024-08-19 11:56:49 INFO Script launch parameters: --Init Running in MAIN Enter iCloud password for krissy@wardfamily.cc: -bash-5.2$

Issue: docker command just exits without allowing entry of information needed.

boredazfcuk commented 1 month ago

--Enable-Debugging toggles debug mode on and off by editing the /config/icloudpd.conf configuration file and setting debug_logging=true. It should not be used in conjunction with other command line parameters.

However, your log snippet doesn't show any debug logs. Can you make sure debug_logging=true is in your /config/icloudpd.conf file and generate a new log, please?

PrayerfulDrop commented 1 month ago

I appreciate the info. After seeing that the debugging still had the script exit out suddenly I decided to do the -reauth.sh script and was successful in acquiring the MFA. Looks like everything is back up and running.