org.netbeans.lib.cvsclient.connection.AuthenticationException

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.

  • Repository url configured in project CVSROOT=:ssh:preejith@172.16.0.2:22/repository CVS root given in configure system (CVS section): :ssh:@172.16.0.2:22/repository CVS server is Redhat Linux. Building in workspace C:\Program Files (x86)\Jenkins\workspace\new test Using globally configured password for connection to ':ext:172.16.0.2:22/repository' with username 'preejith' cvs checkout -P -r outreach-ep-motherdairy-phase2-dev -d outreachEnterprise-proj-MD outreachEnterprise-proj 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(Unknown Source) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Windows\System32\config\systemprofile\ssh\id_rsa (The system cannot find the path specified) 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: C:\Windows\System32\config\systemprofile\ssh\id_rsa (The system cannot find the path specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) 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
    via by preejith vv,
  • CVS Authentication failed!
    via by Sameh Tawfik,
  • Jenkins users - CVS Authentication failed!
    via by Unknown author,
  • I'm building on a Solaris slave trying to access a CVS repository over SSH connection Private key location is set to $SSH_PRIVATE_KEY_DIR/id_rsa and known hosts to $SSH_PRIVATE_KEY_DIR/known_hosts On the slave, SSH_PRIVATE_KEY_DIR is set to: /export/home/cxt2tst/.ssh Checkout is done properly: Building remotely on picard in workspace /export/home/cxt2tst/HUDSON/workspace/server.8.0 cvs update -d -P -r HEAD -D 14 May 2012 14:17:28 +0200 server.8.0 cvs update: Updating server.8.0 cvs update: Updating server.8.0/configuration .... .... but when it tries to get the ChangeLog, an exception is raised with the following stack trace FATAL: CVS authentication failure while running rlog command java.lang.RuntimeException: CVS authentication failure while running rlog command at hudson.scm.CVSSCM.getRemoteLogForModule(CVSSCM.java:530) at hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:414) at hudson.scm.CVSSCM.checkout(CVSSCM.java:821) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:586) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed. at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:134) at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374) at java.lang.Thread.run(Unknown Source) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: \export\home\cxt2tst\.ssh\id_rsa (The system cannot find the path specified) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:98) at com.jcraft.jsch.JSch.addIdentity(JSch.java:224) at com.jcraft.jsch.JSch.addIdentity(JSch.java:218) at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:128) ... 2 more Caused by: java.io.FileNotFoundException: \export\home\cxt2tst\.ssh\id_rsa (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83) ... 5 more It seems it cannot find the file due to the use of wrong path separator
    via by lklock,
  • We have recently moved to using SSPI authentication on our CVS (CVSNT) system and now don't seem to be able to use the Jenkins CVS Plug-In to checkout our code. I've tried a rather large number of options to try to get this to work but nothing I do seems to change that fact that the plug-in appears to only attempt to use the internal ssh mechanism using public/private key authentication when a CVSROOT of the form :ext:<user>@<server>:/<repository>. The output is always something like I've added below. I'm aware that Jenkins uses the Netbeans JavaCVS client so I tried installing Netbeans to see how to get that to do the job. In the Netbeans CVS checkout there is an option to either use the Internal SSH, or use an External Shell. In the external shell box I was able to put: C:\Program Files (x86)\CVS Suite\CVSNT\extnt.exe <server> And it worked from that point. As you can see below I've tried adding CVS_RSH and CVS_SERVER environment variables to try to force this but it appears to have no effect. (Note that I've also tried CVS_EXE instead of CVS_SERVER, and the same without the underscore as the details on the internet are a bit inconsistent). I've set this to Major as it's quite important for us to be able to continue to use the CVS Plugin because of the integration to the change reporting on Jenkins. We can get round it using alternative methods, e.g. Ant task, Python script or whatever (hence the reason I haven't made this a Blocker) but that loses a lot of the benefit of Jenkins' built-in functionality. ========= Console Output ============ 11:13:44 Started by user McCabe, John 11:13:44 [EnvInject] - Loading node environment variables. 11:13:44 [EnvInject] - Preparing an environment for the build. 11:13:44 [EnvInject] - Keeping Jenkins system variables. 11:13:44 [EnvInject] - Keeping Jenkins build variables. 11:13:44 [EnvInject] - Injecting as environment variables the properties content 11:13:44 CVS_RSH=C:\Program Files (x86)\CVS Suite\CVSNT\extnt.exe 11:13:44 CVS_SERVER=C:\Program Files (x86)\CVS Suite\CVSNT\cvs.exe 11:13:44 11:13:44 [EnvInject] - Variables injected successfully. 11:13:44 [EnvInject] - Injecting contributions. 11:13:44 Building in workspace E:\Work\Jenkins 11:13:44 cvs checkout -P -N -r <mybranch> <mymodule> 11:13:44 ERROR: CVS Authentication failed: null 11:13:44 org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed. 11:13:44 at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141) 11:13:44 at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374) 11:13:44 at java.lang.Thread.run(Unknown Source) 11:13:44 Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\mccabe\.ssh\id_rsa (The system cannot find the path specified) 11:13:44 at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:98) 11:13:44 at com.jcraft.jsch.JSch.addIdentity(JSch.java:224) 11:13:44 at com.jcraft.jsch.JSch.addIdentity(JSch.java:218) 11:13:44 at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135) 11:13:44 ... 2 more 11:13:44 Caused by: java.io.FileNotFoundException: C:\Users\mccabe\.ssh\id_rsa (The system cannot find the path specified) 11:13:44 at java.io.FileInputStream.open(Native Method) 11:13:44 at java.io.FileInputStream.<init>(Unknown Source) 11:13:44 at java.io.FileInputStream.<init>(Unknown Source) 11:13:44 at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83) 11:13:44 ... 5 more 11:13:44 ERROR: Cvs task failed 11:13:44 Finished: FAILURE
    via by John McCabe,
  • I am getting CVS authentication problem while doing cvs checkout through slave. below is the error : Started by user CC Manager Building remotely on Devil5 in workspace /home/tuxdev12/workspace/VFTOMCAT-Tuxedo Using locally configured password for connection to :ext:vvaid@adeebkbs:/sharedcc/cvs/vftom2 cvs checkout -D 05 Sep 2014 10:07:52 +0200 -d vf_tomcat vf_tomcat 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:619) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /devusers/mn/csm/ngupta4/.ssh/id_rsa (No such file or directory) 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: /devusers/mn/csm/ngupta4/.ssh/id_rsa (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) 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 if i do the same through master it gets successful. After having several different combinations, resolution is that slave failed to set CVSROOT with ext option due to which it through error.
    via by Aditya Chamoli,
  • 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.
    via by Thomas Schweikle,
  • We have recently moved to using SSPI authentication on our CVS (CVSNT) system and now don't seem to be able to use the Jenkins CVS Plug-In to checkout our code. I've tried a rather large number of options to try to get this to work but nothing I do seems to change that fact that the plug-in appears to only attempt to use the internal ssh mechanism using public/private key authentication when a CVSROOT of the form :ext:<user>@<server>:/<repository>. The output is always something like I've added below. I'm aware that Jenkins uses the Netbeans JavaCVS client so I tried installing Netbeans to see how to get that to do the job. In the Netbeans CVS checkout there is an option to either use the Internal SSH, or use an External Shell. In the external shell box I was able to put: C:\Program Files (x86)\CVS Suite\CVSNT\extnt.exe <server> And it worked from that point. As you can see below I've tried adding CVS_RSH and CVS_SERVER environment variables to try to force this but it appears to have no effect. (Note that I've also tried CVS_EXE instead of CVS_SERVER, and the same without the underscore as the details on the internet are a bit inconsistent). I've set this to Major as it's quite important for us to be able to continue to use the CVS Plugin because of the integration to the change reporting on Jenkins. We can get round it using alternative methods, e.g. Ant task, Python script or whatever (hence the reason I haven't made this a Blocker) but that loses a lot of the benefit of Jenkins' built-in functionality. ========= Console Output ============ 11:13:44 Started by user McCabe, John 11:13:44 [EnvInject] - Loading node environment variables. 11:13:44 [EnvInject] - Preparing an environment for the build. 11:13:44 [EnvInject] - Keeping Jenkins system variables. 11:13:44 [EnvInject] - Keeping Jenkins build variables. 11:13:44 [EnvInject] - Injecting as environment variables the properties content 11:13:44 CVS_RSH=C:\Program Files (x86)\CVS Suite\CVSNT\extnt.exe 11:13:44 CVS_SERVER=C:\Program Files (x86)\CVS Suite\CVSNT\cvs.exe 11:13:44 11:13:44 [EnvInject] - Variables injected successfully. 11:13:44 [EnvInject] - Injecting contributions. 11:13:44 Building in workspace E:\Work\Jenkins 11:13:44 cvs checkout -P -N -r <mybranch> <mymodule> 11:13:44 ERROR: CVS Authentication failed: null 11:13:44 org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed. 11:13:44 at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141) 11:13:44 at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374) 11:13:44 at java.lang.Thread.run(Unknown Source) 11:13:44 Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\mccabe\.ssh\id_rsa (The system cannot find the path specified) 11:13:44 at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:98) 11:13:44 at com.jcraft.jsch.JSch.addIdentity(JSch.java:224) 11:13:44 at com.jcraft.jsch.JSch.addIdentity(JSch.java:218) 11:13:44 at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135) 11:13:44 ... 2 more 11:13:44 Caused by: java.io.FileNotFoundException: C:\Users\mccabe\.ssh\id_rsa (The system cannot find the path specified) 11:13:44 at java.io.FileInputStream.open(Native Method) 11:13:44 at java.io.FileInputStream.<init>(Unknown Source) 11:13:44 at java.io.FileInputStream.<init>(Unknown Source) 11:13:44 at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83) 11:13:44 ... 5 more 11:13:44 ERROR: Cvs task failed 11:13:44 Finished: FAILURE
    via by John McCabe,
  • CVS Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
    • 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(Unknown Source) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Windows\System32\config\systemprofile\ssh\id_rsa (The system cannot find the path specified) 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: C:\Windows\System32\config\systemprofile\ssh\id_rsa (The system cannot find the path specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at com.jcraft.jsch.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 6 more

    Users with the same issue

    jstrayerjstrayer
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    187 more bugmates