Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70475

Jenkins fails to launch slave agent via SSH if "Notify on online" is turned on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • mail-watcher-plugin
    • None
    • Jenkins: 2.332.4
      Mailer Plugin: Version435.438.v5b_81173f5b_a_1

      It is enougth to set email in "Notify on online" field and agent fails to start with error.

      Jenkins: 2.332.4

      Mail Watcher: 1.16

       Mailer Plugin: Version435.438.v5b_81173f5b_a_1

      <===[JENKINS REMOTING CAPACITY]===>channel started
      Remoting version: 4.13
      This is a Unix agent
      Evacuated stdout
      ERROR: 'javax.mail.Session hudson.tasks.Mailer$DescriptorImpl.createSession()'
      java.lang.NoSuchMethodError: 'javax.mail.Session hudson.tasks.Mailer$DescriptorImpl.createSession()'
      	at org.jenkinsci.plugins.mailwatcher.MailWatcherMailer.send(MailWatcherMailer.java:116)
      	at org.jenkinsci.plugins.mailwatcher.MailWatcherNotification.send(MailWatcherNotification.java:156)
      	at org.jenkinsci.plugins.mailwatcher.WatcherComputerListener$Notification$Builder.send(WatcherComputerListener.java:181)
      	at org.jenkinsci.plugins.mailwatcher.WatcherComputerListener.onOnline(WatcherComputerListener.java:101)
      	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:727)
      	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:437)
      	at hudson.plugins.sshslaves.SSHLauncher.startAgent(SSHLauncher.java:641)
      	at hudson.plugins.sshslaves.SSHLauncher.lambda$launch$0(SSHLauncher.java:458)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      [01/23/23 10:29:24] Launch failed - cleaning up connection
      [01/23/23 10:29:24] [SSH] Connection closed.
      ERROR: Connection terminated
      java.io.EOFException
      	at java.base/java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2905)
      	at java.base/java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3400)
      	at java.base/java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:936)
      	at java.base/java.io.ObjectInputStream.<init>(ObjectInputStream.java:379)
      	at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:49)
      	at hudson.remoting.Command.readFrom(Command.java:142)
      	at hudson.remoting.Command.readFrom(Command.java:128)
      	at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:35)
      	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:61)
      Caused: java.io.IOException: Unexpected termination of the channel
      	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:75)

            alecharp Adrien Lecharpentier
            vurda Iurii Mark
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: