Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitlfs batch response: Post https://../info/lfs/objects/batch: ..proxyconnect tcp: tls: first record does not look like a TLS handshake

I have a bitbucket server git repo with LFS turned on. Yesterday I activated the use of LFS for a number of file types in my local clone and pushed all changes, including .gitattributes in the repo root.

A colleague of mine pulled the changes, executed git LFS install but now finds in his clone the LFS link files instead of the real files.

Another git pull made no difference, and a git LFS pull gave him

$ git lfs pull
batch response: Post https://<bitbucket-server>/scm/<proj>/<repo>.git/info/lfs/objects/batch: 
...proxyconnect tcp: tls: first record does not look like a TLS handshake  
error: failed to fetch some objects from 
'https://<bitbucket-server>/scm/<proj>/<repo>.git/info/lfs'

Unfortunately there is no hint on any git lfs info page what this means - and how to fix it.

Is there any way I can make git lfs work for the rest of the team? And, just for curiosity, what is the reason for this message? All git lfs tutorials pretend that it is easy to use git lfs, but obviously it isn't.

like image 792
K.Isbruch Avatar asked Mar 05 '26 01:03

K.Isbruch


2 Answers

I had the same problem, and I can fix it by

unset https_proxy.

git-lfs works with http_proxy fine. May be it's help some peoples in future! Good Luck!

like image 94
Victor Avatar answered Mar 06 '26 13:03

Victor


It looks like your git lfs operation is trying to use your corporate proxy server. You may have better luck if you set the no_proxy variable to ignore the <bitbucket-server> URL.

Typically it is set to something like this:

export no_proxy=127.0.0.1,localhost,.<your-domain>

But you can be explicit and set it to ignore <bitbucket-server>

export no_proxy=127.0.0.1,localhost,<bitbucket-server>

Please note the leading . before <your-domain> in that example.

Also by setting GIT_TRACE=1 you can get more hints on what the problem might be.

GIT_TRACE=1 git lfs pull
like image 35
cb2 Avatar answered Mar 06 '26 15:03

cb2