# ansible 2.3.2.0 =\> 2.4.0.0 connection problems?

**URL:** <https://forum.ansible.com/t/ansible-2-3-2-0-2-4-0-0-connection-problems/25530>\
**Category:** Ansible Project\
**Created:** [September 19, 2017, 6:26pm UTC](https://forum.ansible.com/t/ansible-2-3-2-0-2-4-0-0-connection-problems/25530 "2017-09-19T18:26:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Purins](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@Erik\_Purins](https://forum.ansible.com/u/Erik_Purins)\
**Post date:** [September 19, 2017, 6:26pm UTC](https://forum.ansible.com/t/ansible-2-3-2-0-2-4-0-0-connection-problems/25530/1 "2017-09-19T18:26:36Z")

</div>

Hi everyone,

Today I made a new ansible virtualenv with 2.4.0.0 and dependencies.  
A task that worked before on 2.3.2.0 is stopping with a new error.

After the task completes ok, the run stops with error:  
“”"  
sending stop: [‘ssh’, ‘-vvv’, ‘-C’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘ConnectTimeout=60’, ‘-o’, ‘ControlPath=/Users/LOCALUSER/.ansible/cp/276d6f8b70’, ‘-O’, ‘stop’, ‘None’]  
ERROR! Cannot reset connection:  
OpenSSH\_7.3p1, OpenSSL 1.0.2k 26 Jan 2017  
debug1: Reading configuration data /Users/LOCALUSER/.ssh/config  
debug1: /Users/LOCALUSER/.ssh/config line 68: Applying options for \*  
debug1: Reading configuration data /opt/local/etc/ssh/ssh\_config  
debug1: auto-mux: Trying existing master  
Control socket connect(/Users/LOCALUSER/.ansible/cp/276d6f8b70): No such file or directory  
“”"

I verified the file doesn’t exist, and the ControlPath parameter for all the tasks that did run previously are using a totally different ControlPath that exists.

Going back to virtualenv with ansible 2.3.2.0 and dependencies works ok.

Is this something others have seen before?

What’s a good way to start debugging / troubleshooting?

-e

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [September 19, 2017, 6:47pm UTC](https://forum.ansible.com/t/ansible-2-3-2-0-2-4-0-0-connection-problems/25530/2 "2017-09-19T18:47:37Z")

</div>

It looks like there may be a bug in the `reset_connection` meta task for the ssh connection plugin.

By the time `reset` is called, it looks like `self.host` is `None`, and as such, ssh is building an incorrect ControlPath.

Please open an issue for this.

---

<div class="post-metadata">

**Author:** ![Erik\_Purins](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@Erik\_Purins](https://forum.ansible.com/u/Erik_Purins)\
**Post date:** [September 19, 2017, 7:49pm UTC](https://forum.ansible.com/t/ansible-2-3-2-0-2-4-0-0-connection-problems/25530/3 "2017-09-19T19:49:59Z")

</div>

Ok Matt,  
Thanks for your advice. I’ll get something posted shortly.  
-e

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [September 19, 2017, 10:06pm UTC](https://forum.ansible.com/t/ansible-2-3-2-0-2-4-0-0-connection-problems/25530/4 "2017-09-19T22:06:03Z")

</div>

Tracking bug here [https://github.com/ansible/ansible/issues/27520](https://github.com/ansible/ansible/issues/27520)
