hudson.plugins.git.GitException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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?
    via by andrea ferraresi,
  • 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?
    via by andrea ferraresi,
  • Jenkins and Git configuration issue
    via Stack Overflow by senchaDev
    ,
  • Jenkins returned status code 128
    via Stack Overflow by Dakado
    ,
  • Jenkins can't fetch my git repo
    via Stack Overflow by angezanetti
    ,
  • jenkins time out error
    via Stack Overflow by Bhumika Shukla
    ,
  • Credentials on using Jenkins git plugin
    via Stack Overflow by Guillaume
    ,
    • 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

    Users with the same issue

    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates