Bitbucket does not support Git's legacy HTTP transport protocol when using Git LFS

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

Problem

When pushing to Bitbucket Server and using Git LFS, the following error is returned from the Git client:

1 2 3 $ git lfs push origin master --all   Invalid request from host 192.168.1.10: Note that Bitbucket does not support Git's legacy HTTP transport protocol.

Solution

Cause #1

The Git client has been configured to use the legacy "Original v1 API", which can be caused by a bug in the LFS client (see Fix fallthrough when git-lfs-authenticate returns an error #909). This will set the following in .git/config:

1 2 [lfs]   batch = false

This tells Git LFS to not use the Batch API and just use the Legacy API. Since the Legacy API is due for removal and inefficient, it's not implemented in Bitbucket Server.

Cause #2

The Base URL for Bitbucket Server is set incorrectly.

Resolution

Cause #1

Remove the batch = false configuration from the Git config.

Cause #2

Under Administration >> Server Settings set the Base URL to the correct value.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.