Errors from log, occurs from time to time:

      Nov 26, 2013 4:31:58 PM hudson.remoting.Channel$2 handle
      SEVERE: Failed to execute command Pipe.EOF(49) (channel qa3)
      java.lang.NullPointerException
              at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177)
              at hudson.remoting.Channel$2.handle(Channel.java:461)
              at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
      Nov 26, 2013 4:31:58 PM hudson.remoting.Channel$2 handle
      SEVERE: This command is created here
      Command Pipe.EOF(49) created at
              at hudson.remoting.Command.<init>(Command.java:67)
              at hudson.remoting.Command.<init>(Command.java:50)
              at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169)
              at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124)
              at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132)
              at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
              at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
              at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
              at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:190)
      

          [JENKINS-20769] Failed to execute command Pipe.EOF

          Roman Prots' created issue -

          Noticing the same here (Jenkins v1.541, using swarm plugin):

          Dec 09, 2013 4:09:54 PM SEVERE hudson.remoting.Channel$2 handle

          Failed to execute command Pipe.EOF(2053) (channel selenium-client1)
          java.lang.NullPointerException
          at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177)
          at hudson.remoting.Channel$2.handle(Channel.java:461)
          at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)

          Dec 09, 2013 4:09:54 PM SEVERE hudson.remoting.Channel$2 handle

          This command is created here
          Command Pipe.EOF(2053) created at
          at hudson.remoting.Command.(Command.java:62)
          at hudson.remoting.Command.(Command.java:47)
          at hudson.remoting.ProxyWriter$EOF.(ProxyWriter.java:169)
          at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124)
          at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132)
          at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
          at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
          at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
          at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

          Michael Prokop added a comment - Noticing the same here (Jenkins v1.541, using swarm plugin): Dec 09, 2013 4:09:54 PM SEVERE hudson.remoting.Channel$2 handle Failed to execute command Pipe.EOF(2053) (channel selenium-client1) java.lang.NullPointerException at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177) at hudson.remoting.Channel$2.handle(Channel.java:461) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Dec 09, 2013 4:09:54 PM SEVERE hudson.remoting.Channel$2 handle This command is created here Command Pipe.EOF(2053) created at at hudson.remoting.Command.(Command.java:62) at hudson.remoting.Command.(Command.java:47) at hudson.remoting.ProxyWriter$EOF.(ProxyWriter.java:169) at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124) at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
          Jesse Glick made changes -
          Labels New: remoting

          Jesse Glick added a comment -

          I committed https://github.com/jenkinsci/remoting/commit/622af099d6b94569c873b8fcd2d1bc65860a8cc6 but am not sure of the root cause here. Possibly a race condition while trying to shut down a remoting channel.

          Jesse Glick added a comment - I committed https://github.com/jenkinsci/remoting/commit/622af099d6b94569c873b8fcd2d1bc65860a8cc6 but am not sure of the root cause here. Possibly a race condition while trying to shut down a remoting channel.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/remoting/ProxyInputStream.java
          src/main/java/hudson/remoting/ProxyOutputStream.java
          http://jenkins-ci.org/commit/remoting/eb3a4c380e695580174ce381a8330e8e2b8a9b2e
          Log:
          JENKINS-20769 Trying to fix/suppress some related observed or actual NPEs.
          java.lang.NullPointerException
          at hudson.remoting.ProxyOutputStream$Flush$1.run(ProxyOutputStream.java:305)
          at hudson.remoting.PipeWriter$1.run(PipeWriter.java:158)
          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 hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/remoting/ProxyInputStream.java src/main/java/hudson/remoting/ProxyOutputStream.java http://jenkins-ci.org/commit/remoting/eb3a4c380e695580174ce381a8330e8e2b8a9b2e Log: JENKINS-20769 Trying to fix/suppress some related observed or actual NPEs. java.lang.NullPointerException at hudson.remoting.ProxyOutputStream$Flush$1.run(ProxyOutputStream.java:305) at hudson.remoting.PipeWriter$1.run(PipeWriter.java:158) 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 hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111)

          Arnaud Héritier added a comment - - edited

          I have it also with 1.532.1 and 1.532.2-SNAPSHOT (rc-01/13/2014 23:54 GMT-kohsuke)

          Arnaud Héritier added a comment - - edited I have it also with 1.532.1 and 1.532.2-SNAPSHOT (rc-01/13/2014 23:54 GMT-kohsuke)

          I'm also seeing this in 1.549:

          Feb 4, 2014 9:10:08 AM com.cloudbees.jenkins.GitHubPushTrigger$1 run
          INFO: SCM changes detected in xwiki-platform. Triggering  #4954
          Feb 4, 2014 9:10:28 AM hudson.remoting.Channel$2 handle
          SEVERE: Failed to execute command Pipe.EOF(9) (channel agent-2-2)
          java.lang.NullPointerException
                  at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177)
                  at hudson.remoting.Channel$2.handle(Channel.java:461)
                  at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)Feb 4, 2014 9:10:28 AM hudson.remoting.Channel$2 handle
          SEVERE: This command is created here
          Command Pipe.EOF(9) created at        at hudson.remoting.Command.<init>(Command.java:67)
                  at hudson.remoting.Command.<init>(Command.java:50)
                  at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169)        at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124)
                  at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132)
                  at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
                  at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
                  at java.lang.ref.Finalizer.access$100(Finalizer.java:14)        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:172)
          Feb 4, 2014 9:10:31 AM hudson.remoting.Channel$2 handle
          SEVERE: Failed to execute command Pipe.EOF(9) (channel agent-2-3)
          java.lang.NullPointerException
                  at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177)
                  at hudson.remoting.Channel$2.handle(Channel.java:461)
                  at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
          Feb 4, 2014 9:10:31 AM hudson.remoting.Channel$2 handle
          SEVERE: This command is created here
          Command Pipe.EOF(9) created at
                  at hudson.remoting.Command.<init>(Command.java:67)
                  at hudson.remoting.Command.<init>(Command.java:50)
                  at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169)
                  at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124)
                  at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132)
                  at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
                  at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
                  at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
          ...
          

          Is it a problem? What can I do?

          Vincent Massol added a comment - I'm also seeing this in 1.549: Feb 4, 2014 9:10:08 AM com.cloudbees.jenkins.GitHubPushTrigger$1 run INFO: SCM changes detected in xwiki-platform. Triggering #4954 Feb 4, 2014 9:10:28 AM hudson.remoting.Channel$2 handle SEVERE: Failed to execute command Pipe.EOF(9) (channel agent-2-2) java.lang.NullPointerException at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177) at hudson.remoting.Channel$2.handle(Channel.java:461) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)Feb 4, 2014 9:10:28 AM hudson.remoting.Channel$2 handle SEVERE: This command is created here Command Pipe.EOF(9) created at at hudson.remoting.Command.<init>(Command.java:67) at hudson.remoting.Command.<init>(Command.java:50) at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169) at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124) at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:172) Feb 4, 2014 9:10:31 AM hudson.remoting.Channel$2 handle SEVERE: Failed to execute command Pipe.EOF(9) (channel agent-2-3) java.lang.NullPointerException at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177) at hudson.remoting.Channel$2.handle(Channel.java:461) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Feb 4, 2014 9:10:31 AM hudson.remoting.Channel$2 handle SEVERE: This command is created here Command Pipe.EOF(9) created at at hudson.remoting.Command.<init>(Command.java:67) at hudson.remoting.Command.<init>(Command.java:50) at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169) at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124) at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) ... Is it a problem? What can I do?

          mike bayer added a comment -

          I've recently upgraded from fedora 14 to fedora 20 and am suddenly getting this one quite often. for me it seems to occur after it provisioned a new EC2 node.

          Mar 04, 2014 8:03:49 AM hudson.slaves.NodeProvisioner update
          INFO: pg, mysql, etc (ami-d53f32bc) provisioningE successfully completed. We have now 2 computer(s)
          Mar 04, 2014 8:04:09 AM hudson.remoting.Channel$2 handle
          SEVERE: Failed to execute command Pipe.EOF(10) (channel pg, mysql, etc (i-e5638cc6))
          java.lang.NullPointerException
          	at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177)
          	at hudson.remoting.Channel$2.handle(Channel.java:461)
          	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
          
          

          mike bayer added a comment - I've recently upgraded from fedora 14 to fedora 20 and am suddenly getting this one quite often. for me it seems to occur after it provisioned a new EC2 node. Mar 04, 2014 8:03:49 AM hudson.slaves.NodeProvisioner update INFO: pg, mysql, etc (ami-d53f32bc) provisioningE successfully completed. We have now 2 computer(s) Mar 04, 2014 8:04:09 AM hudson.remoting.Channel$2 handle SEVERE: Failed to execute command Pipe.EOF(10) (channel pg, mysql, etc (i-e5638cc6)) java.lang.NullPointerException at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177) at hudson.remoting.Channel$2.handle(Channel.java:461) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)

          Sam Gleske added a comment - - edited

          I have this issue though I may be able to provide a more reliable repeatable method. My setup is as follows.

          -> Jenkins running in JBoss as jboss system user (RHEL 6.5) - jboss-eap-5.1.2 - Jenkins ver. 1.532.2
            -> slave.jar running on RHEL6.5 slave as jenkins system user which is started via SSH keys.
          -> Eclipse Standard 4.3.2 - eclipse-standard-kepler-SR2-win32-x86_64
            -> Tried Mylyn build connector for Jenkins using both latest or weekly
            -> Execute a build from the Builds view.
          

          When I run a build a couple of times every once in a while the JBoss server will crash completely. Here's the log output.

          13:34:33,581 SEVERE [Channel] Failed to execute command Pipe.EOF(22) (channel <host omitted>)
          java.lang.NullPointerException
                  at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177)
                  at hudson.remoting.Channel$2.handle(Channel.java:461)
                  at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
          13:34:33,581 SEVERE [Channel] This command is created here
          Command Pipe.EOF(22) created at
                  at hudson.remoting.Command.<init>(Command.java:67)
                  at hudson.remoting.Command.<init>(Command.java:50)
                  at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169)
                  at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124)
                  at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132)
                  at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
                  at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
                  at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
                  at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
          13:36:39,627 INFO  [Run] Coeus-Local #31 main build action completed: SUCCESS
          /app/jboss/bin/run.sh: line 284: 20872 Killed                  "/app/java/bin/java" -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs="/app/jboss/lib/endorsed" -classpath "/app/jboss/bin/run.jar:/app/java/lib/tools.jar" org.jboss.Main -c jenkins-ci -b <interface omitted>
          

          In Eclipse, I get errors like the following. The Eclipse error happens every time but the Jenkins/JBoss crash doesn't always happen.

          Message:
          Unexpected error: Unexpected response from Hudson server for '/jenkins/job/Coeus-Local/build': Created
          
          Exception Stack Trace:
          org.eclipse.mylyn.internal.hudson.core.client.HudsonException: Unexpected response from Hudson server for '/jenkins/job/Coeus-Local/build': Created
          	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.validate(HudsonOperation.java:235)
          	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.doValidate(RestfulHudsonClient.java:359)
          	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.processAndRelease(HudsonOperation.java:220)
          	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.execute(RestfulHudsonClient.java:353)
          	at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:167)
          	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient.runBuild(RestfulHudsonClient.java:361)
          	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(HudsonServerBehaviour.java:791)
          	at org.eclipse.mylyn.builds.internal.core.operations.RunBuildOperation$1.doExecute(RunBuildOperation.java:55)
          	at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79)
          	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
          
          Session Data:
          eclipse.buildId=4.3.2.M20140221-1700
          java.version=1.7.0_45
          java.vendor=Oracle Corporation
          BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
          Framework arguments:  -product org.eclipse.epp.package.standard.product
          Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product
          

          I don't know what the plugin is doing over the API to cause this but since it works sometimes but not others I would agree it is likely a race condition.

          Sam Gleske added a comment - - edited I have this issue though I may be able to provide a more reliable repeatable method. My setup is as follows. -> Jenkins running in JBoss as jboss system user (RHEL 6.5) - jboss-eap-5.1.2 - Jenkins ver. 1.532.2 -> slave.jar running on RHEL6.5 slave as jenkins system user which is started via SSH keys. -> Eclipse Standard 4.3.2 - eclipse-standard-kepler-SR2-win32-x86_64 -> Tried Mylyn build connector for Jenkins using both latest or weekly -> Execute a build from the Builds view. When I run a build a couple of times every once in a while the JBoss server will crash completely. Here's the log output. 13:34:33,581 SEVERE [Channel] Failed to execute command Pipe.EOF(22) (channel <host omitted>) java.lang.NullPointerException at hudson.remoting.ProxyWriter$EOF.execute(ProxyWriter.java:177) at hudson.remoting.Channel$2.handle(Channel.java:461) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) 13:34:33,581 SEVERE [Channel] This command is created here Command Pipe.EOF(22) created at at hudson.remoting.Command.<init>(Command.java:67) at hudson.remoting.Command.<init>(Command.java:50) at hudson.remoting.ProxyWriter$EOF.<init>(ProxyWriter.java:169) at hudson.remoting.ProxyWriter.close(ProxyWriter.java:124) at hudson.remoting.ProxyWriter.finalize(ProxyWriter.java:132) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) 13:36:39,627 INFO [Run] Coeus-Local #31 main build action completed: SUCCESS /app/jboss/bin/run.sh: line 284: 20872 Killed "/app/java/bin/java" -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning= true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang. ClassLoader .allowArraySyntax= true -Djava.awt.headless= true -Djava.net.preferIPv4Stack= true -Djava.endorsed.dirs= "/app/jboss/lib/endorsed" -classpath "/app/jboss/bin/run.jar:/app/java/lib/tools.jar" org.jboss.Main -c jenkins-ci -b < interface omitted> In Eclipse, I get errors like the following. The Eclipse error happens every time but the Jenkins/JBoss crash doesn't always happen. Message: Unexpected error: Unexpected response from Hudson server for '/jenkins/job/Coeus-Local/build' : Created Exception Stack Trace: org.eclipse.mylyn.internal.hudson.core.client.HudsonException: Unexpected response from Hudson server for '/jenkins/job/Coeus-Local/build' : Created at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.validate(HudsonOperation.java:235) at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.doValidate(RestfulHudsonClient.java:359) at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.processAndRelease(HudsonOperation.java:220) at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.execute(RestfulHudsonClient.java:353) at org.eclipse.mylyn.internal.hudson.core.client.HudsonOperation.run(HudsonOperation.java:167) at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient.runBuild(RestfulHudsonClient.java:361) at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(HudsonServerBehaviour.java:791) at org.eclipse.mylyn.builds.internal.core.operations.RunBuildOperation$1.doExecute(RunBuildOperation.java:55) at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Session Data: eclipse.buildId=4.3.2.M20140221-1700 java.version=1.7.0_45 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp. package .standard.product Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp. package .standard.product I don't know what the plugin is doing over the API to cause this but since it works sometimes but not others I would agree it is likely a race condition.

          Sam Gleske added a comment -

          Regarding my previous comment. It was not because of a race condition. It was due to my VM being out of memory. I increased the VM memory from 2GB -> 16GB and it was resolved.

          Sam Gleske added a comment - Regarding my previous comment. It was not because of a race condition. It was due to my VM being out of memory. I increased the VM memory from 2GB -> 16GB and it was resolved.

            kohsuke Kohsuke Kawaguchi
            rprots Roman Prots'
            Votes:
            8 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved: