boredazfcuk / docker-icloudpd

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

Unable to re-auth. service not available #670

Open moseslsy opened 1 day ago

moseslsy commented 1 day ago

Describe the bug My iCloudpd container suddenly stopped being able to connect to iCloud. Log says no MFA cookie and when I try to re-authenticate, it shows a service temporary unavailable.

I tried deleting the keyring_pass.cfg and running the initialization script but iCloud did not accept my password even though I can use the same password to log into iCloud web. Advanced Data Protection is not turned on.

System (The following information must be entered or the issue will be closed):

Debug log file

2024-10-19 17:34:43 INFO Container initialisation complete 2024-10-19 17:34:43 INFO Script launch parameters: --Initialise 2024-10-19 17:34:43 DEBUG Group, users:100, already created 2024-10-19 17:34:43 DEBUG User, Moses:1026, already created 2024-10-19 17:34:43 DEBUG Set owner and group on icloudpd temp directory 2024-10-19 17:34:43 DEBUG Set owner and group on config directory 2024-10-19 17:34:43 INFO Directory is writable: /config/python_keyring/ 2024-10-19 17:34:43 DEBUG Configure password 2024-10-19 17:34:43 DEBUG Using password stored in keyring file: /config/python_keyring/keyring_pass.cfg 2024-10-19 17:34:43 INFO Starting container initialisation 2024-10-19 17:34:43 DEBUG 2024-10-19 17:34:43 INFO Correct owner on config directory, if required 2024-10-19 17:34:43 DEBUG 2024-10-19 17:34:43 INFO Correct group on config directory, if required 2024-10-19 17:34:43 DEBUG Generate MFA cookie using password stored in keyring file 2024-10-19 17:34:43 DEBUG Authenticating... 2024-10-19 17:34:44 ERROR Service Temporarily Unavailable (503) Traceback (most recent call last): File "pyicloud_ipd/base.py", line 211, in authenticate File "requests/sessions.py", line 637, in post File "pyicloud_ipd/session.py", line 122, in request File "pyicloud_ipd/session.py", line 196, in _raise_error pyicloud_ipd.exceptions.PyiCloudAPIResponseException: Service Temporarily Unavailable (503)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "starters/icloudpd.py", line 6, in File "click/core.py", line 1157, in call File "click/core.py", line 1078, in main File "click/core.py", line 1434, in invoke File "click/core.py", line 783, in invoke File "icloudpd/base.py", line 745, in main File "icloudpd/base.py", line 1179, in core File "icloudpd/authentication.py", line 53, in authenticate_ File "pyicloud_ipd/base.py", line 157, in init File "pyicloud_ipd/base.py", line 219, in authenticate pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseException('Service Temporarily Unavailable (503)')) [783] Failed to execute script 'icloudpd' due to unhandled exception! 2024-10-19 17:34:45 ERROR Multifactor authentication information missing from cookie. Authentication has failed 2024-10-19 17:34:45 ERROR - Was the correct password entered? 2024-10-19 17:34:45 ERROR - Was the multifactor authentication code mistyped? 2024-10-19 17:34:45 ERROR - Can you log into icloud.com without receiving pop-up notifications? 2024-10-19 17:34:45 INFO Container initialisation complete Moses@DS923plus:~$ sudo docker exec -it icloudpd re-auth.sh OCI runtime exec failed: exec failed: unable to start container process: exec: "re-auth.sh": executable file not found in $PATH: unknown Moses@DS923plus:~$ sudo docker exec -it icloudpd reauth.sh 2024-10-19 17:36:50 DEBUG Authenticating... 2024-10-19 17:36:51 ERROR Service Temporarily Unavailable (503) Traceback (most recent call last): File "pyicloud_ipd/base.py", line 211, in authenticate File "requests/sessions.py", line 637, in post File "pyicloud_ipd/session.py", line 122, in request File "pyicloud_ipd/session.py", line 196, in _raise_error pyicloud_ipd.exceptions.PyiCloudAPIResponseException: Service Temporarily Unavailable (503)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "starters/icloudpd.py", line 6, in File "click/core.py", line 1157, in call File "click/core.py", line 1078, in main File "click/core.py", line 1434, in invoke File "click/core.py", line 783, in invoke File "icloudpd/base.py", line 745, in main File "icloudpd/base.py", line 1179, in core File "icloudpd/authentication.py", line 53, in authenticate_ File "pyicloud_ipd/base.py", line 157, in init File "pyicloud_ipd/base.py", line 219, in authenticate pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseException('Service Temporarily Unavailable (503)')) [854] Failed to execute script 'icloudpd' due to unhandled exception!

enstit commented 1 day ago

Same problem here!

2024-10-19 12:18:41 INFO     ***** boredazfcuk/icloudpd container v1.0.985_16-10-2024 started *****
2024-10-19 12:18:41 INFO     ***** For support, please go here: https://github.com/boredazfcuk/docker-icloudpd *****
2024-10-19 12:18:41 INFO     Alpine Linux 3.20.3
2024-10-19 12:18:41 INFO     Python version: 3.12.6
2024-10-19 12:18:42 INFO     icloud-photos-downloader version: 1.23.4
2024-10-19 12:18:42 INFO     Checking for updates...
2024-10-19 12:18:42 INFO      - Current version is up to date
2024-10-19 12:18:42 INFO     Loading configuration from: /config/icloudpd.conf
2024-10-19 12:18:59 INFO     Debug logging: Disabled
2024-10-19 12:18:59 INFO     Apple ID: <***-HIDDEN-***>
2024-10-19 12:18:59 INFO     Cookie path: /config/<***-HIDDEN-***>
2024-10-19 12:18:59 INFO     Cookie expiry notification period: 7
2024-10-19 12:18:59 INFO     Download destination directory: /home/user/iCloud
2024-10-19 12:18:59 INFO     Folder structure: {:%Y/%m/%d}
2024-10-19 12:18:59 INFO     Keep Unicode: false
2024-10-19 12:18:59 INFO     Live Photo MOV Filename Policy: suffix
2024-10-19 12:18:59 INFO     File Match Policy: name-size-dedup-with-suffix
2024-10-19 12:18:59 INFO     Synchronisation interval: 86400
2024-10-19 12:18:59 INFO     Synchronisation delay (minutes): 0
2024-10-19 12:18:59 INFO     Set EXIF date/time: false
2024-10-19 12:18:59 INFO     Auto delete: false
2024-10-19 12:18:59 INFO     Delete after download: false
2024-10-19 12:18:59 INFO     Delete empty directories: false
2024-10-19 12:18:59 INFO     Photo size: original
2024-10-19 12:18:59 INFO     Align RAW: as-is
2024-10-19 12:18:59 INFO     Single pass mode: false
2024-10-19 12:18:59 INFO     Skip download check: false
2024-10-19 12:18:59 INFO     Skip live photos: false
2024-10-19 12:18:59 INFO     Number of most recently added photos to download: Download All Photos
2024-10-19 12:18:59 INFO     Downloading photos from: Download All Photos
2024-10-19 12:18:59 INFO     Stop downloading when prexisiting files count is: Download All Photos
2024-10-19 12:18:59 INFO     Live photo size: original
2024-10-19 12:18:59 INFO     Skip videos: false
2024-10-19 12:18:59 INFO     Convert HEIC to JPEG: true
2024-10-19 12:18:59 INFO     Downloading from: icloud.com
2024-10-19 12:18:59 INFO     Fake user agent for curl: Disabled
2024-10-19 12:18:59 INFO     Authentication domain: com
2024-10-19 12:18:59 INFO     Ignore Synology extended attribute directories: Disabled
2024-10-19 12:18:59 INFO     Container initialisation complete
2024-10-19 12:18:59 INFO     Script launch parameters: --Initialize
2024-10-19 12:18:59 INFO     Directory is writable: /config/python_keyring/
2024-10-19 12:18:59 INFO     Starting container initialisation
2024-10-19 12:18:59 DEBUG    Authenticating...
2024-10-19 12:19:00 ERROR    Service Temporarily Unavailable (503)
Traceback (most recent call last):
  File "pyicloud_ipd/base.py", line 211, in authenticate
  File "requests/sessions.py", line 637, in post
  File "pyicloud_ipd/session.py", line 122, in request
  File "pyicloud_ipd/session.py", line 196, in _raise_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseException: Service Temporarily Unavailable (503)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "starters/icloudpd.py", line 6, in <module>
  File "click/core.py", line 1157, in __call__
  File "click/core.py", line 1078, in main
  File "click/core.py", line 1434, in invoke
  File "click/core.py", line 783, in invoke
  File "icloudpd/base.py", line 745, in main
  File "icloudpd/base.py", line 1179, in core
  File "icloudpd/authentication.py", line 53, in authenticate_
  File "pyicloud_ipd/base.py", line 157, in __init__
  File "pyicloud_ipd/base.py", line 219, in authenticate
pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseException('Service Temporarily Unavailable (503)'))
[762] Failed to execute script 'icloudpd' due to unhandled exception!
2024-10-19 12:19:01 ERROR    Multifactor authentication information missing from cookie. Authentication has failed
2024-10-19 12:19:01 ERROR     - Was the correct password entered?
2024-10-19 12:19:01 ERROR     - Was the multifactor authentication code mistyped?
2024-10-19 12:19:01 ERROR     - Can you log into icloud.com without receiving pop-up notifications?
2024-10-19 12:19:01 INFO     Container initialisation complete
salvatooo commented 1 day ago

same here too!

breitero commented 1 day ago

I confirm this! I‘ve reauthed the other 3 containers of my family yesterday where everything still was working…

jlengrand commented 1 day ago

Just to mention I'm also impacted. Tried to reauth to no avail

Eagle248 commented 1 day ago

I think issue is happening for everyone. My containers stopped working from yesterday.

baschte commented 1 day ago

Had the same problems. Think Apple has changed something here

boredazfcuk commented 1 day ago

No issue authenticating/downloading here.

Maybe it's temporary error, as suggested by the error, and will resolve itself soon... Or maybe it's a phased rollout of breaking changes that will hit other areas soon. I'm guessing it's region based as my containers are all fine.

Prophet-Phoenix commented 1 day ago

Can confirm too, also confirm, that i can login to icloud.com normally

2024-10-19 20:51:04 DEBUG    Authenticating...
2024-10-19 20:51:04 ERROR    Service Temporarily Unavailable (503)
Traceback (most recent call last):
  File "pyicloud_ipd/base.py", line 211, in authenticate
  File "requests/sessions.py", line 637, in post
  File "pyicloud_ipd/session.py", line 122, in request
  File "pyicloud_ipd/session.py", line 196, in _raise_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseException: Service Temporarily Unavailable (503)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "starters/icloudpd.py", line 6, in <module>
  File "click/core.py", line 1157, in __call__
  File "click/core.py", line 1078, in main
  File "click/core.py", line 1434, in invoke
  File "click/core.py", line 783, in invoke
  File "icloudpd/base.py", line 745, in main
  File "icloudpd/base.py", line 1179, in core
  File "icloudpd/authentication.py", line 53, in authenticate_
  File "pyicloud_ipd/base.py", line 157, in __init__
  File "pyicloud_ipd/base.py", line 219, in authenticate
pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password combination.', PyiCloudAPIResponseException('Service Temporarily Unavailable (503)'))
[562] Failed to execute script 'icloudpd' due to unhandled exception!
dotnjet commented 12 hours ago

same issue still on, also here.

Traceback (most recent call last):
2024-10-20 10:56:14 ERROR Service Temporarily Unavailable (503)
File "pyicloud_ipd/base.py", line 211, in authenticate
File "requests/sessions.py", line 637, in post
File "pyicloud_ipd/session.py", line 122, in request
File "pyicloud_ipd/session.py", line 196, in _raise_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseException: Service Temporarily Unavail able (503)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "starters/icloudpd.py", line 6, in
File "click/core.py", line 1157, in call
File "click/core.py", line 1078, in main
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "icloudpd/base.py", line 745, in main
File "icloudpd/base.py", line 1179, in core
File "icloudpd/authentication.py", line 53, in authenticate_
File "pyicloud_ipd/base.py", line 157, in init
File "pyicloud_ipd/base.py", line 219, in authenticate
pyicloud_ipd.exceptions.PyiCloudFailedLoginException: ('Invalid email/password co mbination.', PyiCloudAPIResponseException('Service Temporarily Unavailable (503)' ))
[15593] Failed to execute script 'icloudpd' due to unhandled exception!

dotnjet commented 12 hours ago

update: One container works fine the other one above has the problem.

breitero commented 8 hours ago

Yes, the containers where the reauth process is more than 2 days ago are working correctly. Only these ones which need to be reauthed don‘t start…

dotnjet commented 6 hours ago

when you login to icloud.com you get a message with the info, that the cloud experience should be better with the new version. I guess Apple made some changes.

biubiubiutiktok commented 6 hours ago

Is there a solution available?

AndreyNikiforov commented 5 hours ago

solution available?

No. Apple seems to be disabling/limiting auth API used by icloudpd (and many other open source tools). The solution is to support new auth protocol. There are report that some tools might have done that already and icloudpd needs to get the same support. Timeline is unclear at the moment.

jasjeetsuri commented 4 hours ago

Same issue here.