com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (No such file or directory)

Jenkins JIRA | Will Saxon | 10 months ago
  1. 0

    I changed the Gerrit hostname and path of the SSH private key and noted successful connection when clicking the 'Test Connection' button. However, after saving the new configuration, jenkins.log started to get spammed (see below). I was able to add a new server entry and remove the old one to work around this. I assume that if I restarted Jenkins the new configuration would have been used. {quote}Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: Could not connect to Gerrit server! Host: <old_hostname> Port: 22 Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: Proxy: Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: User: <old user> KeyFile: <old key file> Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: IOException: com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (No such file or directory) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.connect(SshConnectionImpl.java:181) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionFactory.getConnection(SshConnectionFactory.java:98) at com.sonymobile.tools.gerrit.gerritevents.GerritConnection.connect(GerritConnection.java:380) at com.sonymobile.tools.gerrit.gerritevents.GerritConnection.run(GerritConnection.java:306) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (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 com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.connect(SshConnectionImpl.java:149) ... 3 more Caused by: java.io.FileNotFoundException: <old key file> (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at com.jcraft.jsch.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 7 more{quote}

    Jenkins JIRA | 10 months ago | Will Saxon
    com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (No such file or directory)
  2. 0

    I changed the Gerrit hostname and path of the SSH private key and noted successful connection when clicking the 'Test Connection' button. However, after saving the new configuration, jenkins.log started to get spammed (see below). I was able to add a new server entry and remove the old one to work around this. I assume that if I restarted Jenkins the new configuration would have been used. {quote}Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: Could not connect to Gerrit server! Host: <old_hostname> Port: 22 Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: Proxy: Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: User: <old user> KeyFile: <old key file> Feb 20, 2016 8:42:51 PM com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect SEVERE: IOException: com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (No such file or directory) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.connect(SshConnectionImpl.java:181) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionFactory.getConnection(SshConnectionFactory.java:98) at com.sonymobile.tools.gerrit.gerritevents.GerritConnection.connect(GerritConnection.java:380) at com.sonymobile.tools.gerrit.gerritevents.GerritConnection.run(GerritConnection.java:306) Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (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 com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.connect(SshConnectionImpl.java:149) ... 3 more Caused by: java.io.FileNotFoundException: <old key file> (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:101) at com.jcraft.jsch.Util.fromFile(Util.java:492) at com.jcraft.jsch.KeyPair.load(KeyPair.java:521) ... 7 more{quote}

    Jenkins JIRA | 10 months ago | Will Saxon
    com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (No such file or directory)
  3. 0

    [JENKINS-33059] Changing Gerrit trigger configuration requires restart of Jenkins - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: <old key file> (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ICS: missing file errorfile.jpg

    GitHub | 2 years ago | henning-gerhardt
    java.io.FileNotFoundException: /var/lib/tomcat7/webapps/goobi/WEB-INF/classes/errorfile.jpg (No such file or directory)
  6. 0

    "lein trampoline run" on Windows 7 produces "Error: Could not find or load main class clojure.main"

    GitHub | 3 years ago | ivanbulanov
    java.io.FileNotFoundException: C:\Users\*GARBLED HOMEDIR NAME*\AppData\Local\Temp\form-init128288074140112765.clj

  1. r1chjames 1 times, last 5 days ago
  2. richard77 1 times, last 2 weeks ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 3 weeks ago
45 more registered users
50 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

    <old key file> (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:146)
    3. java.io.FileInputStream.<init>(FileInputStream.java:101)
    3 frames
  3. JSch
    KeyPair.load
    1. com.jcraft.jsch.Util.fromFile(Util.java:492)
    2. com.jcraft.jsch.KeyPair.load(KeyPair.java:521)
    2 frames