hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git

Jenkins JIRA | Madrikeka | 6 months ago
  1. 0

    [JIRA] (JENKINS-36005) Problem with last version of Pipeline SCM, Git Plugin and Jenkins.

    Google Groups | 6 months ago | monic...@beeva.com (JIRA)
    hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git
  2. 0

    Hi! I try to install the last version of Jenkins, first 2.8 and then 2.9 with the last version of these plugins: - Git Plugin - 2.4.4v - Pipeline: SCM Step - 2.1 And I encountered a problem when I try to launch a pipeline Job with access to Git repository. When i put the repository configuration, I don' t have any problem with the connection, the credentials are ok and Jenkins doesn' t shows any error. When i try to launch the job, jenkins shows me, the next error: {noformat} > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@xx.xx.xx.xx:blabbla/blablabla.git # timeout=10 Fetching upstream changes from git@xx.xx.xx.xx:blabbla/blablabla.git > git --version # timeout=10 using GIT_SSH to set credentials Usuario git blablaba > git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision bc872b46805c0aefdb0cf2c22f398fa43c036388 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f bc872b46805c0aefdb0cf2c22f398fa43c036388 > git rev-list bc872b46805c0aefdb0cf2c22f398fa43c036388 # timeout=10 [Pipeline] node Running on master in /var/lib/jenkins/jobs/Hub_Build_Deploy/workspace [Pipeline] { [Pipeline] stage (Setup) Entering stage Setup Proceeding [Pipeline] git > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@xx.xx.xx.xx:blabbla/blablabla.git # timeout=10 Fetching upstream changes from git@xx.xx.xx.xx:blabbla/blablabla.git > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 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:1719) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808) ... 13 more [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: null Finished: FAILURE {noformat} The OS version : RHEL 7.2 I can replicate the same error in a different Jenkins with the same version, but the OS version is Ubuntu 14.04.4 LTS. In a Jenkins 2.0v with: - Git Plugin - 2.4.4v - Pipeline: SCM Step - 2.0v the same pipeline job, works fine. Thanks for your help. pd: Sorry for my bad english :)

    Jenkins JIRA | 6 months ago | Madrikeka
    hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git
  3. 0

    Hi! I try to install the last version of Jenkins, first 2.8 and then 2.9 with the last version of these plugins: - Git Plugin - 2.4.4v - Pipeline: SCM Step - 2.1 And I encountered a problem when I try to launch a pipeline Job with access to Git repository. When i put the repository configuration, I don' t have any problem with the connection, the credentials are ok and Jenkins doesn' t shows any error. When i try to launch the job, jenkins shows me, the next error: {noformat} > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@xx.xx.xx.xx:blabbla/blablabla.git # timeout=10 Fetching upstream changes from git@xx.xx.xx.xx:blabbla/blablabla.git > git --version # timeout=10 using GIT_SSH to set credentials Usuario git blablaba > git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision bc872b46805c0aefdb0cf2c22f398fa43c036388 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f bc872b46805c0aefdb0cf2c22f398fa43c036388 > git rev-list bc872b46805c0aefdb0cf2c22f398fa43c036388 # timeout=10 [Pipeline] node Running on master in /var/lib/jenkins/jobs/Hub_Build_Deploy/workspace [Pipeline] { [Pipeline] stage (Setup) Entering stage Setup Proceeding [Pipeline] git > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@xx.xx.xx.xx:blabbla/blablabla.git # timeout=10 Fetching upstream changes from git@xx.xx.xx.xx:blabbla/blablabla.git > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 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:1719) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808) ... 13 more [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: null Finished: FAILURE {noformat} The OS version : RHEL 7.2 I can replicate the same error in a different Jenkins with the same version, but the OS version is Ubuntu 14.04.4 LTS. In a Jenkins 2.0v with: - Git Plugin - 2.4.4v - Pipeline: SCM Step - 2.0v the same pipeline job, works fine. Thanks for your help. pd: Sorry for my bad english :)

    Jenkins JIRA | 6 months ago | Madrikeka
    hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins git checkout on os x times out

    Stack Overflow | 5 months ago | Jason Martens
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/orgname/reponame.git
  6. 0

    [JIRA] (JENKINS-38138) Git plugin over HTTP with TFS 2015 causes authorization error

    Google Groups | 3 months ago | alex....@adp.com (JIRA)
    hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 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()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$1.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
      4 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
      3 frames
    4. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1$1.call
      1. org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
      2. org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
      3. org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
      4. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49)
      4 frames
    5. Hudson
      ACL.impersonate
      1. hudson.security.ACL.impersonate(ACL.java:213)
      1 frame
    6. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1.run
      1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames