boredazfcuk / docker-icloudpd

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

更新今天新版后,中国区仍然无法使用 #294

Closed shaoj0013 closed 1 year ago

shaoj0013 commented 1 year ago

pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter 2023-03-16 08:59:18 ERROR Failed check for new files files 2023-03-16 08:59:18 ERROR - Can you log into iCloud.com without receiving pop-up notifications? 2023-03-16 08:59:18 ERROR Error debugging info: 2023-03-16 08:59:18 ERROR Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in call File "/usr/bin/icloudpd", line 8, in sys.exit(main()) return self.main(args, kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 288, in main return __callback(args, **kwargs)  File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 571, in core ( File "/usr/lib/python3.10/site-packages/icloudpd/authentication.py", line 31, in authenticate_ icloud = authenticator(domain)( icloud = pyicloud_ipd.PyiCloudService( self.authenticate() File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init raise PyiCloudConnectionException(msg) File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 234, in authenticate

shaoj0013 commented 1 year ago

操作

2023-03-16 12:05:59 INFO icloudpd version: 1.12.0 2023-03-16 12:06:00 INFO pyicloud-ipd version: 2023-03-16 12:06:00 INFO Running user id: 0 2023-03-16 12:06:00 INFO Running group id: 0 2023-03-16 12:06:00 INFO Local user: admin:1024 2023-03-16 12:06:00 INFO Local group: users:100 2023-03-16 12:06:00 INFO Force GID: False 2023-03-16 12:06:00 INFO LAN IP Address: 192.168.48.1 2023-03-16 12:06:00 INFO Default gateway: 192.168.50.253 2023-03-16 12:06:00 INFO DNS server: 127.0.0.11 240e:46:4088::4088 2023-03-16 12:06:01 INFO IP address for icloud.com: 103.115.248.1 2023-03-16 12:06:31 INFO Route check to icloud.com.cn successful 2023-03-16 12:06:31 INFO Apple ID: shaoj0013@qq.com 2023-03-16 12:06:31 INFO Authentication Type: 2FA 2023-03-16 12:06:31 INFO Cookie path: /config/shaoj0013qqcom 2023-03-16 12:06:31 INFO Cookie expiry notification period: 7 2023-03-16 12:06:31 INFO Download destination directory: /mnt/admin/Photos/iCloud/shaoj0013 2023-03-16 12:06:31 INFO Folder structure: {:%Y/%m} 2023-03-16 12:06:31 INFO Directory permissions: 750 2023-03-16 12:06:31 INFO File permissions: 640 2023-03-16 12:06:31 INFO Synchronisation interval: 43200 2023-03-16 12:06:31 INFO Synchronisation delay (minutes): 0 2023-03-16 12:06:31 INFO Set EXIF date/time: False 2023-03-16 12:06:31 INFO Auto delete: True 2023-03-16 12:06:31 INFO Delete after download: False 2023-03-16 12:06:31 INFO Photo size: original 2023-03-16 12:06:31 INFO Single pass mode: False 2023-03-16 12:06:31 INFO Skip download check: False 2023-03-16 12:06:31 INFO Skip live photos: False 2023-03-16 12:06:31 INFO Number of most recently added photos to download: 100 2023-03-16 12:06:31 INFO Downloading photos from album: Download All Photos 2023-03-16 12:06:31 INFO Stop downloading when prexisiting files count is: Download All Photos 2023-03-16 12:06:31 INFO Live photo size: original 2023-03-16 12:06:31 INFO Skip videos: False 2023-03-16 12:06:31 INFO Convert HEIC to JPEG: false 2023-03-16 12:06:31 INFO JPEG conversion quality: 90 2023-03-16 12:06:31 INFO Nextcloud synchronisation trigger: Disabled 2023-03-16 12:06:31 INFO Creating directory: /home/admin/.local/share/ 2023-03-16 12:06:31 INFO Creating symbolic link: /home/admin/.local/share/python_keyring/ to: /config/python_keyring/ directory 2023-03-16 12:06:31 INFO Group, users:100, already created 2023-03-16 12:06:31 INFO Creating user admin:1024 2023-03-16 12:06:32 INFO Correct owner on icloudpd temp directory, if required 2023-03-16 12:06:32 INFO Correct group on icloudpd temp directory, if required 2023-03-16 12:06:32 INFO Correct owner on config directory, if required 2023-03-16 12:06:32 INFO Correct group on config directory, if required 2023-03-16 12:06:32 INFO Correct owner on keyring directory, if required 2023-03-16 12:06:32 INFO Correct group on keyring directory, if required 2023-03-16 12:06:32 INFO Configure password 2023-03-16 12:06:32 INFO Using password stored in keyring file: /config/python_keyring/keyring_pass.cfg 2023-03-16 12:06:32 INFO Check download directory mounted correctly 2023-03-16 12:06:32 INFO Failsafe file /mnt/admin/Photos/iCloud/shaoj0013/.mounted exists, continuing 2023-03-16 12:06:32 INFO Correct owner on icloudpd temp directory, if required 2023-03-16 12:06:32 INFO Correct group on icloudpd temp directory, if required 2023-03-16 12:06:32 INFO Correct owner on config directory, if required 2023-03-16 12:06:32 INFO Correct group on config directory, if required 2023-03-16 12:06:32 INFO Correct owner on keyring directory, if required 2023-03-16 12:06:32 INFO Correct group on keyring directory, if required 2023-03-16 12:06:32 INFO Sync user admin 2023-03-16 12:06:32 INFO Synchronisation starting at 12:06:32 2023-03-16 12:06:32 INFO Check 2FA Cookie 2023-03-16 12:06:32 INFO Cookie exists, check expiry date 2023-03-16 12:06:32 INFO Valid two factor authentication cookie found. Days until expiration: 81 2023-03-16 12:06:32 INFO Check download directory mounted correctly 2023-03-16 12:06:32 INFO Failsafe file /mnt/admin/Photos/iCloud/shaoj0013/.mounted exists, continuing 2023-03-16 12:06:32 INFO Check for new files using password stored in keyring file 2023-03-16 12:06:32 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 2023-03-16 12:06:36 ERROR Failed check for new files files 2023-03-16 12:06:36 ERROR - Can you log into iCloud.com without receiving pop-up notifications? 2023-03-16 12:06:36 ERROR Error debugging info: 2023-03-16 12:06:36 ERROR Traceback (most recent call last): File "/usr/bin/icloudpd", line 8, in sys.exit(main()) File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, kwargs) File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 288, in main  ( File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 571, in core icloud = authenticator(domain)( File "/usr/lib/python3.10/site-packages/icloudpd/authentication.py", line 31, in authenticate_ icloud = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init self.authenticate() File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 234, in authenticate raise PyiCloudConnectionException(msg) pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter 2023-03-16 12:06:36 ERROR ** Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2023-03-16 12:06:36 INFO Web cookie expires: 2023-05-07 @ 04:01:24 2023-03-16 12:06:36 INFO Two factor authentication cookie expires: 2023-06-06 @ 04:01:16 2023-03-16 12:06:36 INFO Days remaining until expiration: 81 2023-03-16 12:06:36 INFO iCloud login counter = 1 2023-03-16 12:06:36 INFO Synchronisation ended at 12:06:36 2023-03-16 12:06:36 INFO Total time taken: 00:00:04 2023-03-16 12:06:36 INFO Next synchronisation at 00:06:32

shaoj0013 commented 1 year ago

docker create \ --name iCloud_shaoj0013 \ --hostname iCloudDownloader \ --network macvlan \ --restart=always \ --env user=admin \ --env domain=cn \ --env user_id=1024\ --env group=users \ --env group_id=100 \ --env apple_id=*** \ --env authentication_type=2FA \ --env synchronisation_interval=43200 \ --env TZ=Asia/Shanghai \ --env convert_heic_to_jpeg=false \ --env synology_photos_app_fix=True \ --env auto_delete=True \ --env folder_structure={:%Y/%m} \ --env icloud_china=True \ --env recent_only=100 \ --env download_path=/mnt/admin/Photos/iCloud/shaoj0013 \ --volume /volume1/docker/icloudpd/admin:/config \ --volume hosthomes:/mnt \ boredazfcuk/icloudpd

AndreyNikiforov commented 1 year ago

@shaoj0013 to isolate the issue, can you try running upstream package: docker run -it --rm icloudpd/icloudpd:1.12.0 icloudpd --username your@email.address --list-albums --domain cn. If latest version of the upstream works with Apple auth from China, then we can tweak params for this project. Note that docker cmd for upstream does not map cookies intentionally.

shaoj0013 commented 1 year ago

@.:~# docker run -it --rm icloudpd/icloudpd:1.12.0 icloudpd --username @. --list-albums --domain cn Unable to find image 'icloudpd/icloudpd:1.12.0' locally 1.12.0: Pulling from icloudpd/icloudpd 63b65145d645: Already exists 1556c04ee634: Pull complete 334517999c6c: Pull complete Digest: sha256:4d9260625de8b1a8934b10a1c644280ea184f6ddb0d584421552e8ef1af8083a Status: Downloaded newer image for icloudpd/icloudpd:1.12.0 2023-03-16 04:19:39 DEBUG Authenticating... iCloud Password: 2023-03-16 04:20:11 INFO Two-step/two-factor authentication is required! Traceback (most recent call last): File "exec.py", line 63, in File "click/core.py", line 1130, in call File "click/core.py", line 1055, in main File "click/core.py", line 1657, in invoke File "click/core.py", line 1404, in invoke File "click/core.py", line 760, in invoke File "icloudpd/base.py", line 288, in main File "icloudpd/base.py", line 571, in core File "icloudpd/authentication.py", line 48, in authenticate_ File "icloudpd/authentication.py", line 55, in request_2sa File "pyicloud_ipd/base.py", line 266, in trusted_devices File "requests/sessions.py", line 600, in get File "pyicloud_ipd/base.py", line 105, in request File "pyicloud_ipd/base.py", line 127, in _raise_error pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com [1] Failed to execute script 'exec' due to unhandled exception!

Andrey Nikiforov @.***>于2023年3月16日 周四12:16写道:

@shaoj0013 https://github.com/shaoj0013 to isolate the issue, can you try running upstream package: docker run -it --rm icloudpd/icloudpd:1.12.0 icloudpd --username @.*** --list-albums --domain cn. If latest version of the upstream works with Apple auth from China, then we can tweak params for this project. Note that docker cmd for upstream does not map cookies intentionally.

— Reply to this email directly, view it on GitHub https://github.com/boredazfcuk/docker-icloudpd/issues/294#issuecomment-1471280326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5VSY4IAVSJLUVI2RUNK3DW4KHYFANCNFSM6AAAAAAV4RZKEY . You are receiving this because you were mentioned.Message ID: @.***>

shaoj0013 commented 1 year ago

root@DS918-shaoj0013:~# docker run -it --rm icloudpd/icloudpd:1.12.0 icloudpd --username shaoj0013@qq.com --list-albums --domain cn Unable to find image 'icloudpd/icloudpd:1.12.0' locally 1.12.0: Pulling from icloudpd/icloudpd 63b65145d645: Already exists 1556c04ee634: Pull complete 334517999c6c: Pull complete Digest: sha256:4d9260625de8b1a8934b10a1c644280ea184f6ddb0d584421552e8ef1af8083a Status: Downloaded newer image for icloudpd/icloudpd:1.12.0 2023-03-16 04:19:39 DEBUG Authenticating... iCloud Password: 2023-03-16 04:20:11 INFO Two-step/two-factor authentication is required! Traceback (most recent call last): File "exec.py", line 63, in File "click/core.py", line 1130, in call File "click/core.py", line 1055, in main File "click/core.py", line 1657, in invoke File "click/core.py", line 1404, in invoke File "click/core.py", line 760, in invoke File "icloudpd/base.py", line 288, in main File "icloudpd/base.py", line 571, in core File "icloudpd/authentication.py", line 48, in authenticate_ File "icloudpd/authentication.py", line 55, in request_2sa File "pyicloud_ipd/base.py", line 266, in trusted_devices File "requests/sessions.py", line 600, in get File "pyicloud_ipd/base.py", line 105, in request File "pyicloud_ipd/base.py", line 127, in _raise_error pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com [1] Failed to execute script 'exec' due to unhandled exception!

AndreyNikiforov commented 1 year ago

@shaoj0013 Thanks for quick response. Debugging remotely is hard... Sorry it still did not work. ;-(

shaoj0013 commented 1 year ago

Thank you for your prompt reply too! Thanks also to the author for his silent dedication!

jiaoting commented 1 year ago

2023-03-16 20:34:16 INFO boredazfcuk/icloudpd container for icloud_photo_downloader started 2023-03-16 20:34:16 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2023-03-16 20:34:16 INFO /usr/local/bin/sync-icloud.sh date: 2023/03/16_05:23 2023-03-16 20:34:16 INFO /usr/local/bin/sync-icloud.sh hash: caed431192b8c6326aa1ed119d14fbb8 2023-03-16 20:34:16 INFO Alpine Linux 3.17.2 2023-03-16 20:34:16 INFO Python version: 3.10.10 WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. 2023-03-16 20:34:18 INFO icloudpd version: 1.12.0 WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. 2023-03-16 20:34:19 INFO pyicloud-ipd version: 2023-03-16 20:34:19 INFO Running user id: 0 2023-03-16 20:34:19 INFO Running group id: 0 2023-03-16 20:34:19 INFO Local user: user:1000 2023-03-16 20:34:19 INFO Local group: group:1000 2023-03-16 20:34:19 INFO Force GID: False 2023-03-16 20:34:19 INFO LAN IP Address: 172.17.0.7 2023-03-16 20:34:19 INFO Default gateway: 172.17.0.1 2023-03-16 20:34:19 INFO DNS server: 192.168.111.1 2023-03-16 20:34:19 INFO IP address for icloud.com: 103.115.248.1 2023-03-16 20:34:43 INFO Route check to icloud.com.cn successful 2023-03-16 20:34:43 INFO Apple ID: jiaoting@126.com 2023-03-16 20:34:43 INFO Authentication Type: 2FA 2023-03-16 20:34:43 INFO Cookie path: /config/jiaoting126com 2023-03-16 20:34:43 INFO Cookie expiry notification period: 7 2023-03-16 20:34:43 INFO Download destination directory: /home/user/iCloud 2023-03-16 20:34:43 INFO Folder structure: {:%Y/%m/%d} 2023-03-16 20:34:43 INFO Directory permissions: 777 2023-03-16 20:34:43 INFO File permissions: 666 2023-03-16 20:34:43 INFO Synchronisation interval: 86400 2023-03-16 20:34:43 INFO Synchronisation delay (minutes): 0 2023-03-16 20:34:43 INFO Set EXIF date/time: False 2023-03-16 20:34:43 INFO Auto delete: true 2023-03-16 20:34:43 INFO Delete after download: False 2023-03-16 20:34:43 INFO Photo size: original 2023-03-16 20:34:43 INFO Single pass mode: False 2023-03-16 20:34:43 INFO Skip download check: False 2023-03-16 20:34:43 INFO Skip live photos: False 2023-03-16 20:34:43 INFO Number of most recently added photos to download: Download All Photos 2023-03-16 20:34:43 INFO Downloading photos from album: Download All Photos 2023-03-16 20:34:43 INFO Stop downloading when prexisiting files count is: Download All Photos 2023-03-16 20:34:43 INFO Live photo size: original 2023-03-16 20:34:43 INFO Skip videos: False 2023-03-16 20:34:43 INFO Convert HEIC to JPEG: False 2023-03-16 20:34:43 INFO JPEG conversion quality: 90 2023-03-16 20:34:43 INFO Nextcloud synchronisation trigger: Disabled 2023-03-16 20:34:43 INFO Script launch parameters: --Initialise 2023-03-16 20:34:43 INFO Group, group:1000, already created 2023-03-16 20:34:43 INFO User, user:1000, already created 2023-03-16 20:34:43 INFO Correct owner on icloudpd temp directory, if required 2023-03-16 20:34:43 INFO Correct group on icloudpd temp directory, if required 2023-03-16 20:34:43 INFO Correct owner on config directory, if required 2023-03-16 20:34:43 INFO Correct group on config directory, if required 2023-03-16 20:34:43 INFO Correct owner on keyring directory, if required 2023-03-16 20:34:43 INFO Correct group on keyring directory, if required 2023-03-16 20:34:43 INFO Configure password 2023-03-16 20:34:43 INFO Adding password to keyring file: /config/python_keyring/keyring_pass.cfg Enter iCloud password for jiaoting@126.com: Traceback (most recent call last): File "/usr/bin/icloud", line 8, in sys.exit(main()) File "/usr/lib/python3.10/site-packages/pyicloud_ipd/cmdline.py", line 209, in main api = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init self.authenticate() File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 234, in authenticate raise PyiCloudConnectionException(msg) pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter 2023-03-16 20:35:20 INFO Correct owner on config directory, if required 2023-03-16 20:35:20 INFO Correct group on config directory, if required 2023-03-16 20:35:20 INFO Generate 2FA cookie using password stored in keyring file iCloud Password: Traceback (most recent call last): File "/usr/bin/icloudpd", line 8, in sys.exit(main()) File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, **kwargs) File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 288, in main core( File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 571, in core icloud = authenticator(domain)( File "/usr/lib/python3.10/site-packages/icloudpd/authentication.py", line 31, in authenticate_ icloud = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init self.authenticate() File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 234, in authenticate raise PyiCloudConnectionException(msg) pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter grep: /config/jiaoting126com: No such file or directory ash: out of range 2023-03-16 20:35:27 ERROR 2FA information missing from cookie. Authentication has failed 2023-03-16 20:35:27 ERROR - Was the correct password entered? 2023-03-16 20:35:27 ERROR - Was the 2FA code mistyped? 2023-03-16 20:35:27 ERROR - Can you log into iCloud.com without receiving pop-up notifications?

jiaoting commented 1 year ago

same problem

sharelj commented 1 year ago

2023-03-16 21:13:32 INFO boredazfcuk/icloudpd container for icloud_photo_downloader started 2023-03-16 21:13:32 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2023-03-16 21:13:32 INFO /usr/local/bin/sync-icloud.sh date: 2023/03/16_05:23 2023-03-16 21:13:32 INFO /usr/local/bin/sync-icloud.sh hash: caed431192b8c6326aa1ed119d14fbb8 2023-03-16 21:13:32 INFO Alpine Linux 3.17.2 2023-03-16 21:13:32 INFO Python version: 3.10.10 2023-03-16 21:13:33 INFO icloudpd version: 1.12.0 2023-03-16 21:13:33 INFO pyicloud-ipd version: 2023-03-16 21:13:33 INFO Running user id: 0 2023-03-16 21:13:33 INFO Running group id: 0 2023-03-16 21:13:33 INFO Local user: user:1000 2023-03-16 21:13:33 INFO Local group: group:1000 2023-03-16 21:13:33 INFO Force GID: False 2023-03-16 21:13:33 INFO LAN IP Address: 10.0.3.13 2023-03-16 21:13:33 INFO Default gateway: 10.0.3.1 2023-03-16 21:13:33 INFO DNS server: 10.0.3.1 2023-03-16 21:13:33 INFO IP address for icloud.com: 103.115.248.1 2023-03-16 21:13:57 INFO Route check to icloud.com.cn successful 2023-03-16 21:13:57 INFO Apple ID: joy@163.com 2023-03-16 21:13:57 INFO Authentication Type: 2FA 2023-03-16 21:13:57 INFO Cookie path: /config/joywenzi163com 2023-03-16 21:13:57 INFO Cookie expiry notification period: 7 2023-03-16 21:13:57 INFO Download destination directory: /iCloud 2023-03-16 21:13:57 INFO Folder structure: {:%Y/%m/%d} 2023-03-16 21:13:57 INFO Directory permissions: 750 2023-03-16 21:13:57 INFO File permissions: 640 2023-03-16 21:13:57 INFO Synchronisation interval: 86400 2023-03-16 21:13:57 INFO Synchronisation delay (minutes): 0 2023-03-16 21:13:57 INFO Set EXIF date/time: False 2023-03-16 21:13:57 INFO Auto delete: False 2023-03-16 21:13:57 INFO Delete after download: False 2023-03-16 21:13:57 INFO Photo size: original 2023-03-16 21:13:57 INFO Single pass mode: False 2023-03-16 21:13:57 INFO Skip download check: False 2023-03-16 21:13:57 INFO Skip live photos: False 2023-03-16 21:13:57 INFO Number of most recently added photos to download: Download All Photos 2023-03-16 21:13:57 INFO Downloading photos from album: Download All Photos 2023-03-16 21:13:57 INFO Stop downloading when prexisiting files count is: Download All Photos 2023-03-16 21:13:57 INFO Live photo size: original 2023-03-16 21:13:57 INFO Skip videos: False 2023-03-16 21:13:57 INFO Convert HEIC to JPEG: true 2023-03-16 21:13:57 INFO JPEG conversion quality: 90 2023-03-16 21:13:57 INFO Nextcloud synchronisation trigger: Disabled 2023-03-16 21:13:57 INFO Script launch parameters: --Initialise 2023-03-16 21:13:57 INFO Group, group:1000, already created 2023-03-16 21:13:57 INFO User, user:1000, already created 2023-03-16 21:13:57 INFO Correct owner on icloudpd temp directory, if required 2023-03-16 21:13:58 INFO Correct group on icloudpd temp directory, if required 2023-03-16 21:13:58 INFO Correct owner on config directory, if required 2023-03-16 21:13:58 INFO Correct group on config directory, if required 2023-03-16 21:13:58 INFO Correct owner on keyring directory, if required 2023-03-16 21:13:58 INFO Correct group on keyring directory, if required 2023-03-16 21:13:58 INFO Configure password 2023-03-16 21:13:58 INFO Using password stored in keyring file: /config/python_keyring/keyring_pass.cfg 2023-03-16 21:13:58 INFO Correct owner on config directory, if required 2023-03-16 21:13:58 INFO Correct group on config directory, if required 2023-03-16 21:13:58 INFO Generate 2FA cookie using password stored in keyring file Traceback (most recent call last): File "/usr/bin/icloudpd", line 8, in sys.exit(main()) File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, **kwargs) File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 288, in main core( File "/usr/lib/python3.10/site-packages/icloudpd/base.py", line 571, in core icloud = authenticator(domain)( File "/usr/lib/python3.10/site-packages/icloudpd/authentication.py", line 31, in authenticate_ icloud = pyicloud_ipd.PyiCloudService( File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init self.authenticate() File "/usr/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 234, in authenticate raise PyiCloudConnectionException(msg) pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter grep: /config/joy163com: No such file or directory ash: out of range 2023-03-16 21:14:00 ERROR 2FA information missing from cookie. Authentication has failed 2023-03-16 21:14:00 ERROR - Was the correct password entered? 2023-03-16 21:14:00 ERROR - Was the 2FA code mistyped? 2023-03-16 21:14:00 ERROR - Can you log into iCloud.com without receiving pop-up notifications?

sharelj commented 1 year ago

same issue

kdush commented 1 year ago

some and tks

zhaoqyu commented 1 year ago

same issue

zhaoqyu commented 1 year ago

thanks for your greate work

MannyChen0507 commented 1 year ago

same issue

Alano-i commented 1 year ago

same issue

supermayx commented 1 year ago

same here, guys did you find any solution? I have two accounts, A is registed in US, B is in China, while A works fine, and B encounter this problem. Tried modify "sync-icloud.sh" file, like this:

if [ "${icloud_china}" ]; then

icloud_domain="icloud.com.cn"

else

icloud_domain="icloud.com"

fi

but with no luck. Thanks!

neohob commented 1 year ago

same problem

supermayx commented 1 year ago

Hi guys, good news, I just found a viable solution for .cn users! Just use this image: pjoc/docker-icloudpd:master, all the configs are the same with icloudpd.

For more details, please refer to this post on bilibili: https://www.bilibili.com/read/cv21731964 The whole point is using old build of icloudpd, when .cn is working fine. While boredazfcuk do not keep outdated version, someone kept a copy in another image. from the log inside I guess it might be the 2022.12 version.

Not sure what has changed during the last three months, as long as it's working, I'm OK with it.

Hope boredazfcuk will get this fixed someday. It's a great tool! Thanks!

shaoj0013 commented 1 year ago

试验了下,的确可以!

Vincent @.***>于2023年3月24日 周五22:17写道:

Hi guys, good news, I just found a viable solution for .cn users! Just use this image: pjoc/docker-icloudpd:master, all the configs are the same with icloudpd.

For more details, please refer to this post on bilibili: https://www.bilibili.com/read/cv21731964 The whole point is using old build of icloudpd, when .cn is working fine. While boredazfcuk do not keep outdated version, someone kept a copy in another image. from the log inside I guess it might be the 2022.12 version.

Not sure what has changed during the last three months, as long as it's working, I'm OK with it.

Hope boredazfcuk with get this fixed someday. It's a great tool! Thanks!

— Reply to this email directly, view it on GitHub https://github.com/boredazfcuk/docker-icloudpd/issues/294#issuecomment-1482879791, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5VSY6WTYCRKB6D3PLNX7LW5WUHJANCNFSM6AAAAAAV4RZKEY . You are receiving this because you were mentioned.Message ID: @.***>

Look2046 commented 1 year ago

Hi guys, good news, I just found a viable solution for .cn users! Just use this image: pjoc/docker-icloudpd:master, all the configs are the same with icloudpd.

For more details, please refer to this post on bilibili: https://www.bilibili.com/read/cv21731964 The whole point is using old build of icloudpd, when .cn is working fine. While boredazfcuk do not keep outdated version, someone kept a copy in another image. from the log inside I guess it might be the 2022.12 version.

Not sure what has changed during the last three months, as long as it's working, I'm OK with it.

Hope boredazfcuk will get this fixed someday. It's a great tool! Thanks!

I installed and started this image to go through the --initilize process and restart the origional image, it works.

jiaoting commented 1 year ago

Hi guys, good news, I just found a viable solution for .cn users! Just use this image: pjoc/docker-icloudpd:master, all the configs are the same with icloudpd. For more details, please refer to this post on bilibili: https://www.bilibili.com/read/cv21731964 The whole point is using old build of icloudpd, when .cn is working fine. While boredazfcuk do not keep outdated version, someone kept a copy in another image. from the log inside I guess it might be the 2022.12 version. Not sure what has changed during the last three months, as long as it's working, I'm OK with it. Hope boredazfcuk will get this fixed someday. It's a great tool! Thanks!

I installed and started this image to go through the --initilize process and restart the origional image, it works.

好思路,用老镜像认证账号,然后用原版镜像正常操作

boredazfcuk commented 1 year ago

Hi guys, good news, I just found a viable solution for .cn users!

Just use this image: pjoc/docker-icloudpd:master, all the configs are the same with icloudpd.

For more details, please refer to this post on bilibili: https://www.bilibili.com/read/cv21731964

The whole point is using old build of icloudpd, when .cn is working fine.

While boredazfcuk do not keep outdated version, someone kept a copy in another image. from the log inside I guess it might be the 2022.12 version.

Not sure what has changed during the last three months, as long as it's working, I'm OK with it.

Hope boredazfcuk will get this fixed someday. It's a great tool! Thanks!

Someone else also reported this, however, they also reported that the changes it makes, breaks other functionality in my container. It's for this reason that I don't want to incorporate the changes and was hoping it would be fixed upstream.

I might look at seeing if I can install the alternative authentication package inside my container and then dynamically switch between packages when the --Initialisation function is activated and the icloud_China variable is set.

Actually... that could be a quick and dirty hack. I'll take a peek tonight.

boredazfcuk commented 1 year ago

Fixed in boredazfcuk/icloudpd:latest

shaoj0013 commented 1 year ago

Fixed in boredazfcuk/icloudpd:latest

I tested the latest version you pushed again, and it still works normally.

kdush commented 1 year ago

now it normally thanks

jiaoting commented 1 year ago

2023-04-12 15:45:17 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.283 started 2023-04-12 15:45:17 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2023-04-12 15:45:17 INFO Alpine Linux 3.17.3 2023-04-12 15:45:17 INFO Python version: 3.10.11 2023-04-12 15:45:39 INFO Apple ID: jiaoting@126.com 2023-04-12 15:45:39 INFO Authentication Type: 2FA 2023-04-12 15:45:39 INFO Cookie path: /config/jiaoting126com 2023-04-12 15:45:39 INFO Cookie expiry notification period: 7 2023-04-12 15:45:39 INFO Download destination directory: /home/user/iCloud 2023-04-12 15:45:39 INFO Folder structure: {:%Y/%m/%d} 2023-04-12 15:45:39 INFO Synchronisation interval: 86400 2023-04-12 15:45:39 INFO Synchronisation delay (minutes): 0 2023-04-12 15:45:39 INFO Set EXIF date/time: false 2023-04-12 15:45:39 INFO Auto delete: true 2023-04-12 15:45:39 INFO Photo size: original 2023-04-12 15:45:39 INFO Single pass mode: false 2023-04-12 15:45:39 INFO Skip download check: false 2023-04-12 15:45:39 INFO Skip live photos: false 2023-04-12 15:45:39 INFO Number of most recently added photos to download: Download All Photos 2023-04-12 15:45:39 INFO Downloading photos from album: Download All Photos 2023-04-12 15:45:39 INFO Stop downloading when prexisiting files count is: Download All Photos 2023-04-12 15:45:39 INFO Live photo size: original 2023-04-12 15:45:39 INFO Skip videos: false 2023-04-12 15:45:39 INFO Convert HEIC to JPEG: false 2023-04-12 15:45:40 INFO Downloading from: icloud.com.cn 2023-04-12 15:45:40 WARNING Downloading from icloud.com.cn is untested. Please report issues at https://github.com/boredazfcuk/docker-icloudpd/issues 2023-04-12 15:45:40 INFO Check download directory mounted correctly... 2023-04-12 15:45:40 INFO Failsafe file /home/user/iCloud/.mounted exists, continuing 2023-04-12 15:45:40 INFO Sync user: user 2023-04-12 15:45:40 INFO Synchronisation starting at 15:45:40 2023-04-12 15:45:40 INFO Check download directory mounted correctly... 2023-04-12 15:45:40 INFO Failsafe file /home/user/iCloud/.mounted exists, continuing 2023-04-12 15:45:40 INFO Check for new files using password stored in keyring file 2023-04-12 15:45:40 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 2023-04-12 15:45:42 ERROR Failed check for new files files 2023-04-12 15:45:42 ERROR - Can you log into iCloud.com without receiving pop-up notifications? 2023-04-12 15:45:42 ERROR Error debugging info: 2023-04-12 15:45:42 ERROR Traceback (most recent call last): File "/opt/icloudpd_v1.12.0/bin/icloudpd", line 8, in sys.exit(main()) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, kwargs) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/icloudpd/base.py", line 288, in main core( File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/icloudpd/base.py", line 571, in core icloud = authenticator(domain)( File "/opt/icloudpdv1.12.0/lib/python3.10/site-packages/icloudpd/authentication.py", line 31, in authenticate icloud = pyicloud_ipd.PyiCloudService( File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 204, in init self.authenticate() File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 234, in authenticate raise PyiCloudConnectionException(msg) pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter 2023-04-12 15:45:42 ERROR ** Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2023-04-12 15:45:42 INFO Web cookie expires: 2023-06-11 @ 07:44:28 2023-04-12 15:45:42 INFO Two factor authentication cookie expires: 2023-07-11 @ 07:44:38 2023-04-12 15:45:42 INFO Days remaining until expiration: 89 2023-04-12 15:45:42 INFO Synchronisation ended at 15:45:42 2023-04-12 15:45:42 INFO Total time taken: 00:00:02 2023-04-12 15:45:42 INFO Next synchronisation at 15:45:40

jiaoting commented 1 year ago

new problom

shaoj0013 commented 1 year ago

授权文件全部删除,重新两步验证!我保留授权文件也是这样的故障,重新获取两步验证后正常

jiaoting @.***>于2023年4月12日 周三15:50写道:

new problom

— Reply to this email directly, view it on GitHub https://github.com/boredazfcuk/docker-icloudpd/issues/294#issuecomment-1504822681, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5VSYZ5TW2MC3Y7GJH24RDXAZNENANCNFSM6AAAAAAV4RZKEY . You are receiving this because you were mentioned.Message ID: @.***>

jiaoting commented 1 year ago

授权文件全部删除,重新两步验证!我保留授权文件也是这样的故障,重新获取两步验证后正常 jiaoting @.>于2023年4月12日 周三15:50写道: new problom — Reply to this email directly, view it on GitHub <#294 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5VSYZ5TW2MC3Y7GJH24RDXAZNENANCNFSM6AAAAAAV4RZKEY . You are receiving this because you were mentioned.Message ID: @.>

我删掉了,全新安装的,出现这个问题

boredazfcuk commented 1 year ago

pyicloud_ipd.exceptions.PyiCloudConnectionException: Apple insists on using iCloud.com.cn for your request. Please use --domain parameter

You need to set auth_china=true in your /config/icloudpd.conf configuration file.

jiaoting commented 1 year ago

2023-04-14 10:20:55 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.289 started 2023-04-14 10:20:55 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2023-04-14 10:20:55 INFO Alpine Linux 3.17.3 2023-04-14 10:20:55 INFO Python version: 3.10.11 2023-04-14 10:21:14 INFO Apple ID: jiaoting@126.com 2023-04-14 10:21:14 INFO Authentication Type: 2FA 2023-04-14 10:21:14 INFO Cookie path: /config/jiaoting126com 2023-04-14 10:21:14 INFO Cookie expiry notification period: 7 2023-04-14 10:21:14 INFO Download destination directory: /home/user/iCloud 2023-04-14 10:21:14 INFO Folder structure: {:%Y/%m/%d} 2023-04-14 10:21:14 INFO Synchronisation interval: 86400 2023-04-14 10:21:14 INFO Synchronisation delay (minutes): 0 2023-04-14 10:21:14 INFO Set EXIF date/time: false 2023-04-14 10:21:14 INFO Auto delete: true 2023-04-14 10:21:14 INFO Photo size: original 2023-04-14 10:21:14 INFO Single pass mode: false 2023-04-14 10:21:14 INFO Skip download check: false 2023-04-14 10:21:14 INFO Skip live photos: false 2023-04-14 10:21:14 INFO Number of most recently added photos to download: Download All Photos 2023-04-14 10:21:14 INFO Downloading photos from album: Download All Photos 2023-04-14 10:21:14 INFO Stop downloading when prexisiting files count is: Download All Photos 2023-04-14 10:21:14 INFO Live photo size: original 2023-04-14 10:21:14 INFO Skip videos: false 2023-04-14 10:21:14 INFO Convert HEIC to JPEG: false 2023-04-14 10:21:14 INFO Downloading from: icloud.com.cn 2023-04-14 10:21:14 WARNING Downloading from icloud.com.cn is untested. Please report issues at https://github.com/boredazfcuk/docker-icloudpd/issues 2023-04-14 10:21:14 INFO Check download directory mounted correctly... 2023-04-14 10:21:14 INFO Failsafe file /home/user/iCloud/.mounted exists, continuing 2023-04-14 10:21:14 INFO Sync user: user 2023-04-14 10:21:14 INFO Synchronisation starting at 10:21:14 2023-04-14 10:21:14 INFO Check download directory mounted correctly... 2023-04-14 10:21:14 INFO Failsafe file /home/user/iCloud/.mounted exists, continuing 2023-04-14 10:21:14 INFO Check for new files using password stored in keyring file 2023-04-14 10:21:14 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 2023-04-14 10:21:18 ERROR Failed check for new files files 2023-04-14 10:21:18 ERROR - Can you log into iCloud.com without receiving pop-up notifications? 2023-04-14 10:21:18 ERROR Error debugging info: 2023-04-14 10:21:18 ERROR Traceback (most recent call last): File "/opt/icloudpd_v1.12.0/bin/icloudpd", line 8, in sys.exit(main()) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(args, kwargs) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/icloudpd/base.py", line 288, in main core( File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/icloudpd/base.py", line 571, in core icloud = authenticator(domain)( File "/opt/icloudpdv1.12.0/lib/python3.10/site-packages/icloudpd/authentication.py", line 48, in authenticate request_2sa(icloud, logger) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/icloudpd/authentication.py", line 55, in request_2sa devices = icloud.trusted_devices File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 266, in trusted_devices request = self.session.get( File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/requests/sessions.py", line 600, in get return self.request("GET", url, kwargs) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 105, in request self._raise_error(code, reason) File "/opt/icloudpd_v1.12.0/lib/python3.10/site-packages/pyicloud_ipd/base.py", line 127, in _raise_error raise api_error pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com 2023-04-14 10:21:18 ERROR Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2023-04-14 10:21:18 INFO Web cookie expires: 2023-06-13 @ 02:19:37 2023-04-14 10:21:18 INFO Two factor authentication cookie expires: 2023-07-13 @ 02:19:46 2023-04-14 10:21:18 INFO Days remaining until expiration: 89 2023-04-14 10:21:18 INFO Synchronisation ended at 10:21:18 2023-04-14 10:21:18 INFO Total time taken: 00:00:04 2023-04-14 10:21:18 INFO Next synchronisation at 10:21:14

jiaoting commented 1 year ago

auth_china=true authentication_type=2FA auto_delete=true bark_device_key= bark_server= convert_heic_to_jpeg=false debug_logging=false delete_accompanying=false delete_notifications=true dingtalk_token= directory_permissions=777 discord_id= discord_token= download_notifications=true download_path= file_permissions=666 folder_structure={:%Y/%m/%d} gotify_app_token= group=group group_id=1000 icloud_china=true

GOUKI9999 commented 1 year ago

pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com

same issue ,latest version from dockerhub yesterday

jinnxu75 commented 1 year ago

same problem

me too

jinnxu75 commented 1 year ago

Hi guys, good news, I just found a viable solution for .cn users! Just use this image: pjoc/docker-icloudpd:master, all the configs are the same with icloudpd. For more details, please refer to this post on bilibili: https://www.bilibili.com/read/cv21731964 The whole point is using old build of icloudpd, when .cn is working fine. While boredazfcuk do not keep outdated version, someone kept a copy in another image. from the log inside I guess it might be the 2022.12 version. Not sure what has changed during the last three months, as long as it's working, I'm OK with it. Hope boredazfcuk will get this fixed someday. It's a great tool! Thanks!

I installed and started this image to go through the --initilize process and restart the origional image, it works.

好思路,用老镜像认证账号,然后用原版镜像正常操作

@jiaoting 请问你搞定了吗?我在群晖上加了auth_china,问题依旧。可以请教下你吗。

dajokeer commented 1 year ago

2023-09-25 05:33:43 DEBUG Downloading new files using password stored in keyring file... 2023-09-25 05:33:44 DEBUG Switched to icloudpd: 1.15.1 2023-09-25 05:33:44 DEBUG iCloudPD launch command: icloudpd --directory /iCloud --cookie-directory /config --domain cn --username 271481351@qq.com --folder-structure {:%Y/%m/%d} 2>/tmp/icloudpd/icloudpd_download_error 2023-09-25 05:33:49 ERROR Failed to download new files 2023-09-25 05:33:49 ERROR - Can you log into icloud.com.cn without receiving pop-up notifications? 2023-09-25 05:33:49 ERROR Error debugging info: 2023-09-25 05:33:49 ERROR 2023-09-25 05:33:45 DEBUG Authenticating... 2023-09-25 05:33:48 INFO Two-step/two-factor authentication is required 2023-09-25 05:33:48 ERROR statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com. Traceback (most recent call last): File "/opt/icloudpd_latest/bin/icloudpd", line 8, in sys.exit(main()) ^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/icloudpd/base.py", line 299, in main core( File "/opt/icloudpd_latest/lib/python3.11/site-packages/icloudpd/base.py", line 721, in core icloud = authenticator(logger, domain)( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/icloudpdlatest/lib/python3.11/site-packages/icloudpd/authentication.py", line 47, in authenticate request_2sa(icloud, logger) File "/opt/icloudpd_latest/lib/python3.11/site-packages/icloudpd/authentication.py", line 54, in request_2sa devices = icloud.trusted_devices ^^^^^^^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 266, in trusted_devices request = self.session.get( ^^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/requests/sessions.py", line 602, in get return self.request("GET", url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 105, in request self._raise_error(code, reason) File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 127, in _raise_error raise api_error pyicloud_ipd.exceptions.PyiCloudAPIResponseError: statusCode = UnknownServerError, IOException sending request https://accountservice.p00.prod.me.com:443/api/get_challenge_devices, accountservice.p00.prod.me.com. 2023-09-25 05:33:49 ERROR Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues 2023-09-25 05:33:49 DEBUG Web cookie exists. 2023-09-25 05:33:49 INFO Web cookie expires: 2023-11-23 @ 19:53:22 2023-09-25 05:33:49 INFO Two factor authentication cookie expires: 2023-12-23 @ 19:53:37 2023-09-25 05:33:49 INFO Days remaining until expiration: 89 2023-09-25 05:33:49 DEBUG iCloud login counter = 1 2023-09-25 05:33:49 INFO Synchronisation ended at 05:33:49 2023-09-25 05:33:49 INFO Total time taken: 00:00:06 2023-09-25 05:33:49 INFO Next synchronisation at 05:33:43

DanielDeng3 commented 7 months ago

修改icloudpd.conf,里面有auth_china的选项,改为true即可。 容器启动的时候指定变量不行,因为后面会读取到这个配置文体。 更改前, 2024-03-12 14:51:28 INFO Downloading from: icloud.com.cn 2024-03-12 14:51:28 WARNING You have the icloud_china variable set, but auth_china is false. Are you sure this is correct? 2024-03-12 14:51:28 INFO Authentication domain: com 更改后, 2024-03-12 15:01:03 INFO Downloading from: icloud.com.cn 2024-03-12 15:01:03 INFO Authentication domain: cn

simer11-jing commented 7 months ago

群辉使用pjoc/docker-icloudpd,我的变量是这样的,成功了

apple_id="@qq.com" authentication_type=2FA folder_structure={:%Y/%m} auto_delete=True synchronisation_interval=43200 icloud_china=True TZ=UTC download_path=/iCloud auth_china=true

simer11-jing commented 7 months ago

修改icloudpd.conf,里面有auth_china的选项,改为true即可。 容器启动的时候指定变量不行,因为后面会读取到这个配置文体。 更改前, 2024-03-12 14:51:28 INFO Downloading from: icloud.com.cn 2024-03-12 14:51:28 WARNING You have the icloud_china variable set, but auth_china is false. Are you sure this is correct? 2024-03-12 14:51:28 INFO Authentication domain: com 更改后, 2024-03-12 15:01:03 INFO Downloading from: icloud.com.cn 2024-03-12 15:01:03 INFO Authentication domain: cn

是的,openwrt是这样的