Recv failure : Connection was reset git

Viewed 1708

Background: My company has self-hosted GitLab which can only be accessed when connected via Wireguard VPN. I have setup VPN and am able to access the company's GitLab via browser successfully.

Problem: But when I try to clone a repo I get "fatal: unable to access xxx : Recv failure : Connection was reset, git " . I have also enabled git trace to debug it and here are the results enter image description here

Even when I try to push to a newly created empty repo on gitlab , I get the same error : enter image description here

I have tried various solution like unsetting proxy etc but I am unable to resolve this. I am really stuck to this error, plz help

1 Answers

Since there can probably be many causes, I can only help you by posting what solved my problem:

I looked at changing the port from 20 to 443, to setting a config file etc, but in the end what worked for me was I basically had to change the http in the url to https and then I could clone etc.

httpS://gitlab.yourcompany.com/folder_name/your_project.git

Related