Skip to main content

BITBUCKET_5

Issue​

Glean is unable to fetch permissions for any repository.

Resolution​

For Bitbucket Cloud:​

This error occurs when the API token was created by a non-admin user or is missing one of the required scopes.

Please ensure that:

  1. The API token was created by a user with admin privileges.
  2. The API token has all of the required scopes that were requested during setup.

Allow Glean access to Bitbucket​

Glean cannot connect to Bitbucket when your workspace restricts access by IP address. When IP allowlisting is enabled, tokens may work inside your local network while Glean receives access errors for the same repository.

To resolve this, a Bitbucket workspace administrator must allowlist your Glean project's IP addresses:

  1. Obtain the IP addresses assigned to your Glean tenant. If you need assistance finding your assigned IPs, contact Glean Support.
  2. Add the IP addresses to your Bitbucket workspace allowlist.
  3. For step-by-step instructions in Bitbucket, see Control access to private content in a workspace.

For Bitbucket Server:​

This error occurs when the HTTP access token does not have sufficient permissions.

Please ensure that the HTTP access token has REPO_ADMIN access.

If the problem persists, contact Glean Support.