java.lang.RuntimeException

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.

  • I've set up a Jenkins build job triggered by CVS polling. This is a linux build job, and thus is restricted to run on the linux slave. The CVS authentication type is SSH, and the keys are in '$SSH_KEY_DIR/id_rsa'. On the master, SSH_KEY_DIR is set to 'C:\jenkins_keys', on the slave SSH_KEY_DIR is set to '/root/.ssh'. Checking the polling log, I see the following error: java.lang.RuntimeException: CVS authentication failure while running rlog command at hudson.scm.AbstractCvs.executeRlog(AbstractCvs.java:701) at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:657) at hudson.scm.AbstractCvs.calculateRepositoryState(AbstractCvs.java:608) at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:512) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:224) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: 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) ... 1 more Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: $SSH_KEY_DIR\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: $SSH_KEY_DIR\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.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 6 more Based on the backslash in 'java.io.FileNotFoundException: $SSH_KEY_DIR\id_rsa' - it would appear the polling is being run on the master, not the slave, but is not resolving the $SSH_KEY_DIR environment variable correctly.
    via by Mark Wick,
  • I've set up a Jenkins build job triggered by CVS polling. This is a linux build job, and thus is restricted to run on the linux slave. The CVS authentication type is SSH, and the keys are in '$SSH_KEY_DIR/id_rsa'. On the master, SSH_KEY_DIR is set to 'C:\jenkins_keys', on the slave SSH_KEY_DIR is set to '/root/.ssh'. Checking the polling log, I see the following error: java.lang.RuntimeException: CVS authentication failure while running rlog command at hudson.scm.AbstractCvs.executeRlog(AbstractCvs.java:701) at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:657) at hudson.scm.AbstractCvs.calculateRepositoryState(AbstractCvs.java:608) at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:512) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:224) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: 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) ... 1 more Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: $SSH_KEY_DIR\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: $SSH_KEY_DIR\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.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 6 more Based on the backslash in 'java.io.FileNotFoundException: $SSH_KEY_DIR\id_rsa' - it would appear the polling is being run on the master, not the slave, but is not resolving the $SSH_KEY_DIR environment variable correctly.
    via by Mark Wick,
  • After upgrading to CVS Plugin 2.12 (from 1.6), the SCM polling is failing. # CVS checkout/update Works fine with same settings (Both on Master & Slaves) ## CVS Authentication values : Refer to attached screenshot # Only SCM polling is affected and looking at the error it seems the $HOME Variable not expanded (Though CVS checkout works fine) Any help would be greatly appreciated. {code} CVS Polling Log Started on Mar 21, 2015 10:08:00 PM cvs rlog -S -d21 Mar 2015 19:13:12 +1100<21 Mar 2015 22:08:00 +1100 lendfast-core-root ERROR: Failed to record SCM polling for hudson.maven.MavenModuleSet@5b0973cf[lendfast-core-root-HEAD-Build] java.lang.RuntimeException: CVS authentication failure while running rlog command at hudson.scm.AbstractCvs.executeRlog(AbstractCvs.java:704) at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:660) at hudson.scm.AbstractCvs.calculateRepositoryState(AbstractCvs.java:611) at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:515) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:224) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: 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) ... 1 more Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: $HOME/.ssh/id_dsa (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: $HOME/.ssh/id_dsa (No such file or directory) 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 {code}
    via by Sandstone,
  • After upgrading to CVS Plugin 2.12 (from 1.6), the SCM polling is failing. # CVS checkout/update Works fine with same settings (Both on Master & Slaves) ## CVS Authentication values : Refer to attached screenshot # Only SCM polling is affected and looking at the error it seems the $HOME Variable not expanded (Though CVS checkout works fine) Any help would be greatly appreciated. {code} CVS Polling Log Started on Mar 21, 2015 10:08:00 PM cvs rlog -S -d21 Mar 2015 19:13:12 +1100<21 Mar 2015 22:08:00 +1100 lendfast-core-root ERROR: Failed to record SCM polling for hudson.maven.MavenModuleSet@5b0973cf[lendfast-core-root-HEAD-Build] java.lang.RuntimeException: CVS authentication failure while running rlog command at hudson.scm.AbstractCvs.executeRlog(AbstractCvs.java:704) at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:660) at hudson.scm.AbstractCvs.calculateRepositoryState(AbstractCvs.java:611) at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:515) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:224) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: 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) ... 1 more Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: $HOME/.ssh/id_dsa (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: $HOME/.ssh/id_dsa (No such file or directory) 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 {code}
    via by Sandstone,
  • Jenkins users - CVS Authentication failed!
    via by Unknown author,
  • CVS Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • CVS Authentication failed!
    via by Sameh Tawfik,
  • 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,
    • java.lang.RuntimeException: CVS authentication failure while running rlog command at hudson.scm.AbstractCvs.executeRlog(AbstractCvs.java:701) at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:657) at hudson.scm.AbstractCvs.calculateRepositoryState(AbstractCvs.java:608) at hudson.scm.AbstractCvs.compareRemoteRevisionWith(AbstractCvs.java:512) at hudson.scm.CVSSCM.compareRemoteRevisionWith(CVSSCM.java:224) at hudson.scm.SCM.poll(SCM.java:397) at hudson.model.AbstractProject._poll(AbstractProject.java:1446) at hudson.model.AbstractProject.poll(AbstractProject.java:1349) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: 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) ... 1 more Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: $SSH_KEY_DIR\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: $SSH_KEY_DIR\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.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,
    180 more bugmates