Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hanging in pipe friendliness code on Bamboo CI machines #94

Open
kingfai opened this issue Nov 16, 2018 · 1 comment
Open

Hanging in pipe friendliness code on Bamboo CI machines #94

kingfai opened this issue Nov 16, 2018 · 1 comment

Comments

@kingfai
Copy link

kingfai commented Nov 16, 2018

Hi,

In our Bamboo environment, we are seeing slack ci hang while trying to read from /dev/stdin. I was able to work around this by piping a space into the slack cli command, but was wondering if there is a better solution.

Here are some logs:

16-Nov-2018 00:11:23 + bash -x bin/slack chat send -x -tx 'testing this thing' -ch '#mcore_tools_basement'
16-Nov-2018 00:11:23 +++ dirname bin/slack
16-Nov-2018 00:11:23 ++ cd bin
16-Nov-2018 00:11:23 ++ pwd
16-Nov-2018 00:11:23 + bindir=/Users/bambooagent/AgentHome/xml-data/build-dir/MTS-AS0-JOB1/bin
16-Nov-2018 00:11:23 +++ dirname bin/slack
16-Nov-2018 00:11:23 ++ cd bin
16-Nov-2018 00:11:23 ++ pwd
16-Nov-2018 00:11:23 + etcdir=/Users/bambooagent/AgentHome/xml-data/build-dir/MTS-AS0-JOB1/bin
16-Nov-2018 00:11:23 + '[' -n ******** ']'
16-Nov-2018 00:11:23 + token=********
16-Nov-2018 00:11:23 + cmd=chat
16-Nov-2018 00:11:23 + shift
16-Nov-2018 00:11:23 + case "${cmd}${1}" in
16-Nov-2018 00:11:23 + sub=send
16-Nov-2018 00:11:23 + shift
16-Nov-2018 00:11:23 + case "${cmd}${sub}" in
16-Nov-2018 00:11:23 + '[' -p /dev/stdin ']'
16-Nov-2018 00:11:23 ++ cat
16-Nov-2018 00:31:55 Force Stop build feature is enabled for current plan. Either Bamboo has detected the build has hung or it has been manually stopped.
@TJC
Copy link

TJC commented Apr 22, 2024

I ran into this issue six years later.

Thanks for tracking the cause down!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants