shiftkey / desktop

Fork of GitHub Desktop to support various Linux distributions
MIT License
6.71k stars 505 forks source link

Push - The remote disconnected #1065

Closed LeoLomardo closed 4 weeks ago

LeoLomardo commented 3 months ago

The problem

I have internet and when i try to push, it gives me that error message: "The remote disconnected. Check your Internet connection and try again."

Release version

Version 3.3.12-linux2 (x64)

Operating system

Arch Linux

Steps to reproduce the behavior

1-Go to reppository 2-Click push origin 3-error

Log files

2024-05-19.desktop.production.log

Screenshots

Captura de tela de 2024-05-19 13-47-33

Additional context

No response

clxadmin commented 3 months ago

I have the same issue since today

clxadmin commented 3 months ago

Writing objects: 100% (127/127), 1.74 MiB | 1.99 MiB/s, done. Total 127 (delta 16), 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.)

LeoLomardo commented 3 months ago

I have the same issue since today

I just made a backup of the most recent files, and cloned the repository again, now its working with no problem

shiftkey commented 3 months ago

@clxadmin this appears to be the underlying issue:

error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet

This seems to be occurring on git push, and it seems like the server is rejecting the request (or a request during this process). I would see if you can push from the command line.

If it fails there try and run the operation with the GIT_CURL_VERBOSE=2 environment variable set to see if you can flush out more details around why this is being rejected.

shiftkey commented 3 months ago

This looks very similar to #1050, please have a read of the details there and see if setting a higher limit for determining when to buffer during push operations will help:

git config http.postBuffer 524288000
clxadmin commented 3 months ago

I have the same issue since today

I just made a backup of the most recent files, and cloned the repository again, now its working with no problem

I try the same.. deleted whole repository and cloned it new -- still the same issue. I'm wondering if this is a know issue with repositories from Gitlab ? Can anyone confirm the same ?

clxadmin commented 3 months ago

This looks very similar to #1050, please have a read of the details there and see if setting a higher limit for determining when to buffer during push operations will help:

git config http.postBuffer 524288000

I'm using GitHub Desktop on Mint - the question is how to do this (git config http.postBuffer 524288000) with that?

TIJBRAND1996 commented 3 months ago

No speak ingles

shiftkey commented 1 month ago

I'm using GitHub Desktop on Mint - the question is how to do this (git config http.postBuffer 524288000) with that?

@clxadmin This is the Git command to run within your problem repository, so you'll need the Git command line installed to then cd into your repository on disk and then run that command.

shiftkey commented 4 weeks ago

Closing this out due to inactivity, now that we understand the area better