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.

  • Frequent ssh connection failure to github
    via by Unknown author,
  • Git & Jenkins (Windows) hang
    via by Unknown author,
  • GitHub comment 14997#147383316
    via GitHub by deads2k
    ,
  • GitHub comment 4091#148701446
    via GitHub by jrharmon
    ,
  • I am getting the following error when trying to fetch from a repo: FATAL: Failed to fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git hudson.plugins.git.GitException: Failed to fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:623) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:855) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:880) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey). I can log into the server as the jenkins user and verify that the keys I created work fine from the command line but for some reason it continues to fail from jenkins. I created a credential and added the ssh key that works to it but it doesn't seem to work within jenkins itself. Any ideas as to what I should check?
    via by Henry McBride,
    • hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:forwardjump/[site].git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1720) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,