-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suddenly Cannot Push Origin #1050
Comments
From what I can tell the Git error is related to network connectivity with the remote:
There might be more details in the logs about why it disconnected unexpected. Please check the logs created at |
@shiftkey Here's what the end of the log says right as it happens:
|
I pushed the first commit today without any issues and when I tried to push the second one, I received the error as well. konstantinos@opensuse-tumbleweed:~> github-desktop
error: [ui] `git -c credential.helper= push origin master:master --progress` exited with an unexpected code: 1.
stderr:
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (6/6), done.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (6/6), 7.49 MiB | 5.79 MiB/s, done.
Total 6 (delta 3), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
(The error was parsed as 5: The remote disconnected. Check your Internet connection and try again.) In ~/.config/GitHub Desktop/logs/2024-04-17.desktop..log
|
I tried to push the commit from the terminal without using GitHub Desktop at all and I received the same error so it is related to git itself. After looking up the error, increasing the http buffer solved it and I finally managed to push the commit. git config http.postBuffer 524288000 |
@Konstantinos-Sk I saw people in other forums on the net mentioning that increasing the post buffer could fix it, but is this possible to do in the GitHub desktop app? I’ve never used the Git command line, although I’m willing to learn. |
I can't seem to find any option to set it through GitHub desktop application, but you can execute it once in the terminal (konsole, gnome terminal, etc. whatever your system uses) and then use the application and push commits normally. |
I'm a total n00b with git and I can't figure out how to do this in the terminal for GitHub desktop, any advice would be appreciated xD Typing in the command |
Enter the directory of your local repository, the one you add the changes into |
That fixed it for me, thank you @Konstantinos-Sk ! :) |
this also fixed it for me! thank you very much @Konstantinos-Sk this should be fixed tho.. very weird that this happens out of nowhere... i even did a test push to my other repos and no issue. |
Thanks @Konstantinos-Sk for the assist here. This is the actual interesting error that seems to be relevant to this thread:
The core of this issue is something like this:
So it's not likely to be seen in other repositories, and once you've been able to push the commit to the remote you don't need to push it again. Closing this out as resolved. |
The problem
When I commit my changes and try to push to origin, the app gives me this error: "The remote disconnected. Check your internet connection and try again."
My computer is connected to the internet and I can watch YouTube, play online games, etc.
Release version
Version 3.3.6-linux3 (x64)
Operating system
Linux Mint 21.3 x86_64
Steps to reproduce the behavior
No response
Log files
No response
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: