Bamboo reports HTTP 400 Bad Request with "mirrors.not.supported", "repository.stash.error.mirror.versionNotSupported" responses when interacting with Bitbucket Server
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Bamboo reports the following HTTP 400 Bad Request errors when communicating with Bitbucket during certain operations.
- mirrors.not.supported
- repository.stash.error.mirror.versionNotSupported
Environment
- Bamboo 6.2 or later
- Bitbucket Server
Diagnosis
When checking the HTTP response received by Bamboo after communicating with Bitbucket, users can see the following:
{
"errorCode": "mirrors.not.supported",
"message": "repository.stash.error.mirror.versionNotSupported"
}
Cause
Mirrors are only supported on Bitbucket Data Center versions. Running a Server licence will generate those messages.
Solution
The message can be ignored. You can also upgrade your Bitbucket to a Data Center licence to enable the mirrors feature.