Error: RPC failed; curl 55 Send failure: Connection was reset
Asked by Samuel Lopes:

$ git push -u origin BPG-DEV-SAMUEL:BPG-DEV-SAMUEL  
Enumerating objects: 2981, done.  
Counting objects: 100% (2981/2981), done.  
Delta compression using up to 4 threads  
Compressing objects: 100% (1882/1882), done.  
Writing objects: 100% (2614/2614), 1.83 MiB \| 6.54 MiB/s, done.  
Total 2614 (delta 1356), reused 0 (delta 0), pack-reused 0  
error: RPC failed; curl 55 Send failure: Connection was reset  
send-pack: unexpected disconnect while reading sideband packet  
fatal: the remote end hung up unexpectedly  
Everything up-to-date


Answers:
author: Syahrul
body: G'day, [@Samuel Lopes](/t5/user/viewprofilepage/user-id/4889127)

The error "unexpected disconnect while reading sideband packet" can happen if your network buffer is configured in a lower size, so can you try to make some changes on your end with the following:  

* Increase HTTP buffer:

```
git config --global http.postBuffer 52428800
```

* Turn off the compression

```
git config --global core.compression 0
```

Let me know if that helps.  
Regards,  
Syahrul

comments: author: Samkelwa Gule
body: I had the same problem, I didn't understand what it was or how to fix it. This answer was really useful on both fronts. Thank you.


author: Samuel Lopes
body: Already tested the network and that's not the problem, do not know if it is due to my account being a free account


author: Imran Khan
body: The error message you're encountering, "Error: RPC failed; curl 55 Send failure: Connection was reset," typically indicates a problem with the network connection between your computer and the remote server you're trying to communicate with. This issue can occur for several reasons, including network congestion, server issues, or problems with your internet connection. Here are some steps you can take to troubleshoot and resolve the issue:

1. \*\*Check Your Internet [Connection](https://bammtech.com/en/hypertec-ciara-solutions/):\*\* Ensure that your internet connection is stable and working properly. Try accessing other websites or online services to verify that your internet connection is not the source of the problem.

2. \*\*Restart Your Router or Modem:\*\* If you're experiencing network issues, try restarting your router or modem to reset the connection. This can sometimes resolve temporary network problems.

3. \*\*Verify Server Status:\*\* Check if the server you're trying to connect to is experiencing any issues or downtime. You can use online services or websites that monitor server status to check if there are any reported problems with the server.

4. \*\*Check Firewall and Antivirus Settings:\*\* Make sure that your firewall or antivirus software is not blocking the connection to the remote server. Temporarily disable any firewall or antivirus software and try the operation again to see if it resolves the issue.

5. \*\*Use a Different Network:\*\* If possible, try connecting to a different network, such as a different Wi-Fi network or a cellular data connection, to see if the problem persists. This can help determine if the issue is specific to your current network.

6. \*\*Update Git or Curl:\*\* Ensure that your Git client and Curl utility are up to date. Sometimes, outdated versions of these tools can cause compatibility issues with remote servers.

7. \*\*Contact Server Administrator:\*\* If you continue to experience connection issues, contact the administrator of the remote server you're trying to connect to for further assistance. They may be able to provide insight into any server-side issues that could be causing the problem.

By following these steps, you should be able to diagnose and resolve the "RPC failed; curl 55 Send failure: Connection was reset" error. If the problem persists, consider reaching out to technical support for additional assistance.


Tags: bitbucket-cloud

cloud