Hi Wawrzek, Thanks for your response. I believe my problem may have been caused by SSH connections being silently broken by NAT. I just added "ServerAliveInterval 50" to my ~/.ssh/config file and will see how it works out. Regular SSH connections would sometimes fail with a broken pipe, but of couse that happened because I would type something. Ansible is just waiting for data from the peer, so it won't detect this situation.
Unless I follow up with more information, I think we can consider this solved. -Tore On Monday, November 17, 2014 10:19:50 AM UTC+1, Wawrzek Niewodniczanski wrote: > > I'm checking output of your commands on the phone in the bus so I could > miss something, but it looks like ssh is actually fine. Have you try to > debug on remote host? > > Have you compare ansible with normal ssh? > > Cherers, > Wawrzek > On 11 Nov 2014 12:54, "Tore Olsen" <[email protected] <javascript:>> > wrote: > >> Hello, >> >> I'm having problems with SSH connections hanging seemingly indefinitely. >> I don't recognize any patterns as to what tasks or handlers this happens >> on. I'm running ansible 1.7.1 on OS X Yosemite against a bunch of ec2 >> instances. I also deploy to vagrant but don't think it has had similar SSH >> hangs. >> >> Today I determined to kill -HUP the ssh process that was hung, and then >> ansible resumed happily. >> >> I'd be grateful if anyone has troubleshooting tips for this. >> >> -Tore >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/b7e5e88e-f257-4d67-8f4a-aa3c11cc17de%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/b7e5e88e-f257-4d67-8f4a-aa3c11cc17de%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/871cdad0-3f47-42c0-b5fd-68bb6629af21%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
