boredazfcuk / docker-icloudpd

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

Authentication Issue #473

Closed jinnxu75 closed 6 months ago

jinnxu75 commented 6 months ago

Is anyone can help one the following issue? thanks a lot.

2024/1/4 15:07 2024/01/04 15:07:41, 2024-01-04 15:07:41 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.432 started 2024/01/04 15:07:41, 2024-01-04 15:07:41 INFO For support please go here: https://github.com/boredazfcuk/docker-icloudpd 2024/01/04 15:07:41, 2024-01-04 15:07:41 INFO Alpine Linux 3.17.3 2024/01/04 15:07:41, 2024-01-04 15:07:41 INFO Python version: 3.10.11 2024/01/04 15:07:41, 2024-01-04 15:07:41 INFO Loading configuration from: /config/icloudpd.conf 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG Running user id: 0 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG Running group id: 0 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG Local user: jinn:1026 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG Local group: users:100 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG Force GID: true 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG LAN IP Address: 172.17.0.2 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG Default gateway: 172.17.0.1 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG DNS server: 192.168.110.1 2024/01/04 15:07:41, 192.168.110.1 2024/01/04 15:07:41, 2024-01-04 15:07:41 DEBUG IP address for icloud.com.cn: 103.115.248.1 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Route check to icloud.com.cn successful 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Apple ID: (hidden) 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Authentication Type: 2FA 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Cookie path: /config/(hidden) 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Cookie expiry notification period: 7 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Download destination directory: /iCloud 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Folder structure: {:%Y/%m/%d} 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Directory permissions: 750 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG File permissions: 640 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Synchronisation interval: 86400 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Synchronisation delay (minutes): 0 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Set EXIF date/time: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Auto delete: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Delete after download: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Photo size: original 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Single pass mode: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Skip download check: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Skip live photos: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Number of most recently added photos to download: Download All Photos 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Downloading photos from album: Download All Photos 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Stop downloading when prexisiting files count is: Download All Photos 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Live photo size: original 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Skip videos: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Convert HEIC to JPEG: false 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Downloading from: icloud.com.cn 2024/01/04 15:08:02, 2024-01-04 15:08:02 INFO Authentication domain: cn 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Nextcloud synchronisation trigger: Disabled 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Group users:100 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG User jinn:1026 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Correct owner on icloudpd temp directory if required 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Correct group on icloudpd temp directory if required 2024/01/04 15:08:02, 2024-01-04 15:08:02 DEBUG Correct owner on config directory if required 2024/01/04 15:08:04, 2024-01-04 15:08:04 DEBUG Correct group on config directory if required 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Correct owner on keyring directory if required 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Correct group on keyring directory if required 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Configure password 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Using password stored in keyring file: /config/python_keyring/keyring_pass.cfg 2024/01/04 15:08:07, 2024-01-04 15:08:07 INFO Check download directory mounted correctly... 2024/01/04 15:08:07, 2024-01-04 15:08:07 INFO Failsafe file /iCloud/.mounted exists continuing 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Correct owner on icloudpd temp directory if required 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Correct group on icloudpd temp directory if required 2024/01/04 15:08:07, 2024-01-04 15:08:07 DEBUG Correct owner on config directory if required 2024/01/04 15:08:09, 2024-01-04 15:08:09 DEBUG Correct group on config directory if required 2024/01/04 15:08:11, 2024-01-04 15:08:11 DEBUG Correct owner on keyring directory if required 2024/01/04 15:08:11, 2024-01-04 15:08:11 DEBUG Correct group on keyring directory if required 2024/01/04 15:08:11, 2024-01-04 15:08:11 DEBUG Switched to icloudpd: 1.13.0 2024/01/04 15:08:12, Traceback (most recent call last): 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:12, req = self.session.post( 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/requests/sessions.py" line 635 2024/01/04 15:08:12, return self.request("POST" url 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:12, self._raise_error(code reason) 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:12, raise api_error 2024/01/04 15:08:12, pyicloud_ipd.exceptions.PyiCloudAPIResponseError: Unknown reason 2024/1/4 15:08 2024/01/04 15:08:12, During handling of the above exception" 2024/1/4 15:08 2024/01/04 15:08:12, Traceback (most recent call last): 2024/01/04 15:08:12,File "/opt/icloudpd_latest/bin/icloudpd" 2024/01/04 15:08:12, sys.exit(main()) 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:12, return self.main(args 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:12, rv = self.invoke(ctx) 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:12, return ctx.invoke(self.callback 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:12, return __callback(args 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/icloudpd/base.py" 2024/01/04 15:08:12, core( 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/icloudpd/base.py" 2024/01/04 15:08:12, icloud = authenticator(domain)( 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/icloudpd/authentication.py" 2024/01/04 15:08:12, icloud = pyicloud_ipd.PyiCloudService( 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:12, self.authenticate() 2024/01/04 15:08:12,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:12, raise PyiCloudFailedLoginException(msg" 2024/01/04 15:08:12, pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.' PyiCloudAPIResponseError('Unknown reason')) 2024/01/04 15:08:12, 2024-01-04 15:08:12 INFO Albums available: 2024/01/04 15:08:12, 2024-01-04 15:08:12 INFO Sync user: jinn 2024/01/04 15:08:12, 2024-01-04 15:08:12 INFO Synchronisation starting at 15:08:12 2024/01/04 15:08:16, 2024-01-04 15:08:16 DEBUG Check 2FA Cookie 2024/01/04 15:08:17, 2024-01-04 15:08:16 DEBUG Cookie exists 2024/01/04 15:08:17, 2024-01-04 15:08:16 DEBUG Valid two factor authentication cookie found. Days until expiration: 87 2024/01/04 15:08:17, 2024-01-04 15:08:16 INFO Check download directory mounted correctly... 2024/01/04 15:08:17, 2024-01-04 15:08:16 INFO Failsafe file /iCloud/.mounted exists continuing 2024/01/04 15:08:17, 2024-01-04 15:08:16 INFO Check for new files using password stored in keyring file 2024/01/04 15:08:17, 2024-01-04 15:08:16 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/01/04 15:08:17, 2024-01-04 15:08:16 DEBUG Switched to icloudpd: 1.13.0 2024/01/04 15:08:17, 2024-01-04 15:08:16 ERROR Failed check for new files files 2024/01/04 15:08:17, 2024-01-04 15:08:16 ERROR - Can you log into icloud.com.cn without receiving pop-up notifications? 2024/01/04 15:08:17, 2024-01-04 15:08:16 ERROR Error debugging info: 2024/01/04 15:08:17, 2024-01-04 15:08:16 ERROR Traceback (most recent call last): 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:17, req = self.session.post( 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/requests/sessions.py" 2024/01/04 15:08:17, return self.request("POST" 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:17, self._raise_error(code reason) 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:17, raise api_error 2024/01/04 15:08:17, pyicloud_ipd.exceptions.PyiCloudAPIResponseError: Unknown reason 2024/1/4 15:08 2024/01/04 15:08:17, During handling of the above exception 2024/1/4 15:08 2024/01/04 15:08:17, Traceback (most recent call last): 2024/01/04 15:08:17,File "/opt/icloudpd_latest/bin/icloudpd" 2024/01/04 15:08:17, sys.exit(main()) 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:17, return self.main(args" 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:17, rv = self.invoke(ctx) 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:17, return ctx.invoke(self.callback 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/click/core.py" 2024/01/04 15:08:17, return __callback(args" 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/icloudpd/base.py" 2024/01/04 15:08:17, core( 2024/01/04 15:08:17,File "/opt/icloudpd_latest/lib/python3.10/site-packages/icloudpd/base.py" 2024/01/04 15:08:17, icloud = authenticator(domain)( 2024/01/04 15:08:17, File "/opt/icloudpd_latest/lib/python3.10/site-packages/icloudpd/authentication.py" 2024/01/04 15:08:17, icloud = pyicloud_ipd.PyiCloudService( 2024/01/04 15:08:17, File "/opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py" 2024/01/04 15:08:17, self.authenticate() pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseError('Unknown reason')) raise PyiCloudFailedLoginException(msg, error) File /opt/icloudpd_latest/lib/python3.10/site-packages/pyicloud_ipd/base.py 2024-01-04 15:08:16 ERROR Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2024-01-04 15:08:16 INFO Web cookie expires: 2024-03-02 @ 07:28:53 2024-01-04 15:08:16 INFO Two factor authentication cookie expires: 2024-04-01 @ 07:29:12 2024-01-04 15:08:16 INFO Days remaining until expiration: 87 2024-01-04 15:08:16 DEBUG iCloud login counter = 1 2024-01-04 15:08:16 INFO Synchronisation ended at 15:08:16 2024-01-04 15:08:16 INFO Total time taken: 00:00:04 2024-01-04 15:08:16 INFO Next synchronisation at 15:08:12

jinnxu75 commented 6 months ago

Solved it after i upgraded iCloudpd to latest version :)