hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized

Jenkins JIRA | Roman Wieczorek | 6 months ago
  1. 0

    Fetching freestyle project works correctly. Fetching particular multi-branch branch subproject works correctly: > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://bitbucket.org/***.git # timeout=10 Fetching upstream changes from https://bitbucket.org/***.git > git --version # timeout=10 using .gitcredentials to set credentials ... Syncing branches does not work: Started by user admin Setting origin to https://bitbucket.org/***.git Fetching origin... hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:230) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:175) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.computeChildren(AbstractMultiBranchProject.java:583) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) ... 9 more Caused by: org.eclipse.jgit.errors.TransportException: https://bitbucket.org/***.git: not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:504) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) ... 10 more Finished: FAILURE

    Jenkins JIRA | 6 months ago | Roman Wieczorek
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized
  2. 0

    Fetching freestyle project works correctly. Fetching particular multi-branch branch subproject works correctly: > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://bitbucket.org/***.git # timeout=10 Fetching upstream changes from https://bitbucket.org/***.git > git --version # timeout=10 using .gitcredentials to set credentials ... Syncing branches does not work: Started by user admin Setting origin to https://bitbucket.org/***.git Fetching origin... hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:230) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:175) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.computeChildren(AbstractMultiBranchProject.java:583) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) ... 9 more Caused by: org.eclipse.jgit.errors.TransportException: https://bitbucket.org/***.git: not authorized at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:504) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) ... 10 more Finished: FAILURE

    Jenkins JIRA | 6 months ago | Roman Wieczorek
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized
  3. 0

    [JIRA] [multi-branch-project-plugin] (JENKINS-34989) Multi-Branch Project Plugin can not sync branches using bitbucket ssh key

    Google Groups | 6 months ago | roman.w...@gmail.com (JIRA)
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: <a href="https://bitbucket.org/geeksoft_team/simplefx-front.git:" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">https://bitbucket.org/geeksoft_team/simplefx-front.git:</a> not authorized
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-34989] Multi-Branch Project Plugin can not sync branches using bitbucket ssh key - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: not authorized
  6. 0

    Hi, I try to create a pipeline project, but get always this error: {{ Started Creating git repository in /var/lib/jenkins/caches/git-a2d04db821719ce9bac0f9be2f320f58 Setting origin to https://mygithost/repo.git Fetching origin... FATAL: Failed to recompute children of MyTestProject hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://mygithost/repo.git: cannot open git-upload-pack at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: org.eclipse.jgit.api.errors.TransportException: https://mygithost/repo.git: cannot open git-upload-pack at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) ... 7 more Caused by: org.eclipse.jgit.errors.TransportException: https://mygithost/repo.git: cannot open git-upload-pack at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524) at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) ... 8 more Caused by: java.net.ConnectException: Connection refused mygithost at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:175) at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475) ... 13 more Finished: FAILURE }} the (jenkins-)user can clone the repo via "git clone https://mygithost/repo.git" on the command line. the ssl certifacte was added to the default truststore If I try to use plain http, it still creates the above error. Whats wrong in there?

    Jenkins JIRA | 6 months ago | Florian Doersch
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://mygithost/repo.git: cannot open git-upload-pack

    7 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. org.eclipse.jgit.errors.TransportException

      https://bitbucket.org/***.git: not authorized

      at org.eclipse.jgit.transport.TransportHttp.connect()
    2. JGit - Core
      FetchCommand.call
      1. org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:504)
      2. org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
      3. org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
      4. org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
      5. org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
      6. org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
      6 frames
    3. org.jenkinsci.plugins
      JGitAPIImpl.fetch
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678)
      1 frame
    4. jenkins.plugins.git
      AbstractGitSCMSource.retrieve
      1. jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174)
      1 frame
    5. jenkins.scm.api
      SCMSource.fetch
      1. jenkins.scm.api.SCMSource.fetch(SCMSource.java:146)
      2. jenkins.scm.api.SCMSource.retrieve(SCMSource.java:230)
      3. jenkins.scm.api.SCMSource.fetch(SCMSource.java:175)
      3 frames
    6. com.github.mjdetullio
      AbstractMultiBranchProject.computeChildren
      1. com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.computeChildren(AbstractMultiBranchProject.java:583)
      1 frame
    7. com.cloudbees.hudson
      FolderComputation.run
      1. com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
      2. com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
      2 frames
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames