git command line fails with http 502

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: git-plugin
    • Environment:
      Jenkins ver. 2.150.1
      Git-Plug-In Ver. 3.9.1
      Git Command-Line Version 2.12.3

      We cannot check out a repository from Bitbucket when using the console git.
      Here's the message indicating that a connection is wrong.

      This only happens when using a Jenkins job. When I copy the used command and try it on the command line, everything works out fine. When I use JGit, it also works.
      Another symptom is that it takes 6 Minutes until the erroro occurs, as if it runs into a timeout.

      Started by user Durden, Tylor
      Building on master in workspace /opt/jenkins/workspace/monitoring-adapter-develop
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url http://bitbucket-e.ads.de:7990/scm/monidash/monitoring-adapter.git # timeout=10
      Fetching upstream changes from http://bitbucket-e.ads.vhv.de:7990/scm/monidash/monitoring-adapter.git
       > git --version # timeout=10
      using GIT_ASKPASS to set credentials 
       > git fetch --tags --progress http://bitbucket-e.ads.de:7990/scm/monidash/monitoring-adapter.git +refs/heads/*:refs/remotes/origin/*
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from http://bitbucket-e.ads.de:7990/scm/monidash/monitoring-adapter.git
      	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:888)
      	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1155)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
      	at hudson.scm.SCM.checkout(SCM.java:504)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      	at hudson.model.Run.execute(Run.java:1810)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://bitbucket-e.ads.de:7990/scm/monidash/monitoring-adapter.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
      stdout: 
      stderr: fatal: unable to access 'http://bitbucket-e.ads.de:7990/scm/monidash/monitoring-adapter.git/': The requested URL returned error: 502
      
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2038)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1757)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:438)
      	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:886)
      	... 11 more
      ERROR: Error fetching remote repo 'origin'
      

            Assignee:
            Unassigned
            Reporter:
            Carsten Hilber
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: