boredazfcuk / docker-icloudpd

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

Authentication required for Account. (421) ? #468

Closed jaronsoft closed 5 months ago

jaronsoft commented 6 months ago

2024-01-01 01:46:55 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.700 started

2024-01-01 01:46:55 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd

2024-01-01 01:46:55 INFO Alpine Linux 3.19.0

2024-01-01 01:46:55 INFO Python version: 3.11.6

2024-01-01 01:46:55 INFO Loading configuration from: /config/icloudpd.conf

2024-01-01 01:47:25 INFO Apple ID: xxxxxx@qq.com

2024-01-01 01:47:25 INFO Authentication Type: MFA

2024-01-01 01:47:25 INFO Cookie path: /config/xxxxx

2024-01-01 01:47:25 INFO Cookie expiry notification period: 7

2024-01-01 01:47:25 INFO Download destination directory: /iCloud

2024-01-01 01:47:25 INFO Folder structure: {:%Y/%m}

2024-01-01 01:47:25 INFO Synchronisation interval: 86400

2024-01-01 01:47:25 INFO Synchronisation delay (minutes): 0

2024-01-01 01:47:25 INFO Set EXIF date/time: false

2024-01-01 01:47:25 INFO Auto delete: false

2024-01-01 01:47:25 INFO Delete after download: false

2024-01-01 01:47:25 INFO Photo size: original

2024-01-01 01:47:25 INFO Single pass mode: false

2024-01-01 01:47:25 INFO Skip download check: false

2024-01-01 01:47:25 INFO Skip live photos: false

2024-01-01 01:47:25 INFO Number of most recently added photos to download: 200

2024-01-01 01:47:25 INFO Downloading photos from: Download All Photos

2024-01-01 01:47:25 INFO Stop downloading when prexisiting files count is: 200

2024-01-01 01:47:25 INFO Live photo size: original

2024-01-01 01:47:25 INFO Skip videos: false

2024-01-01 01:47:25 INFO Convert HEIC to JPEG: false

2024-01-01 01:47:25 INFO Downloading from: icloud.com.cn

2024-01-01 01:47:25 WARNING You have the icloud_china variable set, but auth_china is false. Are you sure this is correct?

2024-01-01 01:47:25 INFO Authentication domain: com

2024-01-01 01:47:25 INFO Ignore Synology extended attribute directories: Disabled

2024-01-01 01:47:25 INFO Directory is writable: /config/python_keyring/

2024-01-01 01:47:25 INFO Check download directory mounted correctly...

2024-01-01 01:47:25 INFO Failsafe file /iCloud/.mounted exists, continuing

2024-01-01 01:47:25 INFO Directory is writable: /config/python_keyring/

2024-01-01 01:47:25 INFO Keyring file exists, continuing

2024-01-01 01:47:25 INFO Sync user: user

2024-01-01 01:47:25 INFO Synchronisation starting at 01:47:25

2024-01-01 01:47:25 INFO Keyring file exists, continuing

2024-01-01 01:47:25 INFO Check download directory mounted correctly...

2024-01-01 01:47:25 INFO Failsafe file /iCloud/.mounted exists, continuing

2024-01-01 01:47:25 INFO Check for new files using password stored in keyring file

2024-01-01 01:47:25 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-01 01:47:26 ERROR Authentication required for Account. (421)

2024-01-01 01:47:29 ERROR Failed check for new files files

2024-01-01 01:47:29 ERROR - Can you log into icloud.com.cn without receiving pop-up notifications?

2024-01-01 01:47:29 ERROR Error debugging info:

2024-01-01 01:47:29 ERROR 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 328, in main 

(

File "/opt/icloudpd_latest/lib/python3.11/site-packages/icloudpd/base.py", line 760, in core

icloud = authenticator(logger, domain)(

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/icloudpdlatest/lib/python3.11/site-packages/icloudpd/authentication.py", line 31, in authenticate

icloud = pyicloud_ipd.PyiCloudService(

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 305, in init

self.authenticate()

File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 367, in authenticate

self._authenticate_with_token()

File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 399, in _authenticate_with_token

raise PyiCloudConnectionException(msg)

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'?

boredazfcuk commented 6 months ago

Latest version should hopefully now work for icloud.com and icloud.com.cn.

jaronsoft commented 6 months ago

Using version 1.0.705, the problem still persists.

` 2024-01-05 22:30:28 ERROR 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 328, in main 

(

File "/opt/icloudpd_latest/lib/python3.11/site-packages/icloudpd/base.py", line 760, in core

icloud = authenticator(logger, domain)(

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/icloudpdlatest/lib/python3.11/site-packages/icloudpd/authentication.py", line 31, in authenticate

icloud = pyicloud_ipd.PyiCloudService(

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 305, in init

self.authenticate()

File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 367, in authenticate

self._authenticate_with_token()

File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 399, in _authenticate_with_token

raise PyiCloudConnectionException(msg)

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'?

2024-01-05 22:30:28 ERROR Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues `

jaronsoft commented 6 months ago

I have a total of five accounts, all using the same version boredazfcuk/icloudpd:stable. One is in the US region, and four are in the China region, among which three of the China region accounts have issues.

Boerni-tech commented 5 months ago

I'm seeing the same error with one of our accounts. Region is germany in this case.

boredazfcuk commented 5 months ago

Authentication required just means it needs reinitialising, no?

I had this when the fix was first applied. IIRC, I just removed the keying and then reinitialised the container.

I think my other half's container is doing the same. Has been for a few days. I'll check and test when I get home.

Boerni-tech commented 5 months ago

yeah, I thought so, as well, and re-initialized. Unfortunately without any change.

boredazfcuk @.***> schrieb am Fr. 12. Jan. 2024 um 18:47:

Authentication required just means it needs reinitialising, no?

I had this when the fix was first applied. IIRC, I just removed the keying and then reinitialised the container.

I think my other half's container is doing the same. Has been for a few days. I'll check and test when I get home.

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

boredazfcuk commented 5 months ago

Did you remove the keying first?

boredazfcuk commented 5 months ago

I just ran sync-icloud.sh --init and it was all OK:

2024-01-12 18:50:15 DEBUG    Using password stored in keyring file: /config/python_keyring/keyring_pass.cfg
2024-01-12 18:50:15 INFO     Starting container initialisation
2024-01-12 18:50:15 DEBUG    2024-01-12 18:50:15 INFO     Correct owner on config directory, if required
2024-01-12 18:50:15 DEBUG    2024-01-12 18:50:15 INFO     Correct group on config directory, if required
2024-01-12 18:50:15 DEBUG    Generate Web cookie using password stored in keyring file
2024-01-12 18:50:16 ERROR    Authentication required for Account. (421)
Please enter two-factor authentication code: 123456
2024-01-12 18:50:45 WARNING  Failed to parse response with JSON mimetype
2024-01-12 18:50:51 DEBUG    Web cookie generated. Sync should now be successful
2024-01-12 18:50:51 INFO     Container initialisation complete

Restarted the container and it downloaded everything fine.

Just checked the logs and my error was just:

2024-01-09 23:16:23 DEBUG    Authenticating...
2024-01-09 23:16:23 INFO     Two-step/two-factor authentication is required (2fa)
Please enter two-factor authentication code: 2024-01-09 23:16:23 ERROR    Failed to download new files
jaronsoft commented 5 months ago

I used the latest version of boredazfcuk/icloudpd:1.0.714, and tried deleting all files under /config, then reinitialized with sync-icloud.sh --init, but the problem persists, IOS 17.3 (21D5044a).

` / # sync-icloud.sh --init

2024-01-13 14:20:09 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.714 started 2024-01-13 14:20:09 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2024-01-13 14:20:09 INFO Alpine Linux 3.19.0 2024-01-13 14:20:09 INFO Python version: 3.11.6 2024-01-13 14:20:09 INFO Loading configuration from: /config/icloudpd.conf 2024-01-13 14:20:53 INFO Apple ID: xxx@qq.com 2024-01-13 14:20:53 INFO Authentication Type: MFA 2024-01-13 14:20:53 INFO Cookie path: /config/xxxxqqcom 2024-01-13 14:20:53 INFO Cookie expiry notification period: 7 2024-01-13 14:20:53 INFO Download destination directory: /iCloud 2024-01-13 14:20:53 INFO Folder structure: {:%Y/%m} 2024-01-13 14:20:53 INFO Synchronisation interval: 86400 2024-01-13 14:20:53 INFO Synchronisation delay (minutes): 0 2024-01-13 14:20:53 INFO Set EXIF date/time: false 2024-01-13 14:20:53 INFO Auto delete: false 2024-01-13 14:20:53 INFO Delete after download: false 2024-01-13 14:20:53 INFO Photo size: original 2024-01-13 14:20:53 INFO Single pass mode: false 2024-01-13 14:20:53 INFO Skip download check: false 2024-01-13 14:20:53 INFO Skip live photos: false 2024-01-13 14:20:53 INFO Number of most recently added photos to download: 200 2024-01-13 14:20:53 INFO Downloading photos from: Download All Photos 2024-01-13 14:20:53 INFO Stop downloading when prexisiting files count is: 200 2024-01-13 14:20:53 INFO Live photo size: original 2024-01-13 14:20:53 INFO Skip videos: false 2024-01-13 14:20:53 INFO Convert HEIC to JPEG: false 2024-01-13 14:20:53 INFO Downloading from: icloud.com.cn 2024-01-13 14:20:53 WARNING You have the icloud_china variable set, but auth_china is false. Are you sure this is correct? 2024-01-13 14:20:53 INFO Authentication domain: com 2024-01-13 14:20:53 INFO Ignore Synology extended attribute directories: Disabled 2024-01-13 14:20:56 INFO Script launch parameters: --init Enter iCloud password for xxxx@qq.com: Traceback (most recent call last): File "starters/icloud.py", line 5, in File "pyicloud_ipd/cmdline.py", line 200, in main File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 367, in authenticate File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'? [18138] Failed to execute script 'icloud' due to unhandled exception! 2024-01-13 14:21:13 ERROR Keyring file does not exist. Please try again. `

rambolee commented 5 months ago

I used the latest version of boredazfcuk/icloudpd:1.0.714, and tried deleting all files under /config, then reinitialized with sync-icloud.sh --init, but the problem persists, IOS 17.3 (21D5044a).

` / # sync-icloud.sh --init

2024-01-13 14:20:09 INFO boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.714 started 2024-01-13 14:20:09 INFO For support, please go here: https://github.com/boredazfcuk/docker-icloudpd 2024-01-13 14:20:09 INFO Alpine Linux 3.19.0 2024-01-13 14:20:09 INFO Python version: 3.11.6 2024-01-13 14:20:09 INFO Loading configuration from: /config/icloudpd.conf 2024-01-13 14:20:53 INFO Apple ID: xxx@qq.com 2024-01-13 14:20:53 INFO Authentication Type: MFA 2024-01-13 14:20:53 INFO Cookie path: /config/xxxxqqcom 2024-01-13 14:20:53 INFO Cookie expiry notification period: 7 2024-01-13 14:20:53 INFO Download destination directory: /iCloud 2024-01-13 14:20:53 INFO Folder structure: {:%Y/%m} 2024-01-13 14:20:53 INFO Synchronisation interval: 86400 2024-01-13 14:20:53 INFO Synchronisation delay (minutes): 0 2024-01-13 14:20:53 INFO Set EXIF date/time: false 2024-01-13 14:20:53 INFO Auto delete: false 2024-01-13 14:20:53 INFO Delete after download: false 2024-01-13 14:20:53 INFO Photo size: original 2024-01-13 14:20:53 INFO Single pass mode: false 2024-01-13 14:20:53 INFO Skip download check: false 2024-01-13 14:20:53 INFO Skip live photos: false 2024-01-13 14:20:53 INFO Number of most recently added photos to download: 200 2024-01-13 14:20:53 INFO Downloading photos from: Download All Photos 2024-01-13 14:20:53 INFO Stop downloading when prexisiting files count is: 200 2024-01-13 14:20:53 INFO Live photo size: original 2024-01-13 14:20:53 INFO Skip videos: false 2024-01-13 14:20:53 INFO Convert HEIC to JPEG: false 2024-01-13 14:20:53 INFO Downloading from: icloud.com.cn 2024-01-13 14:20:53 WARNING You have the icloud_china variable set, but auth_china is false. Are you sure this is correct? 2024-01-13 14:20:53 INFO Authentication domain: com 2024-01-13 14:20:53 INFO Ignore Synology extended attribute directories: Disabled 2024-01-13 14:20:56 INFO Script launch parameters: --init Enter iCloud password for xxxx@qq.com: Traceback (most recent call last): File "starters/icloud.py", line 5, in File "pyicloud_ipd/cmdline.py", line 200, in main File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 367, in authenticate File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'? [18138] Failed to execute script 'icloud' due to unhandled exception! 2024-01-13 14:21:13 ERROR Keyring file does not exist. Please try again. `

I have same questions, with latest version of boredazfcuk/icloudpd:1.0.714 And I already try to remove the key files, then it will be output :

2024-01-13 16:57:44 DEBUG Adding password to keyring file: /config/python_keyring/keyring_pass.cfg Enter iCloud password for xxxxx@gmail.com: Traceback (most recent call last): File "starters/icloud.py", line 5, in File "pyicloud_ipd/cmdline.py", line 200, in main File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 367, in authenticate File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'? [740] Failed to execute script 'icloud' due to unhandled exception! 2024-01-13 16:58:19 ERROR Keyring file does not exist. Please try again.

and keyring file cannot be created by script.

boredazfcuk commented 5 months ago

I notice both of you have set the container to download from the Chinese iCloud, but are authenticating against the global servers.

What happens when you authenticate against Chinese iCloud servers?

Boerni-tech commented 5 months ago

Did you remove the keying first?

no, didn't do that. I'm giving it a try, right now.

Boerni-tech commented 5 months ago

Fixed it, is now syncing. But only pulls arround 250 items

jaronsoft commented 5 months ago

After entering the correct password, a verification code pops up on the phone, and before I can fill it in, the following error occurs Traceback (most recent call last): File "starters/icloud.py", line 5, in File "pyicloud_ipd/cmdline.py", line 200, in main File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 367, in authenticate File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'? [18138] Failed to execute script 'icloud' due to unhandled exception! 2024-01-13 14:21:13 ERROR Keyring file does not exist. Please try again. My other account, which is also a China region account, works normally with the boredazfcuk/icloudpd:stable version. The version of my phone is 17.2.1. I tried using the account with the above error message with the boredazfcuk/icloudpd:stable version, and the error occurred just like the first message I described.

thx..

WX20240113-214220

JafeChang commented 5 months ago

I got the same failure.

image
iSwfe commented 5 months ago

After entering the correct password, a verification code pops up on the phone, and before I can fill it in, the following error occurs Traceback (most recent call last): File "starters/icloud.py", line 5, in File "pyicloud_ipd/cmdline.py", line 200, in main File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 367, in authenticate File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'? [18138] Failed to execute script 'icloud' due to unhandled exception! 2024-01-13 14:21:13 ERROR Keyring file does not exist. Please try again. My other account, which is also a China region account, works normally with the boredazfcuk/icloudpd:stable version. The version of my phone is 17.2.1. I tried using the account with the above error message with the boredazfcuk/icloudpd:stable version, and the error occurred just like the first message I described.

thx..

WX20240113-214220

Me too! ! I encountered the same problem. It should be that there are some problems with the python code (the relevant exception module PyiCloudConnectionException cannot be found), resulting in the actual exception information not being printed.

This is the log of my initialization command execution

/ # sync-icloud.sh --init

2024-01-15 11:35:00 INFO     ***** boredazfcuk/icloudpd container for icloud_photo_downloader v1.0.714 started *****
2024-01-15 11:35:00 INFO     ***** For support, please go here: https://github.com/boredazfcuk/docker-icloudpd *****
2024-01-15 11:35:00 INFO     Alpine Linux 3.19.0
2024-01-15 11:35:00 INFO     Python version: 3.11.6
2024-01-15 11:35:00 INFO     Loading configuration from: /config/icloudpd.conf
2024-01-15 11:35:00 DEBUG    Running user id: 0
2024-01-15 11:35:00 DEBUG    Running group id: 0
2024-01-15 11:35:00 DEBUG    Local user: xxxxx:1026
2024-01-15 11:35:00 DEBUG    Local group: users:100
2024-01-15 11:35:00 DEBUG    Force GID: true
2024-01-15 11:35:00 DEBUG    LAN IP Address: 172.18.0.2
2024-01-15 11:35:00 DEBUG    Default gateway: 172.18.0.1
2024-01-15 11:35:00 DEBUG    DNS server: 127.0.0.11
2024-01-15 11:35:00 DEBUG    IP address for icloud.com.cn: 103.115.248.1
2024-01-15 11:35:24 DEBUG    Route check to icloud.com.cn successful
2024-01-15 11:35:24 DEBUG    Apple ID: (hidden)
2024-01-15 11:35:24 INFO     Authentication Type: MFA
2024-01-15 11:35:24 DEBUG    Cookie path: /config/(hidden)
2024-01-15 11:35:24 INFO     Cookie expiry notification period: 7
2024-01-15 11:35:24 INFO     Download destination directory: /iCloud
2024-01-15 11:35:24 INFO     Folder structure: {:%Y/%m/%d}
2024-01-15 11:35:24 DEBUG    Directory permissions: 750
2024-01-15 11:35:24 DEBUG    File permissions: 640
2024-01-15 11:35:24 INFO     Synchronisation interval: 86400
2024-01-15 11:35:24 INFO     Synchronisation delay (minutes): 0
2024-01-15 11:35:24 INFO     Set EXIF date/time: false
2024-01-15 11:35:24 INFO     Auto delete: false
2024-01-15 11:35:24 INFO     Delete after download: false
2024-01-15 11:35:24 INFO     Photo size: original
2024-01-15 11:35:24 INFO     Single pass mode: false
2024-01-15 11:35:24 INFO     Skip download check: true
2024-01-15 11:35:24 INFO     Skip live photos: false
2024-01-15 11:35:24 INFO     Number of most recently added photos to download: Download All Photos
2024-01-15 11:35:24 INFO     Downloading photos from: Download All Photos
2024-01-15 11:35:24 INFO     Stop downloading when prexisiting files count is: Download All Photos
2024-01-15 11:35:24 INFO     Live photo size: original
2024-01-15 11:35:24 INFO     Skip videos: false
2024-01-15 11:35:24 INFO     Convert HEIC to JPEG: false
2024-01-15 11:35:24 INFO     Downloading from: icloud.com.cn
2024-01-15 11:35:24 INFO     Authentication domain: cn
2024-01-15 11:35:24 DEBUG    Nextcloud synchronisation trigger: Disabled
2024-01-15 11:35:24 DEBUG    Nextcloud upload: Disabled
2024-01-15 11:35:24 INFO     Ignore Synology extended attribute directories: Enabled
2024-01-15 11:35:26 DEBUG    Activated Python virtual environment for icloudpd: 1.17.3
2024-01-15 11:35:26 INFO     Script launch parameters: --init
2024-01-15 11:35:26 DEBUG    Group, users:100, already created
2024-01-15 11:35:26 DEBUG    User, xxxxx:1026, already created
2024-01-15 11:35:26 DEBUG    Set owner and group on icloudpd temp directory
2024-01-15 11:35:26 DEBUG    Set owner and group on config directory
2024-01-15 11:35:26 DEBUG    Configure password
2024-01-15 11:35:26 DEBUG    Adding password to keyring file: /config/python_keyring/keyring_pass.cfg
Enter iCloud password for yyyyy: 
Traceback (most recent call last):
  File "starters/icloud.py", line 5, in <module>
  File "pyicloud_ipd/cmdline.py", line 200, in main
  File "pyicloud_ipd/base.py", line 305, in __init__
  File "pyicloud_ipd/base.py", line 367, in authenticate
  File "pyicloud_ipd/base.py", line 399, in _authenticate_with_token
NameError: name 'PyiCloudConnectionException' is not defined. Did you mean: 'PyiCloudFailedLoginException'?
[594] Failed to execute script 'icloud' due to unhandled exception!
2024-01-15 11:37:04 ERROR    Keyring file does not exist. Please try again.

This is my .env environment parameter to run docker-compose

user=xxxxx
group=users
user_id=1026
group_id=100
force_gid=true
icloudpd_config=/volume1/docker/icloudpd
photos_icloud=/volume1/homes/${user}/Photos/iCloud
TZ=Asia/Shanghai
download_path=/iCloud
apple_id=yyyyy
auth_china=true
icloud_china=true
debug_logging=true
skip_check=true
synology_photos_app_fix=true
synology_ignore_path=true
msn1983aa commented 5 months ago

same error info with the latest docker image.

vongoethe commented 5 months ago

Same error in TrueNAS Scale App deployment.