org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.

Jenkins JIRA | Thomas Schweikle | 2 years ago
  1. 0

    I've set up jenkins to connect to {code:none} CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot CVS_RSH=/usr/bin/ssh BRANCH=HEAD MODULES="src xsrc" {code} now starting build jenkins generates a command line: {code:none} cvs -q -r HEAD -P src xsrc {code} and then fails with: {code:none} Gestartet durch Benutzer tps Baue in Arbeitsbereich /var/lib/jenkins/jobs/netbsd_current/workspace cvs checkout -P -N -D 07 May 2015 13:28:36 +0200 src ERROR: CVS Authentication failed: null org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed. at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141) at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374) at java.lang.Thread.run(Thread.java:745) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: sct-muc (Datei oder Verzeichnis nicht gefunden) at com.jcraft.jsch.KeyPair.load(KeyPair.java:524) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40) at com.jcraft.jsch.JSch.addIdentity(JSch.java:389) at com.jcraft.jsch.JSch.addIdentity(JSch.java:370) at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135) ... 2 more Caused by: java.io.FileNotFoundException: sct-muc (Datei oder Verzeichnis nicht gefunden) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at com.jcraft.jsch.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 6 more ERROR: Cvs task failed Finished: FAILURE {code} jenkins seems not being able to open a file. But what file it tries to open and where??? Since some mentioned its searching for ssh-key files I've tried these. But none of the locations seems to work: * /var/lib/jenkins/.ssh/ * /home/<user>/.ssh/ * /var/lib/jenkins/<user>/ * /var/lib/jenkins/<user>/.ssh/ would be nice if jenkins could exaust where it is searching for what file.

    Jenkins JIRA | 2 years ago | Thomas Schweikle
    org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
  2. 0

    I've set up jenkins to connect to {code:none} CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot CVS_RSH=/usr/bin/ssh BRANCH=HEAD MODULES="src xsrc" {code} now starting build jenkins generates a command line: {code:none} cvs -q -r HEAD -P src xsrc {code} and then fails with: {code:none} Gestartet durch Benutzer tps Baue in Arbeitsbereich /var/lib/jenkins/jobs/netbsd_current/workspace cvs checkout -P -N -D 07 May 2015 13:28:36 +0200 src ERROR: CVS Authentication failed: null org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed. at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141) at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374) at java.lang.Thread.run(Thread.java:745) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: sct-muc (Datei oder Verzeichnis nicht gefunden) at com.jcraft.jsch.KeyPair.load(KeyPair.java:524) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40) at com.jcraft.jsch.JSch.addIdentity(JSch.java:389) at com.jcraft.jsch.JSch.addIdentity(JSch.java:370) at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135) ... 2 more Caused by: java.io.FileNotFoundException: sct-muc (Datei oder Verzeichnis nicht gefunden) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at com.jcraft.jsch.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 6 more ERROR: Cvs task failed Finished: FAILURE {code} jenkins seems not being able to open a file. But what file it tries to open and where??? Since some mentioned its searching for ssh-key files I've tried these. But none of the locations seems to work: * /var/lib/jenkins/.ssh/ * /home/<user>/.ssh/ * /var/lib/jenkins/<user>/ * /var/lib/jenkins/<user>/.ssh/ would be nice if jenkins could exaust where it is searching for what file.

    Jenkins JIRA | 2 years ago | Thomas Schweikle
    org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
  3. 0

    CVS Authentication failed!

    Google Groups | 3 years ago | Sameh Tawfik
    org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins users - CVS Authentication failed!

    nabble.com | 1 year ago
    org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
  6. 0

    Jenkins issues - [JIRA] (JENKINS-13764) CVS authentication failure while running rlog command (Windows master / Unix slave)

    nabble.com | 1 year ago
    java.lang.RuntimeException: CVS authentication failure while running rlog command

  1. gehel 2 times, last 1 week ago
  2. Kialandei 100 times, last 1 week ago
  3. Reich 1 times, last 2 weeks ago
  4. bluebunnty 1 times, last 2 weeks ago
  5. Aria Pahlavan 1 times, last 2 weeks ago
43 more registered users
52 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. java.io.FileNotFoundException

    sct-muc (Datei oder Verzeichnis nicht gefunden)

    at java.io.FileInputStream.open0()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open0(Native Method)
    2. java.io.FileInputStream.open(FileInputStream.java:195)
    3. java.io.FileInputStream.<init>(FileInputStream.java:138)
    4. java.io.FileInputStream.<init>(FileInputStream.java:93)
    4 frames
  3. JSch
    JSch.addIdentity
    1. com.jcraft.jsch.Util.fromFile(Util.java:492)
    2. com.jcraft.jsch.KeyPair.load(KeyPair.java:521)
    3. com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
    4. com.jcraft.jsch.JSch.addIdentity(JSch.java:389)
    5. com.jcraft.jsch.JSch.addIdentity(JSch.java:370)
    5 frames
  4. org.netbeans.lib
    Client$1.run
    1. org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135)
    2. org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)
    2 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame