Mehdi Faraji
Mehdi Faraji

Reputation: 3836

How can solve 'error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054' when pushing files to a github repository?

I initialized git and I did git push -u origin master but when I'm trying to push files to my github repository I get these logs in my terminal

Enumerating objects: 118, done.
Counting objects: 100% (118/118), done.
Delta compression using up to 4 threads
Compressing objects: 100% (118/118), done.
Writing objects: 100% (118/118), 2.78 MiB | 2.55 MiB/s, done.
Total 118 (delta 0), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

And turns out it hasn't push anyhting to repository and my repo is still empty . How can I solve this error and push to my repo ?

Upvotes: 2

Views: 22559

Answers (4)

More Chetan
More Chetan

Reputation: 17

This error is coming because of internet connection issue or might your network slow/unstable. You can fix this error by reconnecting your network or upgrading your internet speed. Than push your code again.

Upvotes: 0

saber tabatabaee yazdi
saber tabatabaee yazdi

Reputation: 4959

git config --global http.postBuffer 5242880000

Upvotes: 2

Sun Xian
Sun Xian

Reputation: 81

Some reasons you know(I am a developer from China), and I also encountered this problem, but I have not solved it after seeing many solutions.

Finally, I replaced a vpn and it took effect. I hope it will help you. This problem may be a network problem.

# this is error
$ git push origin master
Enumerating objects: 494, done.
Counting objects: 100% (494/494), done.
Delta compression using up to 6 threads
Compressing objects: 100% (467/467), done.
Writing objects: 100% (491/491), 23.12 MiB | 112.20 MiB/s, done.
Total 491 (delta 36), reused 1 (delta 0), pack-reused 0
error: RPC failed; curl 56 OpenSSL SSL_read: error:1408F10B:SSL routines:ssl3_get_record:wrong version number, errno 0
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

# this is ok
$ git push origin master
Enumerating objects: 494, done.
Counting objects: 100% (494/494), done.
Delta compression using up to 6 threads
Compressing objects: 100% (467/467), done.
Writing objects: 100% (491/491), 23.11 MiB | 110.05 MiB/s, done.
Total 491 (delta 37), reused 1 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (37/37), done.

Upvotes: 3

Mehdi Faraji
Mehdi Faraji

Reputation: 3836

I solved the error by building my project again and git init and other steps again and finally it worked

Upvotes: 1

Related Questions