Can't Connect to Bitbucket Server
Troubleshoot connection issues to Bitbucket servers while working with Resource Manager.
Can't connect to Bitbucket Server.
This issue can occur in the following situations:
- Creating a Bitbucket Server configuration source provider.
- Creating a stack from a Bitbucket Server configuration source provider.
- Running a job on a stack that uses a Terraform configuration stored in Bitbucket Server.
- Receiving an error message when confirming accessibility to a configuration source provider.
Cause: The access token was revoked
Remedy: Re-create the access token
Re-create the access token, ensuring that the token scope includes required permissions. See the relevant Bitbucket documentation: https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html
Cause: The required permission scopes changed and are insufficient
Remedy: Re-create the access token
Re-create the access token, ensuring that the token scope includes required permissions. See the relevant Bitbucket documentation: https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html
Cause: The Bitbucket Server repository permissions changed or are insufficient
Remedy: Use admin or owner
Cause: The Bitbucket server isn't accessible over the internet
Remedy: Use port 443
Note
By default, Bitbucket Server uses port 7990 for HTTP traffic and port 8443 for HTTPS traffic.
By default, Bitbucket Server uses port 7990 for HTTP traffic and port 8443 for HTTPS traffic.
Remedy: Confirm that you can view the access token
Remedy: For a public server, use a public IP address
Remedy: For a private server, use a certificate and private endpoint
Note
Ensure that the certificate in the Certificates service matches the certificate on the Bitbucket server.
Ensure that the certificate in the Certificates service matches the certificate on the Bitbucket server.
-
For certificate instructions, see Creating a Certificate and Importing an Existing Certificate.
- For private endpoint instructions, see Creating a Private Endpoint.
- For high-level instructions on private servers, see Private Git Server.