Git LFS "LFS: Fatal error: Server error" (500) in CI
The LFS server or its storage backend returned a 5xx while transferring an object. Unlike a 403 or 404, this is a server-side fault and is often transient, clearing on retry.
What this error means
git lfs pull or checkout fails with "LFS: Fatal error: Server error: https://.../objects/..." or "Error downloading object: ... Server error (500)".
git-lfs
Error downloading object: assets/video.mp4 (7c6b5a4):
LFS: Fatal error: Server error: https://github-cloud.githubusercontent.com/.../7c6b5a4
error: failed to fetch some objectsCommon causes
A transient fault in the LFS storage backend
The object store hit a temporary error while streaming the blob. The request was valid; the server failed to complete it.
A large object timing out on the backend
Very large objects over a slow path can trip a backend timeout that surfaces as a 5xx to the client.
How to fix it
Retry the fetch
- Re-run
git lfs pull; a transient 5xx usually succeeds on a second attempt. - Wrap the fetch in a bounded retry so a single blip does not fail the job.
- If it persists for the same object, check the provider status page.
Terminal
for i in 1 2 3; do git lfs pull && break; sleep 10; doneReduce concurrency for large objects
Lower the transfer concurrency so big objects are less likely to trip a backend timeout.
Terminal
git config lfs.concurrenttransfers 2
git lfs pullHow to prevent it
- Add a bounded retry around LFS fetches in CI.
- Cache
.git/lfsso a flaky server is hit less often. - Lower
lfs.concurrenttransfersfor very large objects.
Related guides
Git LFS "smudge filter lfs failed" during checkout in CIFix "external filter git-lfs smudge failed" / "smudge filter lfs failed" in CI - LFS could not download an ob…
Git LFS "Error downloading object ... (missing)" in CIFix Git LFS "Error downloading object: ... (missing)" in CI - the pointer references an object the LFS server…
Git LFS objects re-downloaded every run (no cache) in CIFix Git LFS objects being re-downloaded on every CI run - without caching .git/lfs, each job re-fetches the s…