[Broken repo] git-lfs file gives 404 on access, but git-lfs client appears convinced there is nothing to upload even with push --all
For one of my repos, a specific git lfs object appears to be missing and cloning will give an error. This makes the repository uncloneable for users with git-lfs installed, because the clone will abort due to the missing file - and there is no obvious way for me to fix it, since git lfs push --all origin master
doesn't actually report anything as missing.
The repository in question is this one: https://gitlabeeeelib
This is what happens when I clone it:
[e@e Develop]$ git clone https://gitlab.coeeetdlib ./DELETE-THIS-TEST
Cloning into './DELETE-THIS-TEST'...
remote: Counting objects: 4930, done.
remote: Compressing objects: 100% (132/132), done.
remote: Total 4930 (delta 168), reused 252 (delta 144)
Receiving objects: 100% (4930/4930), 1.28 MiB | 1.08 MiB/s, done.
Resolving deltas: 100% (3269/3269), done.
Checking connectivity... done.
Downloading docs/font/Quicksand-Light.ttf (20.51 KB)
Error downloading object: docs/font/Quicksand-Light.ttf (ca656c4): Smudge error: Error downloading docs/font/Quicksand-Light.ttf (ca656c46214997aed06c43480958b8d2a3abeff8d684291f446c92a4ed1bf2a2): LFS: Repository or object not found: https://gitlab.eeeeeib.git/gitlab-lfs/objects/ca656c46214997aed06c43480958b8d2a3abeff8d684291f446c92a4ed1bf2a2
Check that it exists and that you have proper access to it
Errors logged to /home/e/Develop/DELETE-THIS-TEST/.git/lfs/objects/logs/20170508T173719.206542901.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: docs/font/Quicksand-Light.ttf: 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'
[e@e Develop]$
The file appears to be present in the local git repo copy where I tried git lfs push --all
:
[e@e e-stdlib]$ git lfs ls-files -l
ca656c46214997aed06c43480958b8d2a3abeff8d684291f446c92a4ed1bf2a2 * docs/font/Quicksand-Light.ttf
966cff99d5ff075470fa18ded16479295e8398562d6e9dc77da8eb32f494b467 * docs/font/Quicksand-Regular.ttf
dd0bbeacc986a5ba17f8f23d0c6ab33873636d136351a317b1a9688901343521 * misc/logo/e_icon.ico
9e5a6a917a718eebf7b8c57ad06cdba1f5c3b6e98a0eb1784fa18c7d4bb443fa * misc/logo/e_icon.xcf
[e@e e-stdlib]$
The file in question is this one:https://gitlaeeeeib/raw/master/docs/font/Quicksand-Light.ttf - interestingly, I just managed to download it a few minutes ago but now I get a 404 again. Not sure if this is browser cache shenanigans or the gitlab LFS storage acting up. Anyway, it's definitely missing now again.
I also filed an issue with the git-lfs client, where the developers suggested this might be a server-side issue: https://github.com/git-lfs/git-lfs/issues/2201