hudson.plugins.git.GitException: Failed to fetch from https://xxxx.git

Jenkins JIRA | Su Shi | 3 years ago
  1. 0

    After upgrade to git plugin 2.0.4, git client plugin 1.6.4 All the jobs with https repository url and using stored credential failed, refer to following log. Downgrade to git:2.0.3, git-client 1.6.3, the issue has gone. ==================================================== 00:00:00.002 Started by user anonymous 00:00:00.003 [EnvInject] - Loading node environment variables. 00:00:00.004 Building on master in workspace xxx 00:00:00.108 Fetching changes from the remote Git repository 00:00:00.141 Fetching upstream changes from https://xxx.git 00:00:01.667 FATAL: Failed to fetch from https://xxx.git 00:00:01.668 hudson.plugins.git.GitException: Failed to fetch from https://xxxx.git 00:00:01.669 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621) 00:00:01.669 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853) 00:00:01.669 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878) 00:00:01.669 at hudson.model.AbstractProject.checkout(AbstractProject.java:1414) 00:00:01.669 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671) 00:00:01.669 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:01.669 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) 00:00:01.669 at hudson.model.Run.execute(Run.java:1676) 00:00:01.669 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:304) 00:00:01.669 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:01.669 at hudson.model.Executor.run(Executor.java:231) 00:00:01.669 at hudson.model.OneOffExecutor.run(OneOffExecutor.java:43) 00:00:01.669 Caused by: hudson.plugins.git.GitException: Failed to connect to https://xxxx.git using credentials xxxx (status = 401) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1725) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1030) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:88) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:219) 00:00:01.669 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:619) 00:00:01.669 ... 11 more

    Jenkins JIRA | 3 years ago | Su Shi
    hudson.plugins.git.GitException: Failed to fetch from https://xxxx.git
  2. 0

    After upgrade to git plugin 2.0.4, git client plugin 1.6.4 All the jobs with https repository url and using stored credential failed, refer to following log. Downgrade to git:2.0.3, git-client 1.6.3, the issue has gone. ==================================================== 00:00:00.002 Started by user anonymous 00:00:00.003 [EnvInject] - Loading node environment variables. 00:00:00.004 Building on master in workspace xxx 00:00:00.108 Fetching changes from the remote Git repository 00:00:00.141 Fetching upstream changes from https://xxx.git 00:00:01.667 FATAL: Failed to fetch from https://xxx.git 00:00:01.668 hudson.plugins.git.GitException: Failed to fetch from https://xxxx.git 00:00:01.669 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621) 00:00:01.669 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853) 00:00:01.669 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878) 00:00:01.669 at hudson.model.AbstractProject.checkout(AbstractProject.java:1414) 00:00:01.669 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671) 00:00:01.669 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:01.669 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) 00:00:01.669 at hudson.model.Run.execute(Run.java:1676) 00:00:01.669 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:304) 00:00:01.669 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:01.669 at hudson.model.Executor.run(Executor.java:231) 00:00:01.669 at hudson.model.OneOffExecutor.run(OneOffExecutor.java:43) 00:00:01.669 Caused by: hudson.plugins.git.GitException: Failed to connect to https://xxxx.git using credentials xxxx (status = 401) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1725) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1030) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:88) 00:00:01.669 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:219) 00:00:01.669 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:619) 00:00:01.669 ... 11 more

    Jenkins JIRA | 3 years ago | Su Shi
    hudson.plugins.git.GitException: Failed to fetch from https://xxxx.git
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.IllegalStateException: Cannot open session, connection is not authenticated.

    GitHub | 2 years ago | macq-npokrovskaya
    hudson.plugins.git.GitException: Failed to fetch from https://jenkins@stash.macq.eu/scm/ebuttf/macqclient.git
  5. 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 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

      Failed to connect to https://xxxx.git using credentials xxxx (status = 401)

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$1.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1725)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1030)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:88)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:219)
      4 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:619)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:878)
      3 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:671)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    6. Hudson
      OneOffExecutor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
      2. hudson.model.Run.execute(Run.java:1676)
      3. hudson.matrix.MatrixBuild.run(MatrixBuild.java:304)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:231)
      6. hudson.model.OneOffExecutor.run(OneOffExecutor.java:43)
      6 frames