Public bug reported: ## Info
``` $ lsb_release -rd No LSB modules are available. Description: Ubuntu 24.04.2 LTS Release: 24.04 ``` ``` $ git --version git version 2.43.0 ``` ``` $ git-lfs --version git-lfs/3.4.1 (GitHub; linux amd64; go 1.22.2) ``` ## Steps 1. Use SSH as remote ``` $ git remote set-url origin [email protected]:bartvdbraak/test-lfs-ssh.git ``` 2. Track and commit files with Git LFS ``` $ git lfs track "*.bin" Tracking "*.bin" $ dd if=/dev/urandom of=test.bin bs=1M count=10 10+0 records in 10+0 records out 10485760 bytes (10 MB, 10 MiB) copied, 0.0225528 s, 465 MB/s $ git add . $ git commit [main fa323ab] bins 2 files changed, 4 insertions(+) create mode 100644 .gitattributes create mode 100644 test.bin ``` 3. Push and observe hanging ``` $ git push Locking support detected on remote "origin". Consider enabling it with: $ git config lfs.https://git.staging.blender.org/bartvdbraak/test-lfs-ssh.git/info/lfs.locksverify true ^Cloading LFS objects: 0% (0/1), 10 MB | 0 B/s got status 500 when uploading OID 759d7f6378dcac8d66a3429b702efe7ad4d0c940b58300d576a1235ba9b7e605: internal error ``` ## Expectation 1. Update to later version (e.g. 3.6.1) ``` $ git-lfs --version git-lfs/3.6.1 (GitHub; linux amd64; go 1.23.3; git ea47a34b) ``` 2. Push LFS objects over SSH successfully ``` $ git push Locking support detected on remote "origin". Consider enabling it with: $ git config lfs.https://git.staging.blender.org/bartvdbraak/test-lfs-ssh.git/info/lfs.locksverify true Enumerating objects: 5, done.1/1), 10 MB | 0 B/s Counting objects: 100% (5/5), done. Delta compression using up to 2 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (4/4), 467 bytes | 467.00 KiB/s, done. Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 remote: . Processing 1 references remote: Processed 1 references in total To git.staging.blender.org:bartvdbraak/test-lfs-ssh.git 9c764da..fa323ab main -> main ``` ## Background I am part of the infrastructure team at Blender. We host our own Gitea instance at https://projects.blender.org and want to support Git LFS over SSH (https://github.com/go-gitea/gitea/issues/17554). However, the current version of `git-lfs` on Ubuntu 24.04 LTS has a bug where that hangs on pushes. This issue has also been described upstream here: https://github.com/git-lfs/git-lfs/issues/6017 ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: git-lfs 3.4.1-1ubuntu0.3 ProcVersionSignature: Ubuntu 6.8.0-85.85-generic 6.8.12 Uname: Linux 6.8.0-85-generic x86_64 ApportVersion: 2.28.1-0ubuntu3.8 Architecture: amd64 CasperMD5CheckResult: pass Date: Thu Nov 13 15:42:29 2025 InstallationDate: Installed on 2025-07-02 (134 days ago) InstallationMedia: Ubuntu-Server 24.04.2 LTS "Noble Numbat" - Release amd64 (20250216.2) ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: git-lfs UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: git-lfs (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2131243 Title: git-lfs hangs when uploading over ssh To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/git-lfs/+bug/2131243/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
