Git push resulted in error

I am trying to upload my files up to my repository but i kept getting this error - “error: RPC failed; curl 56 LibreSSL SSL_read: error:1404C3FC:SSL routines:ST_OK:sslv3 alert bad record mac, errno 0”

This is like my 30th so far…I can’t even solve this issue after several different attempts of solutions.

1 Like

Do you have a system proxy set?

I have a zero idea what you just said. I’m a newbie with dev life. I tried several solutions that existed on google search but nothing pan out.

Are you working on Windows or Linux?

It is Mac OSCatalina.

Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 180.74 KiB | 36.15 MiB/s, done.
Total 4 (delta 1), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 56 LibreSSL SSL_read: error:1404C3FC:SSL routines:ST_OK:sslv3 alert bad record mac, errno 0
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

Same issue for just one jpg…

If they’re large files and you don’t have LFS enabled that might be the problem.

Okay, let try that solution. I’m fed up with this error.

Apparently, there were a few occurrences here…Apparently, I wasn’t the current root administrator, lfs wasn’t up to the date, and homebrew needs an update. Then issue persistent until I add git lfs install inside my error-originated directory. Apparently, it works now…I am not having high hope just yet…I would bet it might come back in a few weeks.

I will let you know as this issue is plausible for now. Help me understand why GitHub warning about 100 MB limitation but not umm 174,490 bytes jpg picture upload issue…?

Back to square one…

I am having the same problem after updated to new macOS. I am not sure what is the error and not able to find correct answers. Any help will be great appriciate.

To be honest with you…I hit a dead end with this. However, after two or three weeks…it just has gone like the wind. Just like that with no solution. During that time, I tried to use LFS, but it was a totally bad idea with img because it renders them to be failed because of link scrambler. At this moment, I would recommend you take a look at your SSL portion cause it is all weird in there. Try to update your sslv3 or tslv something. It may give you some headway but no promises here. I do acknowledge your pains and frustrations…

Hi,

Thank you for your prompt reply. There should be some logical explanation; I can not accept or leave my changes to local branches for a long. I must push these changes to the remote so that I can collaborate with others. Anti-virus on MacOS blocking traffic. It could be anything, but I am still not convinced and trying to rule out all the possible causes.

I am suspecting a few things here, MacOS updated, git releases (git-SCM) and not enough testing done. Also, it could be a multiple users account on the same machine with credential stores.

On other extremes, It could be a specific edge case(i.e. in my case Ionic CLI)

Steps to reproduce are simple.

  1. Create a new private repository on GitHub (select read me, gitignore and license type).
  2. Open with VSCode
  3. Make changes in ReadMe.Md file
  4. Commit with comments
  5. Push Changes to remote branch (Success) through Github Desktop
  6. Open a terminal in VSCode
  7. Run Ionic start frontend
  8. Select angular
  9. Select capacitor yes
  10. Open new account no
  11. Commit with comment
  12. Push to commit to the remote repository (Failed) through Github Desktop

View error message
Enumerating objects: 52 done.
Counting objects: 100% (52/52), done.
Delta compression using up to 8 threads
Compressing objects: 100% (48/48), done.
Writing objects: 100% (51/51), 148.63 KiB | 6.19 MiB/s, done.
Total 51 (delta 2), reused 0 (delta 0), pack-reused 0
remote: fatal: early EOF
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date


from the log file

