Error Mitogen was disconnected from the remote environment while a call was in-progress
We running the ansible as a container for our jenkins job and we got this error
[2022-06-21T23:18:06.030Z] fatal: [192.168.32.131]: UNREACHABLE! => {"changed": false, "msg": "Mitogen was disconnected from the remote environment while a call was in-progress. If you feel this is in error, please file a bug. Original error was: the respondent Context has disconnected", "unreachable": true}
- Which version of Ansible are you running? ansible:2.10-alpine-3.13
I got the same message while launching a docker container.
After that the playbook to that node would never complete getting a different error.
failed: [10.109.180.169] (item=docker-registry-default.gsm-test.lab.c-cor.com/gsm/memcached:1.6) => {"changed": false, "item": "docker-registry-default.gsm-test.lab.c-cor.com/gsm/memcached:1.6", "msg": "Failed to import docker or docker-py - u'chardet' is present in the Mitogen importer blacklist, therefore this context will not attempt to request it from the master, as the request will always be refused.. Try pip install docker or pip install docker-py (Python 2.6)"}
Ansible version being run is old: ansible-playbook --version ansible-playbook 2.6.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/var/lib/awx/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
Host node has pip docker installed as part of the playbook
Running: mitogen-0.2.9
Did you try this fix? https://github.com/mitogen-hq/mitogen/issues/593#issuecomment-498094053