Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to re-auth. service not available #670

Open
moseslsy opened this issue Oct 19, 2024 · 26 comments
Open

Unable to re-auth. service not available #670

moseslsy opened this issue Oct 19, 2024 · 26 comments
Assignees

Comments

@moseslsy
Copy link

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):

  • OS: Docker on Synology DSM

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
Copy link

enstit commented Oct 19, 2024

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
Copy link

same here too!

@breitero
Copy link

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

@jlengrand
Copy link

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

@Eagle248
Copy link

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

@baschte
Copy link

baschte commented Oct 19, 2024

Had the same problems. Think Apple has changed something here

@boredazfcuk
Copy link
Owner

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
Copy link

Prophet-Phoenix commented Oct 19, 2024

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
Copy link

dotnjet commented Oct 20, 2024

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
Copy link

dotnjet commented Oct 20, 2024

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

@breitero
Copy link

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
Copy link

dotnjet commented Oct 20, 2024

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
Copy link

Is there a solution available?

@AndreyNikiforov
Copy link

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
Copy link

Same issue here.

@wanglewis
Copy link

same issue by me

@baschte
Copy link

baschte commented Oct 21, 2024

Deleted everything and tried to configure new Container. Same issue as well

@boredazfcuk
Copy link
Owner

I'm still running OK... Still have 4 days until the cookies expire on my containers though. Assuming everything will die at that point.

@baschte
Copy link

baschte commented Oct 21, 2024

I'm still running OK... Still have 4 days until the cookies expire on my containers though. Assuming everything will die at that point.

Pls try to create a new instance and try to authorize. Think it wont work.

@alxgarci
Copy link

In another repo they are talking about the same, and think they have solved it! fastlane/fastlane#26368

@willis-pinaud
Copy link

Same issue here.

@vamitrou
Copy link

same here

@thedinz
Copy link

thedinz commented Oct 22, 2024

Me too

@radzio
Copy link

radzio commented Oct 22, 2024

It's caused by Apple SRP-6a implementation

home-assistant/core#128830
picklepete/pyicloud#456

@dotnjet
Copy link

dotnjet commented Oct 22, 2024

could this be a part of the solution?
icloud-photos-downloader/icloud_photos_downloader@4bcb2ac

@alpha520098
Copy link

For the sake of clarity, do you think a solution to this issue might be addressed in upcoming Home Assistant updates, or is the integration effectively deprecated? I also want to extend my sincere thanks to everyone actively working on a resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests