hudson.plugins.git.GitException: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git

Jenkins JIRA | Andy Ruddock | 2 years ago
  1. 0

    Projects are stored in stash and accessed via ssh. When editing the project I get red text ; Failed to connect to repository : Command "git ls-remote -h ssh://git@stash.rainydayz.org:7999/hi/helloworld.git HEAD" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly The selected user has password protected credentials added. When I first created this project it worked fine, but there have been a number of updates over the past week or so during which time the project wasn't run. I know it worked on whatever version was in the repositories on 1st September. Trying to build the project, I get the following : Started by user Administrator Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://git@stash.rainydayz.org:7999/hi/helloworld.git # timeout=10 Fetching upstream changes from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git > git --version # timeout=10 using GIT_SSH to set credentials jenkins > git fetch --tags --progress ssh://git@stash.rainydayz.org:7999/hi/helloworld.git +refs/heads/*:refs/remotes/origin/* FATAL: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git hudson.plugins.git.GitException: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:627) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:865) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890) at hudson.model.AbstractProject.checkout(AbstractProject.java:1253) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1745) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@stash.rainydayz.org:7999/hi/helloworld.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625) ... 10 more

    Jenkins JIRA | 2 years ago | Andy Ruddock
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git
  2. 0

    Projects are stored in stash and accessed via ssh. When editing the project I get red text ; Failed to connect to repository : Command "git ls-remote -h ssh://git@stash.rainydayz.org:7999/hi/helloworld.git HEAD" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly The selected user has password protected credentials added. When I first created this project it worked fine, but there have been a number of updates over the past week or so during which time the project wasn't run. I know it worked on whatever version was in the repositories on 1st September. Trying to build the project, I get the following : Started by user Administrator Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://git@stash.rainydayz.org:7999/hi/helloworld.git # timeout=10 Fetching upstream changes from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git > git --version # timeout=10 using GIT_SSH to set credentials jenkins > git fetch --tags --progress ssh://git@stash.rainydayz.org:7999/hi/helloworld.git +refs/heads/*:refs/remotes/origin/* FATAL: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git hudson.plugins.git.GitException: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:627) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:865) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890) at hudson.model.AbstractProject.checkout(AbstractProject.java:1253) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1745) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@stash.rainydayz.org:7999/hi/helloworld.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625) ... 10 more

    Jenkins JIRA | 2 years ago | Andy Ruddock
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git
  3. 0

    I am not able to build the job in jenkins,,,even I had given the path for github

    Stack Overflow | 1 year ago | Rishi Arora
    hudson.plugins.git.GitException: Failed to fetch from git@github.com:rishi1020/SpringMVC
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 265#210760042

    GitHub | 8 months ago | mattrick16
    hudson.plugins.git.GitException: Failed to fetch from ${gitlabSourceRepoURL}
  6. 0

    Host Key Verification Failed

    GitHub | 8 months ago | mattrick16
    hudson.plugins.git.GitException: Failed to fetch from git@git.example.com:mattrick/Example.git

    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

      Command "git fetch --tags --progress ssh://git@stash.rainydayz.org:7999/hi/helloworld.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$1.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266)
      4 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:865)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
      3 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      2. hudson.model.Run.execute(Run.java:1745)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:89)
      2. hudson.model.Executor.run(Executor.java:240)
      2 frames