Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-lfs i/o timeout while pushing code to bitbucket

Tags:

git

bitbucket

I use git-lfs for big sized files in git repo. When im trying to push the binaries to repo, git-lfs is going in an infinite loop and tries to upload the files again and again. Then I enabled trace logs and I see that git-lfs is failing due to i/o timeout error.

Git LFS: (0 of 8 files) 395.68 MB / 748.90 MB
trace git-lfs: tq: retrying object 25c358603c20dbd5af29ba6429bd4a1e43df7ac908b32: LFS: Put https://media-api.atlassian.io/upload/fe3853ab-61e8-9e38-a7ac90377129/binary?hashAlgorithm=sha256: read tcp xxx.rr.33.14:61709->xxx.rrr.dd.34:9480: i/o timeout trace git-lfs: tq: enqueue retry #1 for "25c3ac077a0dbd5af29ba6429bd4a1e43df7ac908b32" (size: 121194578) trace git-lfs: HTTP: PUT https://media-api.atlassian.io/upload/0e7801a5-e481-4ad7-b11a-067640/binary Git LFS: (0 of 8 files) 365.18 MB / 748.90 MB

Commands im running -

$ git add binaries/
$ git commit -m 'my msg'
$ git push
like image 402
goluh1112 Avatar asked Jul 04 '17 10:07

goluh1112


People also ask

What is git LFS prune?

DESCRIPTION. Deletes local copies of LFS files which are old, thus freeing up disk space. Prune operates by enumerating all the locally stored objects, and then deleting any which are not referenced by at least ONE of the following: ○ the current checkout.


1 Answers

If you look here there are some timeout settings you can try to set.

Git LFS timeout settings

this is a common problem and you can try to adjust that parameters.

like image 191
René Höhle Avatar answered Sep 19 '22 14:09

René Höhle