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

Docker Image Removal Prevents Job Email emission

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a long-running test sequence that runs every night in a Docker image, and sends the build email to a Dev at the end. The Docker image appears to be torn down immediately after the run finishes and there is no apparent means of waiting for the master node to do its final actions like sending the post-build step emails before teardown. The email that triggers other non-Jenkins actions is not sent.

      The only /var/log/jenkins/jenkins.log log entry near the end of the job appears to be unrelated: a GC error of unknown cause:

      Jan 20, 2017 5:27:53 AM hudson.remoting.Channel export
      WARNING: Unable to send GC command
      hudson.remoting.ChannelClosedException: channel is already closed
              at hudson.remoting.Channel.send(Channel.java:578)
              at hudson.remoting.Channel.export(Channel.java:612)
              at hudson.remoting.RemoteClassLoader.export(RemoteClassLoader.java:678)
              at hudson.remoting.UserRequest.<init>(UserRequest.java:69)
              at hudson.remoting.Channel.call(Channel.java:779)
              at hudson.FilePath.act(FilePath.java:979)
              at hudson.FilePath.act(FilePath.java:968)
              at hudson.FilePath.deleteRecursive(FilePath.java:1170)
              at hudson.plugins.ws_cleanup.Wipeout$DisposableImpl.dispose(Wipeout.java:110)
              at org.jenkinsci.plugins.resourcedisposer.AsyncResourceDisposer$WorkItem.run(AsyncResourceDisposer.java:254)
              at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Unexpected termination of the channel
              at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
      Caused by: java.io.EOFException
              at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2351)
              at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2820)
              at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
              at java.io.ObjectInputStream.<init>(ObjectInputStream.java:302)
              at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:48)
              at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
              at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              alt_jmellor John Mellor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: