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)".
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.
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.
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.