Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intermittent connection to Azure-devops. Unable to push code to the repo

Tags:

azure-devops

I use Azure repository for managing code and I have not been very lucky with checking in code and pushing code. I would get one error or the other.

Here are some of the errors I get

fatal: unable to access 'https://dev.azure.com/mydevops/myStartup/_git/myStartup/': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:xxx

Failed to push the branch to the remote repository. See the Output window for more details.

Error encountered while pushing branch to the remote repository: Branch feature/445-create-unit-test does not exist. Commit changes locally and then push.

I tried to check in a branch and it got checked in but when It was time to push, I was not able to push. Here is what I got. I got a message to run the command below

git push --set-upstream origin feature/445-create-unit-test

Any ideas about what I am doing wrong?

like image 280
Baba Avatar asked Aug 31 '25 04:08

Baba


1 Answers

I've seen this problem, in my case it was IPv6 issue.

Try this:

  1. Open command line and do ping dev.azure.com - if the IP address is IPv6 (something like 2620:1ec:21::20), then it might be the problem.

  2. configure Windows to prefer v4 over v6:

    netsh int ipv6 set prefixpolicy ::ffff:0:0/96 51
    

Alternatively, you might disable IPv6 alltogether.

like image 81
qbik Avatar answered Sep 05 '25 01:09

qbik