Repository navigation
Tunnel termination hanging when using Jenkins with ECS slaves #41
Copy link
Copy link
Open
Description
See process output below:
[root@d72757b430d8 src]# ps -aux
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 1.5 1.0 12961964 331964 ? Ssl 09:38 0:36 java -Duser.home=/home/jenkins -cp /usr/share/jenkins/slave.jar hudson.remoting.jnlp.Main -headless -url http://10.4.1.5 f34bb1a77887fbb790ee7baff1abb643f9344c84d0e16fa0ae48dd67ea11ecfd jenkins-44700c09073e
root 426 0.0 0.0 12892 2768 ? S 09:42 0:00 sh -c echo $$ > '/home/jenkins/workspace/d-outcomes_HO-test-ie-in-cd-6GICDBXOWCXKWVWSICMEHJLKF4MHPTPJDJGILMJQHGBPNGY3VGQQ/jsclient@tmp/durable-f84387dd/pid'; jsc=durable-59651029b78f11e9a37f7b961cbdfc1d; JE
root 428 0.0 0.0 12892 2784 ? S 09:42 0:00 /bin/sh -xe /home/jenkins/workspace/d-outcomes_HO-test-ie-in-cd-6GICDBXOWCXKWVWSICMEHJLKF4MHPTPJDJGILMJQHGBPNGY3VGQQ/jsclient@tmp/durable-f84387dd/script.sh
root 429 0.0 0.1 1063648 49904 ? Sl 09:42 0:00 npm
root 439 0.0 0.0 12896 2800 ? S 09:42 0:00 sh -c set -e && node scripts/local.runner.js -c conf/parallel_local.conf.js -e chrome
root 440 0.0 0.1 1204000 42656 ? Sl 09:42 0:01 node scripts/local.runner.js -c conf/parallel_local.conf.js -e chrome
root 465 0.0 0.0 0 0 ? Zs 09:42 0:00 [BrowserStackLoc] <defunct>
root 487 0.0 0.1 938152 44372 ? Sl 09:43 0:00 /root/.browserstack/BrowserStackLocal --daemon stop --log-file /home/jenkins/workspace/d-outcomes_HO-test-ie-in-cd-6GICDBXOWCXKWVWSICMEHJLKF4MHPTPJDJGILMJQHGBPNGY3VGQQ/jsclient/local.log --key xoWQ57MU6qEkK
root 496 0.0 0.1 906392 42508 ? Sl 09:43 0:02 /root/.browserstack/BrowserStackLocal --daemon stop --log-file /home/jenkins/workspace/d-outcomes_HO-test-ie-in-cd-6GICDBXOWCXKWVWSICMEHJLKF4MHPTPJDJGILMJQHGBPNGY3VGQQ/jsclient/local.log --key xoWQ57MU6qEkK
root 519 0.4 0.0 13028 3076 ? Ss 10:17 0:00 /bin/bash
root 533 0.0 0.0 14904 2268 ? R+ 10:17 0:00 ps -aux
[root@d72757b430d8 src]#
Elastic Container Service](https://aws.amazon.com/ecs/) runs Docker containers leading me to think could be related to #25.
By default Jenkins uses set -xe per the docs . Is this enough to satisfy the intent of the workaround in #25?
Please let me know what further info I can provide to assist in debugging.
Reacted by Anton Petrov, David Scheiner, Slavik and Kiryl Dziamura
Metadata
Metadata
Assignees
Labels
No labels
Activity
xscheiner commentedon Apr 12, 2018
Also experiencing this. We run jenkins in a container with two slave containers. We recently built a local jenkins running on an osx machine with one slave container from the same dockerfile to try and reproduce the problem. We can't and we cannot see what is different. Manually killing the process works and the builds complete.
SlavikCA commentedon Apr 8, 2019
We are having same issue.
More details:
here my config file:
Tests runs fine 1st time,
But on 2nd run, I'm getting:
I found it caused by hanging processes:
If I kill them - tests will run again