2020-11-17T17:56:14.422Z - info: [ui] [AppStore] loading 1 repositories from store
2020-11-17T17:56:14.423Z - info: [ui] [AppStore] found account: MYUSERNAME
2020-11-17T17:56:15.284Z - info: [ui] launching: 2.6.0 (Mac OS 10.16.0)
2020-11-17T17:56:15.285Z - info: [ui] execPath: ‘/Applications/GitHub Desktop.app/Contents/Frameworks/GitHub Desktop Helper (Renderer).app/Contents/MacOS/GitHub Desktop Helper (Renderer)’
2020-11-17T17:56:15.341Z - info: [ui] [BranchPruner] No branches to prune.
2020-11-17T17:56:19.099Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: personalfinanace - MYUSERNAME (has token)
2020-11-17T17:59:39.751Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 1 repositories took 0.9s of which 0.0s paused, total 0.9s
2020-11-17T18:01:32.485Z - info: [ui] Executing push: git -c credential.helper= -c protocol.version=2 push origin develop:develop --progress (took 313.349s)
2020-11-17T18:01:32.487Z - error: [ui] git -c credential.helper= -c protocol.version=2 push origin develop:develop --progress exited with an unexpected code: 1.
stderr:
Enumerating objects: 52, done.
Counting objects: 1% (1/52)
Counting objects: 3% (2/52)
Counting objects: 5% (3/52)
Counting objects: 7% (4/52)
Counting objects: 9% (5/52)
Counting objects: 11% (6/52)
Counting objects: 13% (7/52)
Counting objects: 15% (8/52)
Counting objects: 17% (9/52)
Counting objects: 19% (10/52)
Counting objects: 21% (11/52)
Counting objects: 23% (12/52)
Counting objects: 25% (13/52)
Counting objects: 26% (14/52)
Counting objects: 28% (15/52)
Counting objects: 30% (16/52)
Counting objects: 32% (17/52)
Counting objects: 34% (18/52)
Counting objects: 36% (19/52)
Counting objects: 38% (20/52)
Counting objects: 40% (21/52)
Counting objects: 42% (22/52)
Counting objects: 44% (23/52)
Counting objects: 46% (24/52)
Counting objects: 48% (25/52)
Counting objects: 50% (26/52)
Counting objects: 51% (27/52)
Counting objects: 53% (28/52)
Counting objects: 55% (29/52)
Counting objects: 57% (30/52)
Counting objects: 59% (31/52)
Counting objects: 61% (32/52)
Counting objects: 63% (33/52)
Counting objects: 65% (34/52)
Counting objects: 67% (35/52)
Counting objects: 69% (36/52)
Counting objects: 71% (37/52)
Counting objects: 73% (38/52)
Counting objects: 75% (39/52)
Counting objects: 76% (40/52)
Counting objects: 78% (41/52)
Counting objects: 80% (42/52)
Counting objects: 82% (43/52)
Counting objects: 84% (44/52)
Counting objects: 86% (45/52)
Counting objects: 88% (46/52)
Counting objects: 90% (47/52)
Counting objects: 92% (48/52)
Counting objects: 94% (49/52)
Counting objects: 96% (50/52)
Counting objects: 98% (51/52)
Counting objects: 100% (52/52)
Counting objects: 100% (52/52), done.
Delta compression using up to 8 threads
Compressing objects: 2% (1/48)
Compressing objects: 4% (2/48)
Compressing objects: 6% (3/48)
Compressing objects: 8% (4/48)
Compressing objects: 10% (5/48)
Compressing objects: 12% (6/48)
Compressing objects: 14% (7/48)
Compressing objects: 16% (8/48)
Compressing objects: 18% (9/48)
Compressing objects: 20% (10/48)
Compressing objects: 22% (11/48)
Compressing objects: 25% (12/48)
Compressing objects: 27% (13/48)
Compressing objects: 29% (14/48)
Compressing objects: 31% (15/48)
Compressing objects: 33% (16/48)
Compressing objects: 35% (17/48)
Compressing objects: 37% (18/48)
Compressing objects: 39% (19/48)
Compressing objects: 41% (20/48)
Compressing objects: 43% (21/48)
Compressing objects: 45% (22/48)
Compressing objects: 47% (23/48)
Compressing objects: 50% (24/48)
Compressing objects: 52% (25/48)
Compressing objects: 54% (26/48)
Compressing objects: 56% (27/48)
Compressing objects: 58% (28/48)
Compressing objects: 60% (29/48)
Compressing objects: 62% (30/48)
Compressing objects: 64% (31/48)
Compressing objects: 66% (32/48)
Compressing objects: 68% (33/48)
Compressing objects: 70% (34/48)
Compressing objects: 72% (35/48)
Compressing objects: 75% (36/48)
Compressing objects: 77% (37/48)
Compressing objects: 79% (38/48)
Compressing objects: 81% (39/48)
Compressing objects: 83% (40/48)
Compressing objects: 85% (41/48)
Compressing objects: 87% (42/48)
Compressing objects: 89% (43/48)
Compressing objects: 91% (44/48)
Compressing objects: 93% (45/48)
Compressing objects: 95% (46/48)
Compressing objects: 97% (47/48)
Compressing objects: 100% (48/48)
Compressing objects: 100% (48/48), done.
Writing objects: 1% (1/51)
Writing objects: 3% (2/51)
Writing objects: 5% (3/51)
Writing objects: 7% (4/51)
Writing objects: 9% (5/51)
Writing objects: 11% (6/51)
Writing objects: 13% (7/51)
Writing objects: 15% (8/51)
Writing objects: 17% (9/51)
Writing objects: 19% (10/51)
Writing objects: 21% (11/51)
Writing objects: 23% (12/51)
Writing objects: 25% (13/51)
Writing objects: 27% (14/51)
Writing objects: 29% (15/51)
Writing objects: 31% (16/51)
Writing objects: 33% (17/51)
Writing objects: 35% (18/51)
Writing objects: 37% (19/51)
Writing objects: 39% (20/51)
Writing objects: 41% (21/51)
Writing objects: 43% (22/51)
Writing objects: 45% (23/51)
Writing objects: 47% (24/51)
Writing objects: 49% (25/51)
Writing objects: 50% (26/51)
Writing objects: 52% (27/51)
Writing objects: 54% (28/51)
Writing objects: 56% (29/51)
Writing objects: 58% (30/51)
Writing objects: 60% (31/51)
Writing objects: 62% (32/51)
Writing objects: 64% (33/51)
Writing objects: 66% (34/51)
Writing objects: 68% (35/51)
Writing objects: 70% (36/51)
Writing objects: 72% (37/51)
Writing objects: 74% (38/51)
Writing objects: 76% (39/51)
Writing objects: 78% (40/51)
Writing objects: 80% (41/51)
Writing objects: 82% (42/51)
Writing objects: 84% (43/51)
Writing objects: 86% (44/51)
Writing objects: 88% (45/51)
Writing objects: 90% (46/51)
Writing objects: 92% (47/51)
Writing objects: 94% (48/51)
Writing objects: 96% (49/51)
Writing objects: 98% (50/51)
Writing objects: 100% (51/51)
Writing objects: 100% (51/51), 148.63 KiB | 7.82 MiB/s, done.
Total 51 (delta 2), reused 0 (delta 0), pack-reused 0
remote: fatal: early EOF
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

So this is a bit of unusual for me.

Let us see if I create a local repository first and then push to remote (non existing on my GitHub account and create from the start).

Here is a fresh start

Steps to reproduce

  1. Create a local folder
  2. Open VSCode
  3. run Ionic CLI Command
    i. Ionic start ionictest
    ii. Select Angular
    iii. Select Capacitor
  4. At the end of the process commit to the master branch
  5. Publish master branch to a private repository named ionictest (from VSCode)

------ git log from VSCode
Looking for git in: /usr/local/bin/git

Using git 2.29.2 from /usr/local/bin/git

git rev-parse --git-dir

Open repository: /Users/rlodhiya/Desktop/projects/ionicfinance/ionictesting

git fetch

git status -z -u

git symbolic-ref --short HEAD

git rev-parse master

Fatal: ambiguous argument ‘master’: unknown revision or path not in the working tree.

Use ‘–’ to separate paths from revisions, like this:

‘git […] – […]’

git for-each-ref --sort -committerdate --format %(refname) %(objectname)

git remote --verbose

git config --get commit.template

git status -z -u

git symbolic-ref --short HEAD

git rev-parse master

Fatal: ambiguous argument ‘master’: unknown revision or path not in the working tree.

Use ‘–’ to separate paths from revisions, like this:

‘git […] – […]’

git for-each-ref --sort -committerdate --format %(refname) %(objectname)

git remote --verbose

git config --get commit.template

git check-ignore -v -z --stdin

git status -z -u

git symbolic-ref --short HEAD

git rev-parse master

git rev-parse --symbolic-full-name master@{u}

fatal: no upstream configured for branch ‘master.’

git for-each-ref --sort -committerdate --format %(refname) %(objectname)

git remote --verbose

git config --get commit.template

git checkout -q master

git status -z -u

git symbolic-ref --short HEAD

git rev-parse master

git rev-parse --symbolic-full-name master@{u}

fatal: no upstream configured for branch ‘master.’

git for-each-ref --sort -committerdate --format %(refname) %(objectname)

git remote --verbose

git config --get commit.template

git symbolic-ref --short HEAD

git remote add origin https://github.com/USERNAME/ionictesting.git

git status -z -u

git symbolic-ref --short HEAD

git rev-parse master

git rev-parse --symbolic-full-name master@{u}

fatal: no upstream configured for branch ‘master.’

git for-each-ref --sort -committerdate --format %(refname) %(objectname)

git remote --verbose

git config --get commit.template

git push -u origin master

remote: fatal: early EOF

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

Everything up-to-date


To rule out configuration or anything else.

I created one more local repository and published successfully to Github. Now, this is really a strange one but let me see.

Really bizarre but I am running out of options (It is a latest ionic CLI - FYI)

I hope someone must have a similar problem in the entire universe and may share some insight here.

Oh Jesus…during my struggle and I only found two potential solutions. They weren’t helpful because they just a few steps and nothing works. I hope someone else will chip in. They were about SSLv3 and something about large files.

It is possible that it has something to do with SSLv3. I am not sure. As mentioned it worked for fewer changes (ie readme.md file committed and pushed to the remote repository without any problem.)

Since I have updated to new version of Mac OS, I am facing this issue. It is bit Odd one but log is not helpful and other google results are not giving me any further clues.

Maybe need to refresh everything and start fresh. :frowning:

Could be but my issue affected Github at first then it spread to a few other apps and browsers. They react to the same issue as your terminal to Github. It was weird…You can try to check your keychain cause it has something up with upload or calling a connection somehow fuzed out.

I had same issue when using GitHub deskktop against a GitLab instance in a Google Cloud virtual machine.
So i got the http URL of the repository in repository settings as well as setting repository/repository settings/remote and repository/repository settings/git for appropiate local settings regarding repository URL, user name and email. I checke file/options/git is coherent as well.

Then I fetched, then I included a change in repository, commited and when I push, I get that error.
If I do any pull it works.
I checked i was able to push from an Ubuntu VM with git command line and it worked!

I also removed credentials from windows credential manager and reinstalled git and github desktop but nothing worked.

Believe me, I really want to help you with this. It is ridiculous…there’s no solid solution at all. LTS was bullshit and just adding another error on my plate. Don’t try the LTS solution. Mine just stopped giving out that error at one day and back to normal. It sucks…I almost had to buy a new laptop or something. I tried to reset the whole operation software etc…nothing works.

Hi, I have also the same issue and looking for a solution. I read entire conversation but did not found the solution. Le me know any clue o solve that issue whenever i push the files to github repository it gives me error.

What git client are you using and what OS?