SolvedCocoaPods error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

I got this error after pod install

Setting up CocoaPods master repo
$ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 1520989, done.
remote: Compressing objects: 100% (4367/4367), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

also I have tried pod setup and git clone http://github.com/CocoaPods/Specs.git master in repo directory but failed

I dont know maybe should I reinstall OS ?
Do you have any idea ?

30 Answers

βœ”οΈAccepted Answer

This seems like an issue with cloning the master repo. Could be an issue with your connection or the connection between you and GH.

I dont think this is a cocoapods library issue.

Try to clone repo manually https://github.com/CocoaPods/Specs and then place it in ~/.cocoapods/repos/master

Other Answers:

I tried 13 times , finally succeed

Cloning into 'master'...
remote: Counting objects: 1976654, done.
remote: Compressing objects: 100% (581/581), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I am also experiencing the same error but with other GitHub repo

I have the same problem.

Steps to reproduce:

  1. brew install cocoapods
  2. pod setup

Tried this as well:

git config --global http.postBuffer 524288000

But every time somewhere between 5~50% it stops. It first downloads at 3MB / sec but then drops to 4kB / sec and then errors out.

More Issues: