hudson.plugins.git.GitException: Command "/usr/bin/git -c core.askpass=true fetch --tags --progress git@********.com:git/Mobility/my-project.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Jenkins JIRA | Rafal Legiedz | 5 months ago
  1. 0

    I've Jenkins setup on my MacMini. It was working for several month uninterrupted until recent restart of the machine. Since then, whenever I'm trying to build (and cloning) I get: {noformat} [ssh-agent] Using credentials jenkins [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Java/JNR ssh-agent [ssh-agent] Started. Cloning the remote Git repository Cloning repository git@********.com:git/Mobility/my-project.git > /usr/bin/git init /Users/Shared/Jenkins/Home/jobs/my-project/workspace # timeout=10 Fetching upstream changes from git@********.com:git/Mobility/my-project.git > /usr/bin/git --version # timeout=10 using GIT_SSH to set credentials > /usr/bin/git -c core.askpass=true fetch --tags --progress git@********.com:git/Mobility/my-project.git +refs/heads/*:refs/remotes/origin/* ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "/usr/bin/git -c core.askpass=true fetch --tags --progress git@********.com:git/Mobility/my-project.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1058) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1098) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ERROR: null {noformat} The thing is that SSH setup is ok, as I can easily clone any repo in terminal. I searched in the web and tried almost everything I could and I'm out of clues what might be causing it.

    Jenkins JIRA | 5 months ago | Rafal Legiedz
    hudson.plugins.git.GitException: Command "/usr/bin/git -c core.askpass=true fetch --tags --progress git@********.com:git/Mobility/my-project.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
  2. 0

    Jenkins git plugin does not allow parameter on repository URL

    Stack Overflow | 2 years ago | user2631836
    hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@myrepo/java/login.git +refs/heads/*:refs/remotes/origin/* --depth=1" returned status code 128: stdout: stderr: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
  3. 0

    [JENKINS-19726] JGIT Error in combination with self signed certificate and https repo - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    hudson.plugins.git.GitException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 43719#141580179

    GitHub | 1 year ago | rneatherway
    hudson.plugins.git.GitException: Could not init /usr/local
  6. 0

    Hello, I'm currently trying to set up the git plugin to work with a git server based on windows behind an apache for authentification. To test I have a git repo called "C-Sharp" that does not need any authentification (Allow from All in apache). If I run git clone on a Windows-Batch build step it works properly. However, the Git Plugin itself always says it fails to authenticate (403). Building in workspace E:\data\jenkins\jobs\Git_Test\workspace Cloning the remote Git repository Cloning repository http://localhost:8001/git/C-Sharp.git Fetching upstream changes from http://localhost:8001/git/C-Sharp.git ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Failed to connect to http://localhost:8001/git/C-Sharp.git (status = 403) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1602) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:957) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:71) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:197) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:329) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:839) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872) at hudson.model.AbstractProject.checkout(AbstractProject.java:1412) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557) at hudson.model.Run.execute(Run.java:1679) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) ERROR: null Finished: FAILURE

    Jenkins JIRA | 3 years ago | Markus Amshove
    hudson.plugins.git.GitException: Failed to connect to http://localhost:8001/git/C-Sharp.git (status = 403)

    1 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 "/usr/bin/git -c core.askpass=true fetch --tags --progress git@********.com:git/Mobility/my-project.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$2.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506)
      5 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1058)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1098)
      2 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      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:529)
      2. hudson.model.Run.execute(Run.java:1738)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames