hudson.plugins.git.GitException: Failed to fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git

Jenkins JIRA | Henry McBride | 2 years ago
  1. 0

    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?

    Jenkins JIRA | 2 years ago | Henry McBride
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git
  2. 0

    [JENKINS-23489] Failed to fetch from bitbucket private repository - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git
  3. 0

    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?

    Jenkins JIRA | 2 years ago | Henry McBride
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins, bit bucket and Vagrant : cannot log in git

    Stack Overflow | 3 years ago | maxime
    hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:myuser/myproject.git
  6. 0

    Unable to connect to bitbucket using git from jenkins from tomcat installation in windows

    Stack Overflow | 2 years ago | Ana Franco
    hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:mycompany/myrepo.git

    3 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 fetch from ssh://git@altssh.bitbucket.org:443/#####/#####-installation-profile.git

      at hudson.plugins.git.GitSCM.fetchFrom()
    2. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:623)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:855)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:880)
      3 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
      2 frames
    4. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
      2. hudson.model.Run.execute(Run.java:1516)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:236)
      5 frames