boredazfcuk / docker-icloudpd

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

sync-icloud.sh initialize won't ask for my password - how do I input my password? #583

Open BananaElf9 opened 2 weeks ago

BananaElf9 commented 2 weeks ago

Hey guys so I'm new to docker and trying to get this all running. any ideas why it won't ask for my password? I've also tried sync-icloud.sh --initialize -- username --password to no avail.

`PS F:\docker-icloudpd> docker exec -it docker-icloudpd-icloudpd_user-1 /bin/sh root@icloudpd_user:/> sync-icloud.sh --initialize

2024-06-18 19:42:38 INFO boredazfcuk/icloudpd container v1.0.846_17-06-2024 started 2024-06-18 19:42:38 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2024-06-18 19:42:38 INFO Alpine Linux 3.20.0 2024-06-18 19:42:38 INFO Python version: 3.12.3 2024-06-18 19:42:40 INFO icloud-photos-downloader version: 1.20.0 2024-06-18 19:42:40 INFO Loading configuration from: /config/icloudpd.conf 2024-06-18 19:43:09 INFO Apple ID: abcd@gmail.com 2024-06-18 19:43:09 INFO Authentication Type: MFA 2024-06-18 19:43:09 INFO Cookie path: /config/abcdcom 2024-06-18 19:43:09 INFO Cookie expiry notification period: 7 2024-06-18 19:43:09 INFO Download destination directory: /home/user/iCloud 2024-06-18 19:43:09 INFO Folder structure: {:%Y/%m/%d} 2024-06-18 19:43:09 INFO Keep Unicode: false 2024-06-18 19:43:09 INFO Live Photo MOV Filename Policy: suffix 2024-06-18 19:43:09 INFO File Match Policy: name-size-dedup-with-suffix 2024-06-18 19:43:09 INFO Synchronisation interval: 86400 2024-06-18 19:43:09 INFO Synchronisation delay (minutes): 0 2024-06-18 19:43:09 INFO Set EXIF date/time: false 2024-06-18 19:43:09 INFO Auto delete: false 2024-06-18 19:43:09 INFO Delete after download: false 2024-06-18 19:43:09 INFO Photo size: original 2024-06-18 19:43:09 INFO Align RAW: as-is 2024-06-18 19:43:09 INFO Single pass mode: false 2024-06-18 19:43:09 INFO Skip download check: false 2024-06-18 19:43:09 INFO Skip live photos: false 2024-06-18 19:43:09 INFO Number of most recently added photos to download: Download All Photos 2024-06-18 19:43:09 INFO Downloading photos from library: all libraries 2024-06-18 19:43:09 INFO Stop downloading when prexisiting files count is: Download All Photos 2024-06-18 19:43:09 INFO Live photo size: original 2024-06-18 19:43:09 INFO Skip videos: false 2024-06-18 19:43:09 INFO Convert HEIC to JPEG: false 2024-06-18 19:43:09 INFO Downloading from: icloud.com 2024-06-18 19:43:09 INFO Authentication domain: com 2024-06-18 19:43:09 INFO Ignore Synology extended attribute directories: Disabled 2024-06-18 19:43:10 INFO Script launch parameters: --initialize usage: icloud [-h] [--username USERNAME] [--password PASSWORD] [-n] [--delete-from-keyring] [--list] [--llist] [--locate] [--device DEVICE_ID] [--sound] [--message MESSAGE] [--silentmessage SILENTMESSAGE] [--lostmode] [--lostphone LOST_PHONE] [--lostpassword LOST_PASSWORD] [--lostmessage LOST_MESSAGE] [--outputfile] [--domain DOMAIN] icloud: error: No password supplied 2024-06-18 19:43:12 ERROR Keyring file does not exist. Please try again. `

boredazfcuk commented 2 weeks ago

Initialise is spelled incorrectly. I did think I'd made adjustments for that though, as you're not the first to do it lol. You can just use --init too.

Shouldn't need anything else. It prompts you for the password and the Apple ID will be pulled from the icloudpd.conf file, or the variable if the container was created with one.

Also, the shell should be /bin/ash, but I would have thought sh links to ash.

I usually launch mine like this: docker exec -it icloudpd /bin/ash

Then sync-icloud.sh --init from the shell prompt and follow the on-screen instructions.

BananaElf9 commented 2 weeks ago

Thanks! I tried those steps but looks like it gave the same response

PS F:\docker-icloudpd> docker exec -it docker-icloudpd-icloudpd_user-1 /bin/ash
root@icloudpd_user:/> sync-icloud.sh --init

2024-06-18 20:48:15 INFO     ***** boredazfcuk/icloudpd container v1.0.846_17-06-2024 started *****
2024-06-18 20:48:15 INFO     ***** For support, please go here: https://github.com/boredazfcuk/docker-icloudpd *****
2024-06-18 20:48:15 INFO     Alpine Linux 3.20.0
2024-06-18 20:48:15 INFO     Python version: 3.12.3
2024-06-18 20:48:16 INFO     icloud-photos-downloader version: 1.20.0
2024-06-18 20:48:16 INFO     Loading configuration from: /config/icloudpd.conf
2024-06-18 20:48:46 INFO     Apple ID: abcd@gmail.com
2024-06-18 20:48:46 INFO     Authentication Type: MFA
2024-06-18 20:48:46 INFO     Cookie path: /config/abcdgmailcom
2024-06-18 20:48:46 INFO     Cookie expiry notification period: 7
2024-06-18 20:48:46 INFO     Download destination directory: /home/user/iCloud
2024-06-18 20:48:46 INFO     Folder structure: {:%Y/%m/%d}
2024-06-18 20:48:46 INFO     Keep Unicode: false
2024-06-18 20:48:46 INFO     Live Photo MOV Filename Policy: suffix
2024-06-18 20:48:46 INFO     File Match Policy: name-size-dedup-with-suffix
2024-06-18 20:48:46 INFO     Synchronisation interval: 86400
2024-06-18 20:48:46 INFO     Synchronisation delay (minutes): 0
2024-06-18 20:48:46 INFO     Set EXIF date/time: false
2024-06-18 20:48:46 INFO     Auto delete: false
2024-06-18 20:48:46 INFO     Delete after download: false
2024-06-18 20:48:46 INFO     Photo size: original
2024-06-18 20:48:46 INFO     Align RAW: as-is
2024-06-18 20:48:46 INFO     Single pass mode: false
2024-06-18 20:48:46 INFO     Skip download check: false
2024-06-18 20:48:46 INFO     Skip live photos: false
2024-06-18 20:48:46 INFO     Number of most recently added photos to download: Download All Photos
2024-06-18 20:48:46 INFO     Downloading photos from library: all libraries
2024-06-18 20:48:46 INFO     Stop downloading when prexisiting files count is: Download All Photos
2024-06-18 20:48:46 INFO     Live photo size: original
2024-06-18 20:48:46 INFO     Skip videos: false
2024-06-18 20:48:46 INFO     Convert HEIC to JPEG: false
2024-06-18 20:48:46 INFO     Downloading from: icloud.com
2024-06-18 20:48:46 INFO     Authentication domain: com
2024-06-18 20:48:46 INFO     Ignore Synology extended attribute directories: Disabled
2024-06-18 20:48:47 INFO     Script launch parameters: --init
usage: icloud [-h] [--username USERNAME] [--password PASSWORD] [-n] [--delete-from-keyring] [--list] [--llist] [--locate] [--device DEVICE_ID] [--sound] [--message MESSAGE] [--silentmessage SILENTMESSAGE]
              [--lostmode] [--lostphone LOST_PHONE] [--lostpassword LOST_PASSWORD] [--lostmessage LOST_MESSAGE] [--outputfile] [--domain DOMAIN]
icloud: error: No password supplied
2024-06-18 20:48:49 ERROR    Keyring file does not exist. Please try again.
SandraCHC commented 2 weeks ago

Maybe it is the same issue like in the main package? https://github.com/icloud-photos-downloader/icloud_photos_downloader/issues/871 I have the same issue

With your older Version boredazfcuk/icloudpd:1.0.825 it works. After Keyring is createt, you can use the newest version