Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git clone of this repository fails on checkout with git-lfs errors #15

Open
ackalker opened this issue Jul 17, 2019 · 2 comments
Open

Comments

@ackalker
Copy link

ackalker commented Jul 17, 2019

When trying to clone this repository, I receive errors related to git-lfs, and some files in the resulting checked out working tree are missing.

Steps to reproduce:

  • Ensure reasonably recent versions of git and git-lfs are installed, make sure Git LFS is configured correctly using git-lfs install
  • Use git clone https://github.com/projectceladon/MediaSDK.git or hub clone projectceladon/MediaSDK to clone the project

Results on my machine:

$ hub clone  projectceladon/MediaSDK
Cloning into 'MediaSDK'...
remote: Enumerating objects: 12425, done.
remote: Total 12425 (delta 0), reused 0 (delta 0), pack-reused 12425
Receiving objects: 100% (12425/12425), 18.58 MiB | 16.35 MiB/s, done.
Resolving deltas: 100% (8376/8376), done.
Downloading doc/MFE-Overview.pdf (1.1 MB)
Error downloading object: doc/MFE-Overview.pdf (ea32007): Smudge error: Error downloading doc/MFE-Overview.pdf (ea32007cc3f7619b1b7fc3c7d0a720b25d1d5b0922d568824e4678d76d8e939a): [ea32007cc3f7619b1b7fc3c7d0a720b25d1d5b0922d568824e4678d76d8e939a] Object does not exist on the server: [404] Object does not exist on the server

Errors logged to /home/miki/vcs/git/MediaSDK/.git/lfs/logs/20190717T191551.734076662.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: doc/MFE-Overview.pdf: 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'

Additional information:

$ cd MediaSDK/
$ git lfs logs last
git-lfs/2.7.2 (GitHub; linux amd64; go 1.12.5)
git version 2.22.0

$ git-lfs filter-process
Error downloading object: doc/MFE-Overview.pdf (ea32007): Smudge error: Error downloading doc/MFE-Overview.pdf (ea32007cc3f7619b1b7fc3c7d0a720b25d1d5b0922d568824e4678d76d8e939a): [ea32007cc3f7619b1b7fc3c7d0a720b25d1d5b0922d568824e4678d76d8e939a] Object does not exist on the server: [404] Object does not exist on the server

[404] Object does not exist on the server
[ea32007cc3f7619b1b7fc3c7d0a720b25d1d5b0922d568824e4678d76d8e939a] Object does not exist on the server
github.com/git-lfs/git-lfs/errors.newWrappedError
	/builddir/git-lfs-2.7.2/errors/types.go:198
github.com/git-lfs/git-lfs/errors.Wrapf
	/builddir/git-lfs-2.7.2/errors/errors.go:85
github.com/git-lfs/git-lfs/tq.(*TransferQueue).enqueueAndCollectRetriesFor
	/builddir/git-lfs-2.7.2/tq/transfer_queue.go:506
github.com/git-lfs/git-lfs/tq.(*TransferQueue).collectBatches.func1
	/builddir/git-lfs-2.7.2/tq/transfer_queue.go:391
runtime.goexit
	/usr/lib/go/src/runtime/asm_amd64.s:1337
Error downloading doc/MFE-Overview.pdf (ea32007cc3f7619b1b7fc3c7d0a720b25d1d5b0922d568824e4678d76d8e939a)
github.com/git-lfs/git-lfs/errors.newWrappedError
	/builddir/git-lfs-2.7.2/errors/types.go:198
github.com/git-lfs/git-lfs/errors.Wrapf
	/builddir/git-lfs-2.7.2/errors/errors.go:85
github.com/git-lfs/git-lfs/lfs.(*GitFilter).downloadFile
	/builddir/git-lfs-2.7.2/lfs/gitfilter_smudge.go:110
github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge
	/builddir/git-lfs-2.7.2/lfs/gitfilter_smudge.go:71
github.com/git-lfs/git-lfs/commands.smudge
	/builddir/git-lfs-2.7.2/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/commands.filterCommand
	/builddir/git-lfs-2.7.2/commands/command_filter_process.go:118
github.com/spf13/cobra.(*Command).execute
	/builddir/git-lfs-2.7.2/vendor/github.com/spf13/cobra/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	/builddir/git-lfs-2.7.2/vendor/github.com/spf13/cobra/command.go:852
github.com/spf13/cobra.(*Command).Execute
	/builddir/git-lfs-2.7.2/vendor/github.com/spf13/cobra/command.go:800
github.com/git-lfs/git-lfs/commands.Run
	/builddir/git-lfs-2.7.2/commands/run.go:97
main.main
	/builddir/git-lfs-2.7.2/git-lfs.go:33
runtime.main
	/usr/lib/go/src/runtime/proc.go:200
runtime.goexit
	/usr/lib/go/src/runtime/asm_amd64.s:1337
Smudge error
github.com/git-lfs/git-lfs/errors.newWrappedError
	/builddir/git-lfs-2.7.2/errors/types.go:198
github.com/git-lfs/git-lfs/errors.NewSmudgeError
	/builddir/git-lfs-2.7.2/errors/types.go:284
github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge
	/builddir/git-lfs-2.7.2/lfs/gitfilter_smudge.go:80
github.com/git-lfs/git-lfs/commands.smudge
	/builddir/git-lfs-2.7.2/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/commands.filterCommand
	/builddir/git-lfs-2.7.2/commands/command_filter_process.go:118
github.com/spf13/cobra.(*Command).execute
	/builddir/git-lfs-2.7.2/vendor/github.com/spf13/cobra/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	/builddir/git-lfs-2.7.2/vendor/github.com/spf13/cobra/command.go:852
github.com/spf13/cobra.(*Command).Execute
	/builddir/git-lfs-2.7.2/vendor/github.com/spf13/cobra/command.go:800
github.com/git-lfs/git-lfs/commands.Run
	/builddir/git-lfs-2.7.2/commands/run.go:97
main.main
	/builddir/git-lfs-2.7.2/git-lfs.go:33
runtime.main
	/usr/lib/go/src/runtime/proc.go:200
runtime.goexit
	/usr/lib/go/src/runtime/asm_amd64.s:1337

Current time in UTC: 
2019-07-17 17:15:51

ENV:
LocalWorkingDir=/home/miki/vcs/git/MediaSDK
LocalGitDir=/home/miki/vcs/git/MediaSDK/.git
LocalGitStorageDir=/home/miki/vcs/git/MediaSDK/.git
LocalMediaDir=/home/miki/vcs/git/MediaSDK/.git/lfs/objects
LocalReferenceDirs=
TempDir=/home/miki/vcs/git/MediaSDK/.git/lfs/tmp
ConcurrentTransfers=3
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=/home/miki/vcs/git/MediaSDK/.git/lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic
UploadTransfers=basic
GIT_EXEC_PATH=/usr/libexec/git-core
GIT_DIR=/home/miki/vcs/git/MediaSDK/.git

Client IP addresses:
<redacted> <redacted>
$ $ git lfs ls-files
ea32007cc3 - doc/MFE-Overview.pdf
82ece6fd6f - doc/mediasdk-man.pdf
d5e4001e59 - doc/mediasdkfei-man.pdf
972c804402 - doc/mediasdkhevcfei-man.pdf
9b38362749 - doc/mediasdkjpeg-man.pdf
c5e72978b2 - doc/mediasdkusr-man.pdf
873eab4a76 - doc/mediasdkvp8-man.pdf
3c208534a8 - doc/samples/Media_Samples_Guide_Linux.pdf
6e379a90bb - doc/samples/readme-cpu-rotate-plugin_linux.pdf
966bd42149 - doc/samples/readme-decode_linux.pdf
17f8c47202 - doc/samples/readme-encode_linux.pdf
142672400b - doc/samples/readme-metrics_monitor_linux.pdf
131d059ef9 - doc/samples/readme-multi-transcode_linux.pdf
9ed2e1aedf - doc/samples/readme-opencl-rotate-plugin_linux.pdf
94d98723df - doc/samples/readme-vpp_linux.pdf
95db943008 - doc/samples/readme-vppplugin_linux.pdf
e6896689a1 - doc/tools/asg-hevc-man.pdf
e26d061df2 - tests/content/test_stream.264
e9b1e44776 - tests/content/test_stream.265
6b3951ba27 - tests/content/test_stream.jpg
05bbb55677 - tests/content/test_stream.mpeg2
a65d1f85c7 - tests/content/test_stream_176x96.yuv
4435051367 - tests/content/test_stream_vp8.ivf

When I clone the repository at https://github.com/Intel-Media-SDK/MediaSDK (which uses Git LFS objects for the same files), there are no errors.
Could it be that these errors are somehow related to the migration of Android-IA to Project Caladon?

@ackalker
Copy link
Author

ackalker commented Jul 17, 2019

Trying to view one of the affected files in the projectceladon/MediaSDK repository on Github in a web browser shows a page with the error: Sorry, this file is invalid so it cannot be displayed.
Viewing the same file in the Intel-Media-SDK/MediaSDK repository works without errors. N.B.: both pages show the Stored with Git LFS label above the space where the document should be displayed.

@ackalker ackalker changed the title Git clone fails with git-lfs errors Git clone of this repository fails on checkout with git-lfs errors Jul 17, 2019
@ackalker
Copy link
Author

I think that this SO answer could be useful for resolving this issue, assuming that something went wrong during the migration of the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant