Repository navigation
Closed
Description
Hi,
My colleagues have added git lfs to manage big files in our repository, so I have installed this git extension. After this installation I run a git clone on my repo, and I get this error at the end:
Error accessing media: data/reconciliation/milan/events/accepted/accepted_links_evensi_eventful.nt (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855)
Errors logged to .git/lfs/objects/logs/20151222T122146.71016571.log
Use `git lfs logs last` to view the log.
error: external filter git-lfs smudge %f failed 2
error: external filter git-lfs smudge %f failed
fatal: data/reconciliation/milan/events/accepted/accepted_links_evensi_eventful.nt: smudge filter lfs failed
The lfs log says:
git-lfs/1.1.0 (GitHub; darwin amd64; go 1.5.2)
git version 2.6.4
$ git-lfs smudge data/reconciliation/milan/events/accepted/accepted_links_evensi_eventful.nt
Error accessing media: data/reconciliation/milan/events/accepted/accepted_links_evensi_eventful.nt (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855)
relation does not exist
goroutine 1 [running]:
github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/lfs/errors.go:557 +0x80
github.com/github/git-lfs/commands.logPanicToWriter(0x89c1e8, 0xc82002e290, 0x2500430, 0xc8204aa150)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/commands/commands.go:184 +0xf7f
github.com/github/git-lfs/commands.logPanic(0x2500430, 0xc8204aa150, 0x0, 0x0)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/commands/commands.go:148 +0x421
github.com/github/git-lfs/commands.handlePanic(0x2500430, 0xc8204aa150, 0x0, 0x0)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/commands/commands.go:123 +0x4e
github.com/github/git-lfs/commands.LoggedError(0x2500430, 0xc8204aa150, 0x55b0c0, 0x1e, 0xc820113c98, 0x2, 0x2)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/commands/commands.go:73 +0x82
github.com/github/git-lfs/commands.smudgeCommand(0x75f040, 0xc820011a90, 0x1, 0x1)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/commands/command_smudge.go:77 +0xd89
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).execute(0x75f040, 0xc8200119e0, 0x1, 0x1, 0x0, 0x0)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:477 +0x403
github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra.(*Command).Execute(0x760080, 0x0, 0x0)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:551 +0x46a
github.com/github/git-lfs/commands.Run()
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/src/github.com/github/git-lfs/commands/commands.go:88 +0x23
main.main()
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-lfs/git-lfs/work/git-lfs-1.1.0/git-lfs.go:34 +0x12e
ENV:
LocalWorkingDir=.
LocalGitDir=.git
LocalGitStorageDir=.git
LocalMediaDir=.git/lfs/objects
TempDir=.git/lfs/tmp
ConcurrentTransfers=3
BatchTransfer=true
GIT_DIR=.git
GIT_WORK_TREE=.
GIT_PREFIX=
Someone can tell me if I did something wrong, and give me some hints to solve my mistake? or it is a bug?
Thanks in advance.
Reacted by Hannes and Ian Thompson
Metadata
Metadata
Assignees
Labels
No labels
Activity
honglyua commentedon Dec 24, 2015
the same to me
technoweenie commentedon Dec 24, 2015
This is in REST terms, meaning there's no "download" hyperlink relation. That sounds like the object doesn't exist on the server.
strich commentedon Jan 8, 2016
I've had similar issues in the past and I think there may be a potential bug in cloning with git lfs (Still to be determined). You can try this method of fetching the repo, which is in fact faster too:
This only needs to be done once to initialize the clone for the first time.
Please do test it and let me know if it fixes it.
FooSoft commentedon Jan 12, 2016
I have the exact same problem (running on Linux Mint).
I am not able to successfully clone my repository (https://github.com/foosoft/website) because git lfs encounters the errors shown in the first post. The file that causes the error appears to be different with each clone operation, but it gets a little bit further before failing each time. Maybe there is some sort of cache problem on GitHub? I don't know.
@strich thank you for the workaround, it worked like a charm. It looks like there is some sort of underlying issue with lfs clone. Seems like a serious problem.
technoweenie commentedon Jan 13, 2016
I was able to clone your website just fine. There aren't really any CDNs or caches involved in the LFS API through GitHub. I'll look into better logging when this "relation not found" error comes up (and also a better error message). While it usually means the object isn't on the server, it could mean the server returned a really strange response that it isn't parsing correctly.
FooSoft commentedon Jan 16, 2016
Just got this same error from a different computer (also running Linux Mint Rosa 17.3):
Here's the log:
FooSoft commentedon Jan 16, 2016
Trying it again, just a couple of minutes later. This time it fails on a file that succeeded the last time (there have been no changes to the repository).
Log:
FooSoft commentedon Jan 16, 2016
So this is interesting... I tried cloning my website from my DigitalOcean VPS in Singapore twice and it worked fine every time. I then tried tunneling git through my VPS and cloning it that way, and that worked too. Maybe this is some sort of timing or routing issue?
For what it's worth I'm in Japan on fiber. The other network I was using was that of my university, which is pretty darn fast too... I wonder what is going on.
technoweenie commentedon Feb 5, 2016
@FooSoft: Your errors are slightly different than @jplu's:
Those are network related. Unfortunately, going from Japan to GitHub.com won't be the best experience right now. This is definitely something we want to work on.
Git LFS v1.1.1 bumped the http timeouts, so it should be a little better now. Next, I want to look at better retry capabilities for the downloads to handle those errors better.
https://github.com/github/git-lfs/releases/tag/v1.1.1
ExoticObjects commentedon Feb 13, 2016
I don't think this should be closed. The error still happens and you haven't given a workaround.
col000r commentedon Feb 22, 2016
same problem. the workaround given above didn't solve it because git lfs pull doesn't manage to actually pull anything for me
Edit: Apparently it didn't work for me because BitBucket doesn't actually support LFS yet and Sourcetree doesn't bother to tell me that it fails because LFS is just not there on the server. I have LFS working just fine on the console with GitLab
9il commentedon Mar 2, 2016
+1, OS X brew
technoweenie commentedon Mar 2, 2016
If you all want help, post details on the error in a new issue. There are multiple errors reported in this thread, so a vague request doesn't really help me. Thanks!
ExoticObjects commentedon Mar 2, 2016
The error happens intermittently, but the one I'm encountering is the same one reported by the OP:
error: external filter git-lfs smudge %f failed25 remaining items
biofag commentedon Apr 26, 2017
equidevium commentedon Apr 26, 2017
Did that. After that i had my origin head reseted to master.
Then i want to merge another branch into master.
When i try to checkout to the other branch as the first step.
user-MBP:project user$ git checkout somebranch
Error: unknown command "filter-process" for "git-lfs"
Run 'git-lfs --help' for usage.
fatal: The remote end hung up unexpectedly
equidevium commentedon Apr 26, 2017
The odd thing is that every time i try to reset the git lfs
i am required all the time to enter my credentials and always the git lfs ends with an error and not all content downloaded.
ttaylorr commentedon Apr 26, 2017
@equidevium sorry that you're having trouble. From your comments, it looks like you're not running the latest version of LFS. Please make sure that you have the latest version (v2.0.2) installed and try again.
If the issue persists, please don't hesitate to open a new issue.
equidevium commentedon Apr 27, 2017
Ok here is what i did for anyone that may need a solution.
Opened terminal from source tree.
unlinked the previous version of git lfs
installed the latest git lfs with brew
checkout on feature branch from terminal (waiting until download was finalized)
then checkout on master
merge feature branch
push.
And it worked.
Thanks a million.
bdombro commentedon May 19, 2017
I updated my version to 2.1 and the problem went away. FYI homebrew users, the brew version is OLD!!! You need to install using the binary method.
Michaelwolf95 commentedon Jul 14, 2017
@equidevium
This solved it for me!
gblue1223 commentedon Sep 29, 2017
In my case I've got 'Smudge filter failed' because I've changed the
lfs-objectspath. Since I'm running Gitlab CE on one of my local computer. I changed the path because I needed to use a ssd instead of a hdd for fast upload and download - but not as much fast as I expected though. So, I solved the problem with moving all directories under oldlfs-objectsto the new path.SaSha-K1 commentedon Oct 11, 2017
I got "smudge filter lfs failed" error when run out of disk space.
hakanai commentedon Nov 12, 2017
I got the same error on a recent build attempt, but it was already at git-lfs v2.3.4.
Castern commentedon Jun 8, 2019
git lfs --fetch all and
git lfs pull
gave me a LFs batch response Git credentials not found error.
The following two lines solved the issue:
git config --global credential.helper cache
git config --global crendential.helper wincred
Fix git LFS
abdulkhadeer366 commentedon Feb 3, 2021
It worked for me, I faced lfs-smudge error "error: external filter 'git-lfs filter-process' failed" and able to clone the repository
C:\Users\khadeer>git lfs install --force
Git LFS initialized.
rubenfructuoso commentedon May 5, 2021
This one also worked for me.
Working with Sourcetree seems to be important to have first git installed, then git lfs and finally SourceTree.
Thanks!
lotous21 commentedon Aug 4, 2022
You literally saved my life ! Thank you for sharing with us :)