"SEVERE: Error while pumping stream. java.io.IOException: Pipe broken" errors when I building a job including shell script in Kubernetes with the Kubernetes plugin

125 views
Skip to first unread message

李立

unread,
Jun 6, 2017, 11:31:43 AM6/6/17
to Jenkins Developers
We have Jenkins running in Kubernetes with the Kubernetes plugin, and have been experiencing some exceptions when building job which includes shell script .


The following is exceptions infomation. And every shell command causes a exception, for example, my job execute 10 times shell command and throw 10 exceptions infomation as follow.

Jun 06, 2017 9:45:33 PM io.fabric8.kubernetes.client.utils.InputStreamPumper run
SEVERE: Error while pumping stream.
java.io.IOException: Pipe broken
at java.io.PipedInputStream.read(PipedInputStream.java:321)
at java.io.PipedInputStream.read(PipedInputStream.java:377)
at java.io.InputStream.read(InputStream.java:101)
at io.fabric8.kubernetes.client.utils.InputStreamPumper.run(InputStreamPumper.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

We're using the following pipeline:

podTemplate(label: 'test_pipeline_execute_time_1', containers: [containerTemplate(name: 'ubuntu', image: 'ubuntu', ttyEnabled: true,command: 'cat')]) 
{
  node('test_pipeline_execute_time_1'){
 container('ubuntu') { 
      for(int i=0;i<10;i++)
{
     sh 'ls '
}
}}}

Carlos Sanchez

unread,
Jun 6, 2017, 11:38:10 AM6/6/17
to Jenkins Developers
Yes, there are some issues with the container() step that I'm trying to fix as part of https://issues.jenkins-ci.org/browse/JENKINS-42048
I don't recommend using container() until the next release

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e12fd96e-dd85-43e6-8911-a18bb87c8074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

李立

unread,
Jun 7, 2017, 3:12:55 AM6/7/17
to Jenkins Developers
OK, Thanks you very much ! I will try to fix it too.

在 2017年6月6日星期二 UTC+8下午11:38:10,Carlos Sanchez写道:
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages