boredazfcuk / docker-icloudpd

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

Can't get pass the cookie creation on Qnap #169

Closed Koramchad closed 2 years ago

Koramchad commented 2 years ago

I saw a similar Issue on a QNAP that weas marked as solved, but I simply can't get past the "Cookie is not 2FA capable". I used the --Initialise flag, i've even set the interactive_only to false per the other post... What am I missing?

Thanks for your work on this, can't wait to get it running! I was running out of space on the 2Tb plan, so this will save all of our pictures/videos...

2022-06-09 06:51:14 INFO boredazfcuk/icloudpd container for icloud_photo_downloader started 2022-06-09 06:51:14 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2022-06-09 06:51:14 INFO /usr/local/bin/sync-icloud.sh date: 2022/05/20_13:21 2022-06-09 06:51:14 INFO /usr/local/bin/sync-icloud.sh hash: 51a0d434621ae06f01518df230338e6a 2022-06-09 06:51:14 INFO Alpine Linux 3.13.5 2022-06-09 06:51:14 INFO Python version: 3.8.10 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command. 2022-06-09 06:51:16 INFO icloudpd version: 1.7.2 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command. 2022-06-09 06:51:17 INFO pyicloud-ipd version: 0.10.1 2022-06-09 06:51:17 INFO Running user id: 0 2022-06-09 06:51:17 INFO Running group id: 0 2022-06-09 06:51:17 INFO Local user: user:1000 2022-06-09 06:51:17 INFO Local group: group:1000 2022-06-09 06:51:17 INFO Force GID: False 2022-06-09 06:51:17 INFO LAN IP Address: 10.0.3.3 2022-06-09 06:51:17 INFO Default gateway: 10.0.3.1 2022-06-09 06:51:17 INFO DNS server: 10.0.3.1 2022-06-09 06:51:17 INFO IP address for icloud.com: 17.253.144.10 2022-06-09 06:51:28 INFO Route check to icloud.com successful 2022-06-09 06:51:28 INFO Apple ID: alvarogan@gmail.com 2022-06-09 06:51:28 INFO Authentication Type: 2FA 2022-06-09 06:51:28 INFO Cookie path: /config/alvarogangmailcom 2022-06-09 06:51:28 INFO Cookie expiry notification period: 7 2022-06-09 06:51:28 INFO Download destination directory: /download 2022-06-09 06:51:28 INFO Folder structure: {:%Y/%m/%d} 2022-06-09 06:51:28 INFO Directory permissions: 750 2022-06-09 06:51:28 INFO File permissions: 640 2022-06-09 06:51:28 INFO Synchronisation interval: 86400 2022-06-09 06:51:28 INFO Synchronisation delay (minutes): 0 2022-06-09 06:51:28 INFO Set EXIF date/time: False 2022-06-09 06:51:28 INFO Auto delete: False 2022-06-09 06:51:28 INFO Photo size: original 2022-06-09 06:51:28 INFO Single pass mode: False 2022-06-09 06:51:28 INFO Skip download check: False 2022-06-09 06:51:28 INFO Skip live photos: False 2022-06-09 06:51:28 INFO Number of most recently added photos to download: Download All Photos 2022-06-09 06:51:28 INFO Downloading photos from album: Download All Photos 2022-06-09 06:51:28 INFO Stop downloading when prexisiting files count is: Download All Photos 2022-06-09 06:51:28 INFO Live photo size: original 2022-06-09 06:51:28 INFO Skip videos: False 2022-06-09 06:51:28 INFO Convert HEIC to JPEG: False 2022-06-09 06:51:28 INFO JPEG conversion quality: 90 2022-06-09 06:51:28 INFO Downloading from: icloud.com 2022-06-09 06:51:29 INFO Creating directory: /home/user/.local/share/ 2022-06-09 06:51:29 INFO Creating symbolic link: /home/user/.local/share/python_keyring/ to: /config/python_keyring/ directory 2022-06-09 06:51:29 INFO Creating group group:1000 2022-06-09 06:51:29 INFO Creating user user:1000 2022-06-09 06:51:29 INFO Set owner, user, on iCloud directory, if required 2022-06-09 06:51:29 INFO Set group, group, on iCloud directory, if required 2022-06-09 06:51:29 INFO Correct owner on icloudpd temp directory, if required 2022-06-09 06:51:29 INFO Correct group on icloudpd temp directory, if required 2022-06-09 06:51:29 INFO Correct owner on config directory, if required 2022-06-09 06:51:29 INFO Correct group on config directory, if required 2022-06-09 06:51:29 INFO Correct owner on keyring directory, if required 2022-06-09 06:51:29 INFO Correct group on keyring directory, if required 2022-06-09 06:51:29 INFO Set 750 permissions on iCloud directories, if required 2022-06-09 06:51:29 INFO Set 640 permissions on iCloud files, if required 2022-06-09 06:51:29 INFO Configure password 2022-06-09 06:51:29 INFO Keyring file /config/python_keyring/keyring_pass.cfg exists, but does not contain any credentials. Removing 2022-06-09 06:51:29 ERROR Keyring file /config/python_keyring/keyring_pass.cfg does not exist 2022-06-09 06:51:29 INFO - Please add the your password to the system keyring using the --Initialise script command line option 2022-06-09 06:51:29 INFO - Syntax: docker exec -it sync-icloud.sh --Initialise 2022-06-09 06:51:29 INFO - Example: docker exec -it icloudpd sync-icloud.sh --Initialise 2022-06-09 06:51:29 INFO Waiting for keyring file to be created... 2022-06-09 06:51:39 INFO Keyring file exists, continuing 2022-06-09 06:51:39 INFO Check download directory mounted correctly 2022-06-09 06:51:39 INFO Failsafe file /download/.mounted exists, continuing 2022-06-09 06:51:39 INFO Set owner, user, on iCloud directory, if required 2022-06-09 06:51:39 INFO Set group, group, on iCloud directory, if required 2022-06-09 06:51:39 INFO Correct owner on icloudpd temp directory, if required 2022-06-09 06:51:39 INFO Correct group on icloudpd temp directory, if required 2022-06-09 06:51:39 INFO Correct owner on config directory, if required 2022-06-09 06:51:39 INFO Correct group on config directory, if required 2022-06-09 06:51:39 INFO Correct owner on keyring directory, if required 2022-06-09 06:51:39 INFO Correct group on keyring directory, if required 2022-06-09 06:51:39 INFO Set 750 permissions on iCloud directories, if required 2022-06-09 06:51:39 INFO Set 640 permissions on iCloud files, if required 2022-06-09 06:51:39 INFO Sync user user 2022-06-09 06:51:39 INFO Synchronisation starting at 06:51:39 2022-06-09 06:51:39 INFO Check 2FA Cookie 2022-06-09 06:51:39 INFO Cookie exists, check expiry date 2022-06-09 06:51:39 ERROR Cookie is not 2FA capable, authentication type may have changed 2022-06-09 06:51:39 INFO - Please recreate your cookie using the --Initialise script command line option 2022-06-09 06:51:39 INFO - Syntax: docker exec -it sync-icloud.sh --Initialise 2022-06-09 06:51:39 INFO - Example: docker exec -it icloudpd sync-icloud.sh --Initialise 2022-06-09 06:51:39 INFO Restarting in 5 minutes...

boredazfcuk commented 2 years ago

Hi,

Have you connected to the container and gone through the 2FA process successfully?

I see this bit: 2022-06-09 06:51:29 INFO Keyring file /config/python_keyring/keyring_pass.cfg exists, but does not contain any credentials. Removing when the 2FA process has been started, but the password was entered incorrectly.

boredazfcuk commented 2 years ago

I'm going to close this off as abandoned...