-
Bug
-
Resolution: Not A Defect
-
Minor
given:
Windows Server 2012 and Windows Server 2008
git for windows version 2.10.2.windows.1
when:
Jenkins runs git fetch command
then:
error fetching remote repo message is received.
This only happens intermittently, approximately once in every 25 job runs.
Redacted Stack Trace:
Building remotely on [MACHINE_NAME] (build) in workspace c:\workspace\location > C:\location\of\git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > C:\location\of\git\bin\git.exe config remote.origin.url git@git.<gitlab-server>:My/project.git # timeout=10 Fetching upstream changes from git@git.<gitlab-server>:My/project.git > C:\location\of\git\bin\git.exe --version # timeout=10 using GIT_SSH to set credentials > C:\location\of\git\bin\git.exe fetch --tags --progress git@git.<gitlab-server>:My/project.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git@git.<gitlab-server>:My/project.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797) ... at hudson.model.Executor.run(Executor.java:404) Caused by: hudson.plugins.git.GitException: Command "C:\location\of\git\bin\git.exe fetch --tags --progress git@git.<gitlab-server>:My/project.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752) ... at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795) ... 11 more ERROR: null Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered Finished: FAILURE
Research:
- Modified Jenkins to read ssh private key from specific file on the machine Jenkins runs on - Error still observed intermittently
- Copy and pasted ssh private key directly into Jenkins (in case of a file access permission issue with 1.) - Error still observed intermittently
- Git command run as a scheduled job on the windows machines on which Jenkins runs (attempt to eliminate Jenkins as the source of the issue) - This was run hourly over a weekend. No errors were observed which points to this being a Jenkins issue, hence this Iira ticket.
- is related to
-
JENKINS-11576 Getting "returned status code 128: ssh_exchange_identification" error sometimes
- Closed
-
JENKINS-37229 CLI Git 1.8.3.1 (RHEL 7) reports "git fetch-pack: expected shallow list" on pipeline job shallow clone
- Closed