Skip to content

Git LFS does not transfer files. [ERROR] file already closed

Summary

I got an error when trying to push a LFS object via git-lfs push. Before that, I followed this documentation but still I got the error.

Stack trace

the command I used is

git push origin master

Some of Error snippet

16:34:51.068801 trace git-lfs: tq: refusing to retry "346970b432ea087d8b4d58c09c8afbbb0fe9603c5ec233f6e2f92bbf5a47df0d", too many retries[0/1870]
16:34:51.071550 trace git-lfs: tq: refusing to retry "1ef62048fb86216217c8ebad448993bbef9b36ee5d96ad38fe477d7e410ec7c1", too many retries (8)
16:34:51.071573 trace git-lfs: tq: refusing to retry "1ef62048fb86216217c8ebad448993bbef9b36ee5d96ad38fe477d7e410ec7c1", too many retries (8)
16:34:51.081945 trace git-lfs: HTTP: 301
16:34:51.082009 trace git-lfs: api: redirect PUT http://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/obj
ects/6b0bd21813530fb7a456e0b88e3e345e02a466e535dbe61f676d655cfa93e4de/934772 to https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling
/dl/ner_spacy.git/gitlab-lfs/objects/6b0bd21813530fb7a456e0b88e3e345e02a466e535dbe61f676d655cfa93e4de/934772
16:34:51.082217 trace git-lfs: HTTP: PUT https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/6b
0bd21813530fb7a456e0b88e3e345e02a466e535dbe61f676d655cfa93e4de/934772
16:34:51.082535 trace git-lfs: tq: refusing to retry "6b0bd21813530fb7a456e0b88e3e345e02a466e535dbe61f676d655cfa93e4de", too many retries (8)
16:34:51.082556 trace git-lfs: tq: refusing to retry "6b0bd21813530fb7a456e0b88e3e345e02a466e535dbe61f676d655cfa93e4de", too many retries (8)
LFS: Put http://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/e5a8dbe65461027bd53a7417bc2eb6c1088
58c76035abd60aff3ae352e540b3f/1075951: write tcp 192.168.20.251:39566->104.26.8.183:80: write: connection reset by peer
LFS: Put https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/c24b097a3e3421c8571493f90ae15ef114
316228a03f661dd9b7cfc70a6480a6/451: read /home/sony/pipeline_annotation_final/binaries/model/dl/ner_spacy/.git/lfs/objects/c2/4b/c24b097a3e3421c8
571493f90ae15ef114316228a03f661dd9b7cfc70a6480a6: file already closed
LFS: Put https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/2e7584d4283ba39344c0896750941ba28e
d12271569c195371ac45886da88e68/1238: read /home/sony/pipeline_annotation_final/binaries/model/dl/ner_spacy/.git/lfs/objects/2e/75/2e7584d4283ba39
344c0896750941ba28ed12271569c195371ac45886da88e68: file already closed
LFS: Put https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/3b369ca2014fd48a26348aa893f3004eeb
27c7441409520fe3545daa3ee92b3e/441: read /home/sony/pipeline_annotation_final/binaries/model/dl/ner_spacy/.git/lfs/objects/3b/36/3b369ca2014fd48a
26348aa893f3004eeb27c7441409520fe3545daa3ee92b3e: file already closed
LFS: Put https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/346970b432ea087d8b4d58c09c8afbbb0f
e9603c5ec233f6e2f92bbf5a47df0d/456: read /home/sony/pipeline_annotation_final/binaries/model/dl/ner_spacy/.git/lfs/objects/34/69/346970b432ea087d
8b4d58c09c8afbbb0fe9603c5ec233f6e2f92bbf5a47df0d: file already closed
LFS: Put http://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/1ef62048fb86216217c8ebad448993bbef9
b36ee5d96ad38fe477d7e410ec7c1/781893: write tcp 192.168.20.251:56474->104.26.9.183:80: write: connection reset by peer
LFS: Put https://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git/gitlab-lfs/objects/6b0bd21813530fb7a456e0b88e3e345e02
a466e535dbe61f676d655cfa93e4de/934772: read /home/sony/pipeline_annotation_final/binaries/model/dl/ner_spacy/.git/lfs/objects/6b/0b/6b0bd21813530
fb7a456e0b88e3e345e02a466e535dbe61f676d655cfa93e4de: file already closed
error: failed to push some refs to 'http://git.blackeye.id/pipeline_annotation_v2/binaries/profiling/dl/ner_spacy.git'