You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a download in git lfs smudge is cancelled, it sometimes leave some trash in .git/lfs/objects:
$ ls -al .git/lfs/objects/ab/cd
total 43928
drwxr--r-- 4 rick staff 136 Apr 28 08:02 ./
drwxr--r-- 3 rick staff 102 Apr 28 08:02 ../
-rw-r--r-- 1 rick staff 0 Apr 28 08:02 abcd...
-rw-r--r-- 1 rick staff 13523 Apr 28 08:06 abcd...-temp
On a second git checkout, the 0-length file gets moved over to the working directory. My hunch is that the file gets opened for file locking purposes, but never cleaned up because the command was aborted.
It happens in windows and Linux, when I Ctrl+C mid transfer or when the transfer fails due to poor internet/timeout. I'm using an external https lfs repo. (running the lfs test server)
What are the file sizes of .git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24-temp and .git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24`?
This part of the code base has been on my mind while discussing the extensions proposal (#444).
In the test I ran (and broke via Ctrl+C) .git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24-temp is zero bytes
and git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24 does not exist
I'm not sure I've ever seen the -temp not zero bytes, but I was not looking every time. I'm fairly certain the non-temp file is always missing.
@loretoparisi this is a closed issue, but I'm happy to help out 👋
I have the same issue on
git-lfs/1.0.0 (GitHub; darwin amd64; go 1.5.1; git 7379fa9)
This is a pretty outdated version of Git LFS (and Go). We've introduced a number of new features and bug fixes since LFS v1.0.0, which you can take advantage of by running:
$ brew update
$ brew upgrade go git-lfs
Of course this happens in case of networks with high latency / bandwidth temporary constraints etc.
I can't resume a download (huge) from huggingface...
I tried all the above.. if I press cobntrol C it starts from the start...
also.. I added aria2 in git configuration but it seems it's not using it.
This is a closed issue, and a very old one at that. We have full support for resuming if the server also supports it. If you're still seeing a problem, please open a new issue, filling out the issue template, including the trace output requested and the output of git lfs env. Please also explain what you added to the Git configuration (by naming the specific options you inserted or command you ran), and include the output of git config -l --show-origin.
Activity
technoweenie commentedon May 4, 2015
Fixed in #267
andyneff commentedon Jul 14, 2015
I am still getting this error, with version 0.5.2 and using the lastest git-lfs (off of 2eef603)
It happens in windows and Linux, when I Ctrl+C mid transfer or when the transfer fails due to poor internet/timeout. I'm using an external https lfs repo. (running the lfs test server)
technoweenie commentedon Jul 18, 2015
Clearly my "fix" was only a partial solution
What are the file sizes of
.git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24-tempand .git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24`?This part of the code base has been on my mind while discussing the extensions proposal (#444).
andyneff commentedon Jul 22, 2015
In the test I ran (and broke via Ctrl+C)
.git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24-tempis zero bytesand
git/lfs/objects/90/bd/90bd3def1a082ef9a790a4a5820a431452524408a9d4229d6abc548c5e6efb24does not existI'm not sure I've ever seen the -temp not zero bytes, but I was not looking every time. I'm fairly certain the non-temp file is always missing.
alexlouden commentedon Oct 6, 2015
👍 same issue here
Now every
git lfs pullgives me this error, and doesn't resume downloading.I then deleted the files (
find .git/lfs/objects/ -name '*-temp' -delete) and it's pulling the remainder.Using latest git-lfs:
git-lfs/1.0.0 (GitHub; darwin amd64; go 1.5.1)javenfang commentedon Oct 9, 2015
Same issue I encountered. Any update ?
technoweenie commentedon Oct 20, 2015
Here's an attempt to fix this for real: #763
loretoparisi commentedon Nov 23, 2016
I have the same issue on
macOS Sierra 10.12.11I get
doing
it partially fixes it.
Of course this happens in case of networks with high latency / bandwidth temporary constraints etc.
ttaylorr commentedon Nov 28, 2016
@loretoparisi this is a closed issue, but I'm happy to help out 👋
This is a pretty outdated version of Git LFS (and Go). We've introduced a number of new features and bug fixes since LFS v1.0.0, which you can take advantage of by running:
We also added a new option to process extra retries for objects that have failed (as is common in the types of situations you're describing). You can try:
Zibri commentedon May 15, 2024
I can't resume a download (huge) from huggingface...
I tried all the above.. if I press cobntrol C it starts from the start...
also.. I added aria2 in git configuration but it seems it's not using it.
bk2204 commentedon May 15, 2024
Hey,
This is a closed issue, and a very old one at that. We have full support for resuming if the server also supports it. If you're still seeing a problem, please open a new issue, filling out the issue template, including the trace output requested and the output of
git lfs env. Please also explain what you added to the Git configuration (by naming the specific options you inserted or command you ran), and include the output ofgit config -l --show-origin.