Long running install task sometimes fails with ssh broken pipe issue

28 views
Skip to first unread message

Deepa Yr

unread,
Nov 2, 2016, 7:32:47 AM11/2/16
to Ansible Project
Hi

        I have a task which installs my product. Installation takes couple of hours to complete. Sometimes the task completes fine. Sometimes it fails with broken pipe issue.

  {"failed": true, "msg": "SSH encountered an unknown error. The output was:\nOpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 56: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\nmux_client_hello_exchange: write packet: Broken pipe\r\n"}


Anyone has suggestions to resolve this intermittent issue ?


Thanks

Deepa

Kai Stian Olstad

unread,
Nov 2, 2016, 9:11:05 AM11/2/16
to ansible...@googlegroups.com
To me it looks like your ssh connection died, you could try setting
ServerAliveInterval 60 in you ssh_config.

I use that in my configuration to prevent firewalls to drop the session.

--
Kai Stian Olstad

prathyush r

unread,
Nov 2, 2016, 11:53:02 AM11/2/16
to Ansible Project
HI ,

Please check if you have any firewall or selinux enabled on the target
Reply all
Reply to author
Forward
0 new messages