Skip to content

Smudge filter failed with a fresh new clone #911

Closed

Description

@jplu

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.

Activity

  1. honglyua commented on Dec 24, 2015

    @honglyua

    the same to me

  2. technoweenie commented on Dec 24, 2015

    @technoweenie
    Contributor

    relation does not exist

    This is in REST terms, meaning there's no "download" hyperlink relation. That sounds like the object doesn't exist on the server.

  3. strich commented on Jan 8, 2016

    @strich
    Contributor

    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:

    // Skip smudge - We'll download binary files later in a faster batch
    git lfs install --skip-smudge
    
    // Do git clone here
    git clone ...
    
    // Fetch all the binary files in the new clone
    git lfs pull
    
    // Reinstate smudge
    git lfs install --force
    

    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.

  4. FooSoft commented on Jan 12, 2016

    @FooSoft

    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.

  5. technoweenie commented on Jan 13, 2016

    @technoweenie
    Contributor

    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.

  6. FooSoft commented on Jan 16, 2016

    @FooSoft

    Just got this same error from a different computer (also running Linux Mint Rosa 17.3):

    alex@wintermute /m/s/projects> git clone https://github.com/FooSoft/website.git test
    Cloning into 'test'...
    remote: Counting objects: 2831, done.
    remote: Total 2831 (delta 0), reused 0 (delta 0), pack-reused 2831
    Receiving objects: 100% (2831/2831), 1.98 MiB | 1.09 MiB/s, done.
    Resolving deltas: 100% (1329/1329), done.
    Checking connectivity... done.
    Downloading content/src/portfolio/amaze-tools/img/crash.png (160.16 KB)
    Downloading content/src/portfolio/amaze-tools/img/eragon.png (140.78 KB)
    Downloading content/src/portfolio/amaze-tools/img/friends.png (140.23 KB)
    Downloading content/src/portfolio/amaze-tools/img/shrek.png (150.32 KB)
    Downloading content/src/portfolio/arenanet/img/gw2.png (71.39 KB)
    Downloading content/src/portfolio/potc-awe/img/potc-awe.png (124.62 KB)
    Downloading content/src/portfolio/potc-dmc/img/pirate.png (62.63 KB)
    Downloading content/src/portfolio/potc-dmc/img/potc-dmc.png (183.27 KB)
    Downloading content/src/projects/ankijoy/img/gamepad.png (12.78 KB)
    Downloading content/src/projects/homemaker/dl/homemaker_darwin_386.tar.gz (1.25 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_darwin_amd64.tar.gz (1.33 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_linux_386.tar.gz (1.26 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_linux_amd64.tar.gz (1.35 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_linux_arm.tar.gz (1.23 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_windows_386.tar.gz (1.30 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_windows_amd64.tar.gz (1.39 MB)
    Downloading content/src/projects/mangle/dl/mangle_osx.zip (18.62 MB)
    Downloading content/src/projects/mangle/dl/mangle_win.zip (10.22 MB)
    Downloading content/src/projects/mangle/img/kindle1.png (1.44 MB)
    Downloading content/src/projects/mangle/img/kindle2.png (1.09 MB)
    Downloading content/src/projects/mangle/img/kindle3.png (1.48 MB)
    Downloading content/src/projects/mangle/img/kindle4.png (1.52 MB)
    Downloading content/src/projects/mangle/img/main.png (11.77 KB)
    Downloading content/src/projects/mangle/img/options.png (46.27 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_darwin_386.tar.gz (935.51 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_darwin_amd64.tar.gz (992.95 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_linux_386.tar.gz (941.30 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_linux_amd64.tar.gz (1003.57 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_linux_arm.tar.gz (923.80 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_windows_386.tar.gz (976.67 KB)
    Downloading content/src/projects/md2vim/dl/md2vim_windows_amd64.tar.gz (1.02 MB)
    Downloading content/src/projects/md2vim/img/markdown.png (38.70 KB)
    Downloading content/src/projects/md2vim/img/vimdoc.png (37.40 KB)
    Downloading content/src/projects/meganekko/img/editor.png (33.76 KB)
    Downloading content/src/projects/meganekko/img/main.png (19.32 KB)
    Downloading content/src/projects/meganekko/img/options.png (18.33 KB)
    Downloading content/src/projects/meganekko/img/review1.png (15.91 KB)
    Downloading content/src/projects/meganekko/img/review2.png (21.98 KB)
    Downloading content/src/projects/moonfall/img/asset-editor.png (54.95 KB)
    Downloading content/src/projects/moonfall/img/console.png (65.98 KB)
    Downloading content/src/projects/moonfall/img/gameplay.png (65.64 KB)
    Downloading content/src/projects/moonfall/img/map-editor.png (50.44 KB)
    Downloading content/src/projects/moonfall/img/sprite-editor.png (70.85 KB)
    Downloading content/src/projects/scrawl/dl/scrawl_darwin_386.tar.gz (2.36 MB)
    Downloading content/src/projects/scrawl/dl/scrawl_darwin_amd64.tar.gz (2.53 MB)
    Downloading content/src/projects/scrawl/dl/scrawl_linux_386.tar.gz (2.34 MB)
    Downloading content/src/projects/scrawl/dl/scrawl_linux_amd64.tar.gz (2.51 MB)
    Downloading content/src/projects/scrawl/dl/scrawl_linux_arm.tar.gz (2.26 MB)
    Downloading content/src/projects/scrawl/dl/scrawl_windows_386.tar.gz (2.31 MB)
    Downloading content/src/projects/scrawl/dl/scrawl_windows_amd64.tar.gz (2.49 MB)
    Downloading content/src/projects/scrawl/img/anki.png (38.34 KB)
    Downloading content/src/projects/scrawl/img/inspect.png (25.03 KB)
    Downloading content/src/projects/tetrys/img/tetrys.png (7.47 KB)
    Downloading content/src/projects/yomichan/img/icons.png (12.12 KB)
    Downloading content/src/projects/yomichan/img/layout.png (33.00 KB)
    Downloading content/src/projects/yomichan/img/preferences.png (43.45 KB)
    Downloading content/src/projects/yomichan/img/reader.png (386.28 KB)
    Downloading content/src/research/kanji-freq/dl/novel/report.tar.gz (94.18 KB)
    Downloading content/src/research/kanji-freq/dl/report1.tar.gz (292.42 KB)
    Downloading content/src/research/kanji-freq/dl/report10.tar.gz (125.08 KB)
    Downloading content/src/research/kanji-freq/dl/report100.tar.gz (95.28 KB)
    Downloading content/src/research/kanji-freq/dl/report1000.tar.gz (68.65 KB)
    Downloading content/src/research/kanji-freq/dl/report10000.tar.gz (42.26 KB)
    Downloading content/src/research/kanji-freq/dl/reports.tar.gz (623.48 KB)
    Downloading content/src/research/kanji-freq/dl/scripts.tar.gz (86.21 KB)
    Error accessing media: content/src/research/kanji-freq/dl/scripts.tar.gz (3831c560ba5ff5cfffceac95eba523a5c3d98aa106303d408f34438f1a77ffd1)
    
    Errors logged to .git/lfs/objects/logs/20160116T124225.444183471.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: content/src/research/kanji-freq/dl/scripts.tar.gz: smudge filter lfs failed
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with 'git status'
    and retry the checkout with 'git checkout -f HEAD'
    

    Here's the log:

    alex@wintermute /m/s/projects> cat test/.git/lfs/objects/logs/20160116T124225.444183471.log 
    git-lfs/1.1.0 (GitHub; linux amd64; go 1.5.1; git 258acf1)
    git version 1.9.1
    
    $ git-lfs smudge content/src/research/kanji-freq/dl/scripts.tar.gz
    Error accessing media: content/src/research/kanji-freq/dl/scripts.tar.gz (3831c560ba5ff5cfffceac95eba523a5c3d98aa106303d408f34438f1a77ffd1)
    
    Post https://github.com/FooSoft/website.git/info/lfs/objects/batch: dial tcp: i/o timeout
    goroutine 1 [running]:
    github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/lfs/errors.go:557 +0x80
    github.com/github/git-lfs/commands.logPanicToWriter(0x7f33fd5b01e8, 0xc82016c008, 0x7f33fd52c3a8, 0xc820158280)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:184 +0xf7f
    github.com/github/git-lfs/commands.logPanic(0x7f33fd52c3a8, 0xc820158280, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:148 +0x421
    github.com/github/git-lfs/commands.handlePanic(0x7f33fd52c3a8, 0xc820158280, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:123 +0x4e
    github.com/github/git-lfs/commands.LoggedError(0x7f33fd52c3a8, 0xc820158280, 0x959b00, 0x1e, 0xc820139c98, 0x2, 0x2)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:73 +0x82
    github.com/github/git-lfs/commands.smudgeCommand(0xb5bf80, 0xc82009f4b0, 0x1, 0x1)
        /Users/rick/go/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(0xb5bf80, 0xc82009f400, 0x1, 0x1, 0x0, 0x0)
        /Users/rick/go/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(0xb5cfc0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:551 +0x46a
    github.com/github/git-lfs/commands.Run()
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:88 +0x23
    main.main()
        /Users/rick/go/src/github.com/github/git-lfs/git-lfs.go:34 +0x12e
    
    ENV:
    LocalWorkingDir=/mnt/storage/projects/test
    LocalGitDir=.git
    LocalGitStorageDir=.git
    LocalMediaDir=.git/lfs/objects
    TempDir=.git/lfs/tmp
    ConcurrentTransfers=3
    BatchTransfer=true
    GIT_DIR=.git
    
  7. FooSoft commented on Jan 16, 2016

    @FooSoft

    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).

    alex@wintermute /m/s/projects> rm -rf test/
    alex@wintermute /m/s/projects> git clone https://github.com/FooSoft/website.git test
    Cloning into 'test'...
    remote: Counting objects: 2831, done.
    remote: Total 2831 (delta 0), reused 0 (delta 0), pack-reused 2831
    Receiving objects: 100% (2831/2831), 1.98 MiB | 354.00 KiB/s, done.
    Resolving deltas: 100% (1329/1329), done.
    Checking connectivity... done.
    Downloading content/src/portfolio/amaze-tools/img/crash.png (160.16 KB)
    Downloading content/src/portfolio/amaze-tools/img/eragon.png (140.78 KB)
    Downloading content/src/portfolio/amaze-tools/img/friends.png (140.23 KB)
    Downloading content/src/portfolio/amaze-tools/img/shrek.png (150.32 KB)
    Downloading content/src/portfolio/arenanet/img/gw2.png (71.39 KB)
    Downloading content/src/portfolio/potc-awe/img/potc-awe.png (124.62 KB)
    Downloading content/src/portfolio/potc-dmc/img/pirate.png (62.63 KB)
    Downloading content/src/portfolio/potc-dmc/img/potc-dmc.png (183.27 KB)
    Downloading content/src/projects/ankijoy/img/gamepad.png (12.78 KB)
    Downloading content/src/projects/homemaker/dl/homemaker_darwin_386.tar.gz (1.25 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_darwin_amd64.tar.gz (1.33 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_linux_386.tar.gz (1.26 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_linux_amd64.tar.gz (1.35 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_linux_arm.tar.gz (1.23 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_windows_386.tar.gz (1.30 MB)
    Downloading content/src/projects/homemaker/dl/homemaker_windows_amd64.tar.gz (1.39 MB)
    Downloading content/src/projects/mangle/dl/mangle_osx.zip (18.62 MB)
    Downloading content/src/projects/mangle/dl/mangle_win.zip (10.22 MB)
    Downloading content/src/projects/mangle/img/kindle1.png (1.44 MB)
    Downloading content/src/projects/mangle/img/kindle2.png (1.09 MB)
    Downloading content/src/projects/mangle/img/kindle3.png (1.48 MB)
    Downloading content/src/projects/mangle/img/kindle4.png (1.52 MB)
    Error accessing media: content/src/projects/mangle/img/kindle4.png (0c4678722ab0991a0078fda70f56ac5044e3ce128e9bc6cc2f324db37e67ef99)
    
    Errors logged to .git/lfs/objects/logs/20160116T125256.664212863.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: content/src/projects/mangle/img/kindle4.png: smudge filter lfs failed
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with 'git status'
    and retry the checkout with 'git checkout -f HEAD
    

    Log:

    alex@wintermute /m/s/projects> cat test/.git/lfs/objects/logs/20160116T125256.664212863.log 
    git-lfs/1.1.0 (GitHub; linux amd64; go 1.5.1; git 258acf1)
    git version 1.9.1
    
    $ git-lfs smudge content/src/projects/mangle/img/kindle4.png
    Error accessing media: content/src/projects/mangle/img/kindle4.png (0c4678722ab0991a0078fda70f56ac5044e3ce128e9bc6cc2f324db37e67ef99)
    
    Error buffering media file: cannot write data to tempfile ".git/lfs/tmp/objects/0c4678722ab0991a0078fda70f56ac5044e3ce128e9bc6cc2f324db37e67ef99-278193986": read tcp 192.168.10.10:37577->54.231.0.177:443: read: connection reset by peer
    goroutine 1 [running]:
    github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/lfs/errors.go:557 +0x80
    github.com/github/git-lfs/commands.logPanicToWriter(0x7f5ade1761e8, 0xc820036270, 0x7f5ade177d88, 0xc820110f10)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:184 +0xf7f
    github.com/github/git-lfs/commands.logPanic(0x7f5ade177d88, 0xc820110f10, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:148 +0x421
    github.com/github/git-lfs/commands.handlePanic(0x7f5ade177d88, 0xc820110f10, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:123 +0x4e
    github.com/github/git-lfs/commands.LoggedError(0x7f5ade177d88, 0xc820110f10, 0x959b00, 0x1e, 0xc82010fc98, 0x2, 0x2)
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:73 +0x82
    github.com/github/git-lfs/commands.smudgeCommand(0xb5bf80, 0xc820011ad0, 0x1, 0x1)
        /Users/rick/go/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(0xb5bf80, 0xc820011a20, 0x1, 0x1, 0x0, 0x0)
        /Users/rick/go/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(0xb5cfc0, 0x0, 0x0)
        /Users/rick/go/src/github.com/github/git-lfs/vendor/_nuts/github.com/spf13/cobra/command.go:551 +0x46a
    github.com/github/git-lfs/commands.Run()
        /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:88 +0x23
    main.main()
        /Users/rick/go/src/github.com/github/git-lfs/git-lfs.go:34 +0x12e
    
    ENV:
    LocalWorkingDir=/mnt/storage/projects/test
    LocalGitDir=.git
    LocalGitStorageDir=.git
    LocalMediaDir=.git/lfs/objects
    TempDir=.git/lfs/tmp
    ConcurrentTransfers=3
    BatchTransfer=true
    GIT_DIR=.git
    
  8. FooSoft commented on Jan 16, 2016

    @FooSoft

    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.

  9. technoweenie commented on Feb 5, 2016

    @technoweenie
    Contributor

    @FooSoft: Your errors are slightly different than @jplu's:

    • dial tcp: i/o timeout
    • read tcp 192.168.10.10:37577->54.231.0.177:443: read: connection reset by peer

    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

  10. ExoticObjects commented on Feb 13, 2016

    @ExoticObjects

    I don't think this should be closed. The error still happens and you haven't given a workaround.

  11. col000r commented on Feb 22, 2016

    @col000r

    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

  12. 9il commented on Mar 2, 2016

    @9il

    +1, OS X brew

  13. technoweenie commented on Mar 2, 2016

    @technoweenie
    Contributor

    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!

  14. ExoticObjects commented on Mar 2, 2016

    @ExoticObjects

    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 failed

  15. 25 remaining items

  16. biofag commented on Apr 26, 2017

    @biofag
  17. equidevium commented on Apr 26, 2017

    @equidevium

    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

  18. equidevium commented on Apr 26, 2017

    @equidevium

    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.

  19. ttaylorr commented on Apr 26, 2017

    @ttaylorr
    Contributor

    @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.

  20. equidevium commented on Apr 27, 2017

    @equidevium

    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.

  21. bdombro commented on May 19, 2017

    @bdombro

    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.

  22. Michaelwolf95 commented on Jul 14, 2017

    @Michaelwolf95

    @equidevium
    This solved it for me!

  23. gblue1223 commented on Sep 29, 2017

    @gblue1223

    In my case I've got 'Smudge filter failed' because I've changed the lfs-objects path. 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 old lfs-objects to the new path.

  24. SaSha-K1 commented on Oct 11, 2017

    @SaSha-K1

    I got "smudge filter lfs failed" error when run out of disk space.

  25. hakanai commented on Nov 12, 2017

    @hakanai

    I got the same error on a recent build attempt, but it was already at git-lfs v2.3.4.

  26. Castern commented on Jun 8, 2019

    @Castern

    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

  27. added a commit that references this issue on Sep 14, 2020
  28. abdulkhadeer366 commented on Feb 3, 2021

    @abdulkhadeer366

    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:

    // Skip smudge - We'll download binary files later in a faster batch
    git lfs install --skip-smudge
    
    // Do git clone here
    git clone ...
    
    // Fetch all the binary files in the new clone
    git lfs pull
    
    // Reinstate smudge
    git lfs install --force
    

    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.

    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.

  29. rubenfructuoso commented on May 5, 2021

    @rubenfructuoso

    Thanks for all the suggestions, but none of those above resolved this issue for me.

    What finally fixed it for me in Windows was uninstalling Git LFS, then uninstalling Git, then re-installing Git, then reinstalling Git LFS.

    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!

  30. lotous21 commented on Aug 4, 2022

    @lotous21

    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:

    // Skip smudge - We'll download binary files later in a faster batch
    git lfs install --skip-smudge
    
    // Do git clone here
    git clone ...
    
    // Fetch all the binary files in the new clone
    git lfs pull
    
    // Reinstate smudge
    git lfs install --force
    

    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.

    You literally saved my life ! Thank you for sharing with us :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions