hudson.plugins.git.GitException: Failed to fetch from http://server/tfs/frontendcomponents/_git/static-server

Jenkins JIRA | andrea ferraresi | 1 year ago
  1. 0

    Hi guys, i'm actually experiencing a strange problem. We have a git repo built on a TFS server, the checkout works without problems but we did a git polling procedure to automatically check for new tags. When we push the tag we got {code} > git config --local credential.helper store --file=/tmp/git2674246502934019511.credentials # timeout=10 Setting http proxy: zrh-srv-b-cfm10.beta.local:3128 > git -c core.askpass=true fetch --tags --progress http://server/tfs/frontendcomponents/_git/static-server +refs/tags/*:refs/remotes/origin/tags/* > git config --local --remove-section credential # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://server/tfs/frontendcomponents/_git/static-server at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) at hudson.scm.SCM.checkout(SCM.java:488) at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress http://server/tfs/frontendcomponents/_git/static-server +refs/tags/*:refs/remotes/origin/tags/*" returned status code 128: stdout: stderr: remote: Microsoft (R) Visual Studio (R) Team Foundation Server error: no such remote ref refs/tags/v1.1.19 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733) ... 11 more ERROR: Error fetching remote repo 'origin' Finished: FAILURE {code} but if we retrigger the job again it will work. So to be super clear the command always fails the first time but it succeed at the second time. i also tried to update git to newer version but with 2.4 we got a "401 remote hangs up unexpectedly" error that is kind of weird. the issue is sometimes reproducible from the server command line but e.g. from my mac the issue is not reproducible Any idea?

    Jenkins JIRA | 1 year ago | andrea ferraresi
    hudson.plugins.git.GitException: Failed to fetch from http://server/tfs/frontendcomponents/_git/static-server
  2. 0

    Hi guys, i'm actually experiencing a strange problem. We have a git repo built on a TFS server, the checkout works without problems but we did a git polling procedure to automatically check for new tags. When we push the tag we got {code} > git config --local credential.helper store --file=/tmp/git2674246502934019511.credentials # timeout=10 Setting http proxy: zrh-srv-b-cfm10.beta.local:3128 > git -c core.askpass=true fetch --tags --progress http://server/tfs/frontendcomponents/_git/static-server +refs/tags/*:refs/remotes/origin/tags/* > git config --local --remove-section credential # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://server/tfs/frontendcomponents/_git/static-server at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) at hudson.scm.SCM.checkout(SCM.java:488) at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress http://server/tfs/frontendcomponents/_git/static-server +refs/tags/*:refs/remotes/origin/tags/*" returned status code 128: stdout: stderr: remote: Microsoft (R) Visual Studio (R) Team Foundation Server error: no such remote ref refs/tags/v1.1.19 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733) ... 11 more ERROR: Error fetching remote repo 'origin' Finished: FAILURE {code} but if we retrigger the job again it will work. So to be super clear the command always fails the first time but it succeed at the second time. i also tried to update git to newer version but with 2.4 we got a "401 remote hangs up unexpectedly" error that is kind of weird. the issue is sometimes reproducible from the server command line but e.g. from my mac the issue is not reproducible Any idea?

    Jenkins JIRA | 1 year ago | andrea ferraresi
    hudson.plugins.git.GitException: Failed to fetch from http://server/tfs/frontendcomponents/_git/static-server
  3. 0

    How to reconnect to my git repository on GitLab from NetBeans IDE 8 and Jenkins?

    Stack Overflow | 2 years ago | PJvG
    hudson.plugins.git.GitException: Failed to fetch from https://gitlab.com/<group-name>/<project-name>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins and Git configuration issue

    Stack Overflow | 2 years ago | senchaDev
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@<the-url-to-the-server>demo_android.git
  6. 0

    Can't make Jenkins to work with Git and BitBucket

    Stack Overflow | 2 years ago | romu
    hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:#company#/#project#.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 http://server/tfs/frontendcomponents/_git/static-server +refs/tags/*:refs/remotes/origin/tags/*" returned status code 128: stdout: stderr: remote: Microsoft (R) Visual Studio (R) Team Foundation Server error: no such remote ref refs/tags/v1.1.19

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$1.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324)
      4 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
      3 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:488)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1254)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
      3 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
      2. hudson.model.Run.execute(Run.java:1732)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:234)
      5 frames