Intermittent failures reading from remote repository

Issue #16870 new
Cecil Morris
created an issue

The command "git ls-remote --tags --heads${username}/${repo}.git" is failing quite often as part of a Jenkins job. I ran the command manually four times back-to-back on the AWS EC2 instance and it failed twice and succeeded twice. When successful, it returns the information in less that 2 seconds. When it fails, it trys for 5-6 minutes, then returns

ssh: connect to host port 22: Network is unreachable
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This behavior seems to start yesterday and is worse today.

Comments (3)

  1. Aron Kerr

    I am also seeing this in our CD pipeline. It appears to be intermittent and I have been unable to find a pattern in the failures that would indicate an issue with one of the upstream systems.

  2. Cecil Morris reporter

    Aron, In my case, the outbound NAT server allowed access to old bitbucket address but not the newer addresses. Sometimes DNS was resolving to the old addresses and sometimes to the newer addresses. As the DNS caches were updated with the new addresses, our access was failing more frequently. I wasn’t expecting that the outbound traffic was being restricted and the intermittent effect made it difficult to resolve. Hope this might help.

    Cecil Morris

    Architect Maritz Motivation Solutions

    o: +1 636 827 1321

  3. Log in to comment