Skip to content

Tunnel termination hanging when using Jenkins with ECS slaves #41

@justinbarry

Description

@justinbarry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions