hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git

Jenkins JIRA | Alex Ellis | 3 months ago
  1. 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
  2. 0

    Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue. The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager. I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server. Using pipeline plugin. Started by user anonymous [Pipeline] node Running on master in /var/jenkins_home/workspace/API tests [Pipeline] { [Pipeline] git > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url http://project/myprojectA.git # timeout=10 Fetching upstream changes from http://project/myprojectA.git > git --version # timeout=10 using GIT_ASKPASS to set credentials SVCACC service account > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082) 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:52) at hudson.security.ACL.impersonate(ACL.java:221) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49) 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 fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: Authentication failed for 'http://project/myprojectA.git/' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795) ... 13 more [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: null Finished: FAILURE

    Jenkins JIRA | 3 months ago | Alex Ellis
    hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
  3. 0

    Jenkins attempts to build from tomcat root, and not JENKINS_HOME

    Stack Overflow | 2 months ago | Cameron Kilgore
    hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:ghostfreeman/lpg_mediawiki.git
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 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 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 fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$1.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
      4 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
      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:52)
      4 frames
    5. Hudson
      ACL.impersonate
      1. hudson.security.ACL.impersonate(ACL.java:221)
      1 frame
    6. org.jenkinsci.plugins
      AbstractSynchronousNonBlockingStepExecution$1.run
      1. org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
      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