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

Error that I don't understand. "private db access disabled for this account" #796

Closed
Potter3117 opened this issue Feb 28, 2024 · 3 comments
Labels

Comments

@Potter3117
Copy link

Overview

Installed from unraid community library. when running the command to start a sync it asked for and accepted my 2fa codes but gives me the following error.

pyicloud_ipd.exceptions.PyiCloudAPIResponseException: 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)

Steps to Reproduce

  1. Start container
  2. run sync-icloud.sh --Initialise (it confirms my login is accepted when running this or the sync-icloud.sh command)
  3. get error

Expected Behavior

I expected my icloud photos to start synchronizing

Actual Behavior

I get the error pasted above and nothing happens.

Context

This is run through the the UnRaid community docker container. I have manually created a .mounted file per the instructions in the library location and then followed all instructions to the letter after cross referencing this project in github and the details in the unraid community area for the docker container. I have set it to try again every 24 hours so maybe it will clear on it's own if I ignore it. I have a photo library of just over 40k items.

@Potter3117 Potter3117 added the bug label Feb 28, 2024
@Potter3117 Potter3117 changed the title Error that I don't understand. Error that I don't understand. "private db access disabled for this account" Feb 28, 2024
@aaron-trout
Copy link

I am getting the same thing on MacOS, installed from HomeBrew.

$ icloudpd --directory=/Volumes/home/Photos/iCloud --username="<REDACTED>" --set-exif-datetime
2024-03-01 21:31:13 DEBUG    Authenticating...
iCloud Password:
2024-03-01 21:31:21 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)
Traceback (most recent call last):
  File "/opt/homebrew/bin/icloudpd", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/icloudpd/base.py", line 328, in main
    core(
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/icloudpd/base.py", line 790, in core
    library_object = icloud.photos
                     ^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/pyicloud_ipd/base.py", line 624, in photos
    self._photos = PhotosService(service_root, self.session, self.params)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/pyicloud_ipd/services/photos.py", line 254, in __init__
    super(PhotosService, self).__init__(
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/pyicloud_ipd/services/photos.py", line 154, in __init__
    request = self.service.session.post(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/pyicloud_ipd/base.py", line 178, in request
    self._raise_error(code, reason)
  File "/opt/homebrew/Cellar/icloudpd/1.17.3/libexec/lib/python3.12/site-packages/pyicloud_ipd/base.py", line 207, in _raise_error
    raise api_error
pyicloud_ipd.exceptions.PyiCloudAPIResponseException: 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)

@aaron-trout
Copy link

@Potter3117 I think this is because of the "advanced data protection" option in iCloud. This issue looks like a duplicate of #687 essentially

@AndreyNikiforov
Copy link
Collaborator

sync-icloud.sh is not part of this repo. pls use another repo to file issues.

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

No branches or pull requests

3 participants