Getting broken pipe error on github runner, but not on unmodified self hosted aws ec2 #165389
-
Why are you starting this discussion?Bug What GitHub Actions topic or product is this about?Actions Runner Discussion DetailsWhen running a job on ubuntu-latest (or 24 or 22) we get an error on every step (but continues to run until it hangs on cargo build step). While running same job finishes without any errors on self-hosted unmodified runner using aws t2.medium ec2. The job runs molecule which creates another server and runs tests on that other server. Tried extending ConnectTimeout as you can see and ControlPersist, but that didn't help. Any idea why github runner errors and hangs on cargo build like this, but normal t2.medium aws ec2 works? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Disable SSH multiplexing in your Ansible/Molecule configuration: ansible_ssh_args: -o ControlMaster=no -o ControlPersist=no Increase timeouts more aggressively: ansible_ssh_args: -o ConnectTimeout=60 -o ServerAliveInterval=60 -o ServerAliveCountMax=10 Try using the paramiko connection plugin instead of OpenSSH: Additional Debugging Steps: |
Beta Was this translation helpful? Give feedback.
-
|
thanks! Will try to narrow down which option exactly helps, but it worked. |
Beta Was this translation helpful? Give feedback.
-
|
So adding the following to the provisioner section of molecule.yml helped solve the issue. ConnectTimeout helped fix the broken pipe error, however ServerAliveInterval helped fix the hanging of the cargo build step in molecule. Thanks again! |
Beta Was this translation helpful? Give feedback.
Disable SSH multiplexing in your Ansible/Molecule configuration:
yaml
ansible_ssh_args: -o ControlMaster=no -o ControlPersist=no
Increase timeouts more aggressively:
yaml
ansible_ssh_args: -o ConnectTimeout=60 -o ServerAliveInterval=60 -o ServerAliveCountMax=10
Try using the paramiko connection plugin instead of OpenSSH:
yaml
Additional Debugging Steps: