amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Bug] - Git-lfs fails to download files using SSH

Open pchoisel opened this issue 2 months ago • 1 comments

Git-lfs fails to download files using SSH Git-lfs version git-lfs-3.4.0-78.amzn2023.0.4.x86_64 fails to download files from a self-hosted Gitlab repository using only SSH. Installing git-lfs-3.7.1-1.el9.x86_64 fixed the issue.

To Reproduce

  • Create a fresh EC2 instance with Amazon Linux 2023.
  • Install git and git-lfs with dnf
  • Run git lfs install
  • Setup ssh-agent and clone repository using SSH

Expected behavior The LFS files should be downloaded correctly

Logs

[root@ip-10-0-0-120 ~]# git clone git@<<host>>:<<repo>>
Cloning into '<<folder>>'...
remote: Enumerating objects: 930, done.
remote: Counting objects: 100% (928/928), done.
remote: Compressing objects: 100% (583/583), done.
remote: Total 930 (delta 466), reused 655 (delta 334), pack-reused 2 (from 1)
Receiving objects: 100% (930/930), 383.16 KiB | 7.98 MiB/s, done.
Resolving deltas: 100% (466/466), done.
Downloading <<file>> (75 MB)
Error downloading object: <<file>> (3aa4625): Smudge error: Error downloading <<file>> (<<hash>>): LFS: could not get connection for batch request

Errors logged to '<<repo>>/.git/lfs/logs/20251024T110744.02883565.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: <<file>>: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Additional context Git lfs pull gave the same error.

The instance can correctly access the repository.

Installing git-lfs-3.7.1-1.el9.x86_64 from packagecloud fixed the issue.

pchoisel avatar Oct 24 '25 11:10 pchoisel

Thank you for bringing this to our attention. Our Amazon Linux team is currently investigating the issue and will provide you with an update once we have more information.

saiharsha1994 avatar Nov 03 '25 19:11 saiharsha1994

We have released an updated version of git-lfs in the Amazon Linux 2023 repositories that addresses this problem. The fix is now available for installation.

Please update git-lfs package and let us know if you continue to experience any issues.

saiharsha1994 avatar Dec 08 '25 08:12 saiharsha1994