Bamboo reports HTTP 400 Bad Request with "mirrors.not.supported", "repository.stash.error.mirror.versionNotSupported" responses when interacting with Bitbucket Server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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:

1 2 3 4 { "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

You can ignore the message. To enable the mirrors feature, you can also upgrade your Bitbucket to a Data Center license.

Updated on March 19, 2025

Still need help?

The Atlassian Community is here for you.