boredazfcuk / docker-icloudpd

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

pyicloud_ipd.exceptions.PyiCloudAPIResponseError: private db access disabled for this account #435

Closed imTHAI closed 9 months ago

imTHAI commented 10 months ago

Overview

2023-11-28 13:52:05 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-11-28 13:52:07 ERROR    private db access disabled for this account.  Please wait a few minutes then try again.  The remote servers might be trying to throttle requests. (ACCESS_DENIED)
2023-11-28 13:52:07 ERROR    Failed check for new files files
2023-11-28 13:52:07 ERROR     - Can you log into icloud.com without receiving pop-up notifications?
2023-11-28 13:52:07 ERROR    Error debugging info:
2023-11-28 13:52:07 ERROR    Traceback (most recent call last):
  File "/opt/icloudpd_latest/bin/icloudpd", line 8, in <module>
    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 317, in main
    core(
  File "/opt/icloudpd_latest/lib/python3.11/site-packages/icloudpd/base.py", line 770, in core
    library_object = icloud.photos
                     ^^^^^^^^^^^^^
  File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/base.py", line 346, in photos
    self._photos = PhotosService(
                   ^^^^^^^^^^^^^^
  File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/services/photos.py", line 254, in __init__
    super(PhotosService, self).__init__(
  File "/opt/icloudpd_latest/lib/python3.11/site-packages/pyicloud_ipd/services/photos.py", line 154, in __init__
    request = self.service.session.post(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/icloudpd_latest/lib/python3.11/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **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: private db access disabled for this account.  Please wait a few minutes then try again.  The remote servers might be trying to throttle requests. (ACCESS_DENIED)
ash: out of range
2023-11-28 13:52:07 ERROR    ***** Please report problems here: https://github.com/boredazfcuk/docker-icloudpd/issues *****
2023-11-28 13:52:07 INFO     Web cookie expires: 2024-01-27 @ 12:45:10
2023-11-28 13:52:07 INFO     Multifactor authentication cookie expires: 2024-02-26 @ 12:45:32
2023-11-28 13:52:07 INFO     Days remaining until expiration: 89
2023-11-28 13:52:07 INFO     Synchronisation ended at 13:52:07
2023-11-28 13:52:07 INFO     Total time taken: 00:00:02
2023-11-28 13:52:07 INFO     Next synchronisation at 13:52:05

Hello,

I get this error message as soon as I started the app.

I already tried to stop/start the container but I face the same problem. The second time it didn't ask me to authenticate so the app must be correctly authenticated.

Something strange I noticed the 2 times is that the time for the next synchronisation(13:52:05) is BEFORE the time of the current sync ended (13:52:07). It has no sense or I misunderstood something. Anyway it's not related to the error message I believe.

nate602271 commented 10 months ago

Getting the same error.

boredazfcuk commented 10 months ago

Do you have Advanced Data Protection (ADP) enabled? It must be disabled for this utility to be able to download photos from icloud.com.

Something strange I noticed the 2 times is that the time for the next synchronisation(13:52:05) is BEFORE the time of the current sync ended (13:52:07)

No, it's definitely after, if the time is 13:52:07 and the next sync is at 13:52:05, then you've got to wait around 24hours for the next sync to take place.