Deployment fails to fetch code from Bitbucket Adobe Commerce Cloud
In Adobe Commerce Cloud, deployment does not start when the platform fails to fetch code from the Bitbucket repository during integration. This issue relates to authentication or access problems between services. To fix this issue, update integration credentials and validate repository access configuration.
Description description
Environment
- Product: Adobe Commerce Cloud
- Version: 2.4.7
- Instance: Bitbucket integration for deployment automation
Issue/Symptoms
- Deployment does not proceed after merging pull requests into monitored branches.
- Integration activity logs show failures at the integration.bitbucket.fetch step.
- Error messages include Error: Internal error and We have trouble accessing the remote repository at Bitbucket: unknown exception.
- Failure occurs before the build or deploy pipeline starts.
Resolution resolution
To fix this issue, follow these steps:
-
Review recent changes to your Bitbucket integration, including:
- Whether OAuth consumer credentials (key and secret) were rotated or revoked.
- Any changes to repository or workspace ownership.
- Permission changes for the Bitbucket account or app used by the integration.
- Implementation of new security policies, IP allowlists, or SSO enforcement on your Bitbucket workspace.
-
If any changes occurred, update your integration configuration in Adobe Commerce Cloud accordingly.
-
If necessary, recreate or rotate your OAuth consumer credentials in both Bitbucket and Adobe Commerce Cloud.
-
After updating credentials and permissions, revalidate the integration using:
magento-cloud integration:validate -
Attempt a new deployment to confirm that the code can be fetched from the repository successfully.
-
Verify that the deployment proceeds past the fetch step without errors.
Note
If there are no recent changes on the Bitbucket side and the issue persists after updating the credentials, Support may require further investigation.