hudson.plugins.git.GitException: Failed to fetch from ssh://daryl@192.168.178.20/volume1/git/invest

Jenkins JIRA | Jan Walther | 1 year ago
  1. 0

    I want to connect a remote git repository with jenkins. In the console cloning the repository works fine when I login as user jenkins. There I am asked for the password and after typing it everything works fine. But in jenkins this does not work although I entered the credentials. Gestartet durch Benutzer anonymous Baue in Arbeitsbereich /var/lib/jenkins/jobs/invest/workspace No JDK named 'null' found No JDK named 'null' found > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://daryl:lysanne@192.168.178.20/volume1/git/invest # timeout=10 Fetching upstream changes from ssh://daryl@192.168.178.20/volume1/git/invest > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress ssh://daryl@192.168.178.20/volume1/git/invest +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from ssh://daryl@192.168.178.20/volume1/git/invest at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress ssh://daryl@192.168.178.20/volume1/git/invest +refs/heads/*:refs/remotes/origin/*" 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. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761) ... 11 more ERROR: null Finished: FAILURE I only found a lot of tips about using SSH keys but actually I want to stay with the credentials.

    Jenkins JIRA | 1 year ago | Jan Walther
    hudson.plugins.git.GitException: Failed to fetch from ssh://daryl@192.168.178.20/volume1/git/invest
  2. 0

    I want to connect a remote git repository with jenkins. In the console cloning the repository works fine when I login as user jenkins. There I am asked for the password and after typing it everything works fine. But in jenkins this does not work although I entered the credentials. Gestartet durch Benutzer anonymous Baue in Arbeitsbereich /var/lib/jenkins/jobs/invest/workspace No JDK named 'null' found No JDK named 'null' found > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url ssh://daryl:lysanne@192.168.178.20/volume1/git/invest # timeout=10 Fetching upstream changes from ssh://daryl@192.168.178.20/volume1/git/invest > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress ssh://daryl@192.168.178.20/volume1/git/invest +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from ssh://daryl@192.168.178.20/volume1/git/invest at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress ssh://daryl@192.168.178.20/volume1/git/invest +refs/heads/*:refs/remotes/origin/*" 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. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761) ... 11 more ERROR: null Finished: FAILURE I only found a lot of tips about using SSH keys but actually I want to stay with the credentials.

    Jenkins JIRA | 1 year ago | Jan Walther
    hudson.plugins.git.GitException: Failed to fetch from ssh://daryl@192.168.178.20/volume1/git/invest
  3. 0

    How to reconnect to my git repository on GitLab from NetBeans IDE 8 and Jenkins?

    Stack Overflow | 2 years ago | PJvG
    hudson.plugins.git.GitException: Failed to fetch from https://gitlab.com/<group-name>/<project-name>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins and Git configuration issue

    Stack Overflow | 2 years ago | senchaDev
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@<the-url-to-the-server>demo_android.git
  6. 0

    Can't make Jenkins to work with Git and BitBucket

    Stack Overflow | 2 years ago | romu
    hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:#company#/#project#.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 -c core.askpass=true fetch --tags --progress ssh://daryl@192.168.178.20/volume1/git/invest +refs/heads/*:refs/remotes/origin/*" 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.

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$1.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313)
      4 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
      3 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
      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:532)
      2. hudson.model.Run.execute(Run.java:1741)
      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