Encountering with "RPC failed; curl 56 OpenSSL SSL_read - While Pushing Large Files." #163264
Replies: 3 comments
-
Thanks for posting in the GitHub Community, @Kavita34612! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the Discussions category is solely related to conversations around the GitHub product Discussions. This question should be in the |
Beta Was this translation helpful? Give feedback.
-
Hi @Kavita34612 👋, This is a fairly common issue when pushing large files using Git LFS, especially if your connection is unstable or if Git is not tuned for large payloads. Here’s a full checklist and solution path to help ur resolve the error: ⸻ RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054 This typically points to a timeout, buffer size, or connection reset during a large file transfer. ⸻ ✅ Recommended Fixes 🔹 1. Increase Git Buffer Size Run the following command to allow larger files to be pushed: git config --global http.postBuffer 524288000 // code in terminal 👉 This sets the buffer to 500MB, which is often enough for large LFS pushes. ⸻ 🔹 2. Disable LFS Batch Mode (Optional Fix) Some Git hosting services have issues with LFS batch mode: git config --global lfs.batch false // code in terminal ⸻ 🔹 3. Use HTTPS Over SSH (If Applicable) If you’re using HTTPS, try switching to SSH: git remote set-url origin git@github.com:username/repo.git. // code in terminal This avoids many SSL-related issues. ⸻ 🔹 4. Try Chunked Uploads (GitHub Only) If you’re using GitHub, enable LFS transfer via basic instead of batch: git config --global lfs.transfer.maxretries 10 ⸻ 🔹 5. Check for Firewalls or Antivirus ⸻ 🔹 6. Try Smaller Commits Break your push into smaller chunks: git add bigfile1 git add bigfile2 ⸻ Let me know how it goes — happy to help further if the issue persists! 😊 |
Beta Was this translation helpful? Give feedback.
-
Git LFS Push Error Troubleshooting GuideThis guide helps resolve the common error when pushing large files using Git LFS:
This is usually caused by network timeouts, Git buffer limits, or exceeding GitHub LFS quotas. Common Causes
Solutions1. Increase Git HTTP Buffer SizeIncrease the buffer to 500MB: git config --global http.postBuffer 524288000 2. Disable Git LFS Batch ModeThis sometimes improves upload reliability: git config --global lfs.batch false 3. Push Over SSH Instead of HTTPSSwitch remote to SSH: git remote set-url origin git@github.com:USERNAME/REPO.git
git push origin main Replace 4. Push in Smaller ChunksAvoid pushing all files at once: git add largefile1.zip
git commit -m "Add largefile1"
git push 5. Use a More Stable Network
6. Check Firewall/AntivirusTemporarily disable firewall/antivirus or configure proxy settings if applicable. 7. Check GitHub LFS QuotaGitHub free-tier limits:
Check usage: https://github.com/settings/billing Retry Push After Applying Fixesgit lfs install
git add .
git commit -m "Retrying large file push"
git push origin main Summary Checklist
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion Type
Question
Discussion Content
Hello Everyone!
I am currently working on a healthcare project related to hair transplant, which includes patient image processing and graft mapping, which would be helpful for hair transplant procedures. We are using Git LFS to manage large files. When we try to push large files, we encounter an error:
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
We have checked our internet connection, also checked whether Git LFS is properly installed or not, re-cloned the repo, and again pushed, but the issue still persists. Can anyone help me with this one?
Beta Was this translation helpful? Give feedback.
All reactions