com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory)

Jenkins JIRA | Marcus Better | 6 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 installing the plugin, but before configuring the correct SSH key, the plugin tried to read a non-existing key and spammed the server log with the following several times per second: {code} ALLVARLIG: IOException: com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:77) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.connect(GerritHandler.java:234) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.run(GerritHandler.java:160) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:98) at com.jcraft.jsch.JSch.addIdentity(JSch.java:206) at com.jcraft.jsch.JSch.addIdentity(JSch.java:200) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:69) ... 2 more Caused by: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:137) at java.io.FileInputStream.<init>(FileInputStream.java:96) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83) ... 5 more {code} It should just give up if the key is not found. After configuring the key, but with no Gerrit instance running, the log is spammed with this instead, also several times per second: {code} 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:49 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:49 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit {code}

    Jenkins JIRA | 6 years ago | Marcus Better
    com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory)
  2. 0

    After installing the plugin, but before configuring the correct SSH key, the plugin tried to read a non-existing key and spammed the server log with the following several times per second: {code} ALLVARLIG: IOException: com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:77) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.connect(GerritHandler.java:234) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.run(GerritHandler.java:160) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:98) at com.jcraft.jsch.JSch.addIdentity(JSch.java:206) at com.jcraft.jsch.JSch.addIdentity(JSch.java:200) at com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:69) ... 2 more Caused by: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:137) at java.io.FileInputStream.<init>(FileInputStream.java:96) at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83) ... 5 more {code} It should just give up if the key is not found. After configuring the key, but with no Gerrit instance running, the log is spammed with this instead, also several times per second: {code} 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:48 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:49 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit 2011-sep-12 15:16:49 com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler run INFO: Ready to receive data from Gerrit {code}

    Jenkins JIRA | 6 years ago | Marcus Better
    com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/marcus/.ssh/id_rsa (No such file or directory)
  3. 0

    Adding ssh keyfile in gerrit trigger giving error on linux

    Google Groups | 4 years ago | mani chandel
    com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /home/mani/.ssh/id_rsa (Permission denied)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    can't find ebs.pem file

    GitHub | 4 years ago | yegor256
    com.netbout.inf.index.EbsVolume: #path(): failed with java.io.IOException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: file:/opt/tomcat7/webapps/ROOT/WEB-INF/lib/netbout-inf-2.0-SNAPSHOT.jar!/com/netbout/inf/index/ebs.pem (No such file or directory)
  6. 0

    Uploader fails to read windows style path

    GitHub | 2 years ago | krissrex
    com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:UsersJørgenDesktopScreenCapture tnu_rsa (The filename, directory name, or volume label syntax is incorrect)

  1. jstrayer 2 times, last 4 months ago
  2. Handemelindo 3 times, last 5 days ago
  3. jf-ast 1 times, last 1 week ago
  4. Casper 1 times, last 4 weeks ago
  5. Dunmer 8 times, last 4 weeks ago
57 more registered users
38 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/marcus/.ssh/id_rsa (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:137)
    3. java.io.FileInputStream.<init>(FileInputStream.java:96)
    3 frames
  3. JSch
    JSch.addIdentity
    1. com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:83)
    2. com.jcraft.jsch.JSch.addIdentity(JSch.java:206)
    3. com.jcraft.jsch.JSch.addIdentity(JSch.java:200)
    3 frames
  4. com.sonyericsson.hudson
    GerritHandler.run
    1. com.sonyericsson.hudson.plugins.gerrit.gerritevents.ssh.SshConnection.<init>(SshConnection.java:69)
    2. com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.connect(GerritHandler.java:234)
    3. com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritHandler.run(GerritHandler.java:160)
    3 frames