java.lang.RuntimeException: CVS authentication failure while running rlog command

Jenkins JIRA | Sandstone | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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}

    Jenkins JIRA | 2 years ago | Sandstone
    java.lang.RuntimeException: CVS authentication failure while running rlog command
  2. 0

    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}

    Jenkins JIRA | 2 years ago | Sandstone
    java.lang.RuntimeException: CVS authentication failure while running rlog command
  3. 0

    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.

    Jenkins JIRA | 2 years ago | Mark Wick
    java.lang.RuntimeException: CVS authentication failure while running rlog command
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Jenkins JIRA | 2 years ago | Mark Wick
    java.lang.RuntimeException: CVS authentication failure while running rlog command
  6. 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.

  1. jstrayer 2 times, last 4 months ago
  2. Casper 7 times, last 3 weeks ago
  3. Eric 2 times, last 3 weeks ago
  4. jf-ast 2 times, last 3 weeks ago
  5. tyson925 1 times, last 4 weeks ago
56 more registered users
39 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

    $HOME/.ssh/id_dsa (No such file or directory)

    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