{"action":"created","issue":{"url":"https://api.github.com/repos/dw/mitogen/issues/351","repository_url":"https://api.github.com/repos/dw/mitogen","labels_url":"https://api.github.com/repos/dw/mitogen/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/dw/mitogen/issues/351/comments","events_url":"https://api.github.com/repos/dw/mitogen/issues/351/events","html_url":"https://github.com/dw/mitogen/issues/351","id":357677549,"node_id":"MDU6SXNzdWUzNTc2Nzc1NDk=","number":351,"title":"Ansible Copy module stops (no subsequent task)","user":{"login":"berenddeschouwer","id":1582675,"node_id":"MDQ6VXNlcjE1ODI2NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1582675?v=4","gravatar_id":"","url":"https://api.github.com/users/berenddeschouwer","html_url":"https://github.com/berenddeschouwer","followers_url":"https://api.github.com/users/berenddeschouwer/followers","following_url":"https://api.github.com/users/berenddeschouwer/following{/other_user}","gists_url":"https://api.github.com/users/berenddeschouwer/gists{/gist_id}","starred_url":"https://api.github.com/users/berenddeschouwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berenddeschouwer/subscriptions","organizations_url":"https://api.github.com/users/berenddeschouwer/orgs","repos_url":"https://api.github.com/users/berenddeschouwer/repos","events_url":"https://api.github.com/users/berenddeschouwer/events{/privacy}","received_events_url":"https://api.github.com/users/berenddeschouwer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-09-06T14:19:59Z","updated_at":"2018-09-08T11:00:48Z","closed_at":null,"author_association":"NONE","body":"* Have you tried the latest master version from Git? yes, and 0.2.2\r\n* Fedora 28, x86_64\r\n* python 2.7.\r\n* I'll attach -vvv and MITOGEN_DUMP_THREAD_STACKS=1\r\n\r\nAnsible \"hangs\" -- waits forever to move to the next task.  This seems to always happen on a copy task if/when an ssh process closes unexpectedly.  The remaining hosts continue the copy task, but no subsequent task starts.  The playbook stops (doesn't finish)\r\n\r\nThere's a traceback in mitogen:\r\n```\r\nERROR! [pid 5883] 13:15:07.091804 E mitogen: mitogen.service.Pool(0x7f4906caf850, size=16,th='mitogen.service.Pool.7f4906caf850.worker-1'): while invoking u'get' of u'ansible_mitogen.services.ContextService'\r\nTraceback (most recent call last):\r\n  File \"/home/berend/Source/mitogen/mitogen/service.py\", line 519, in _on_service_call\r\n     return invoker.invoke(method_name, kwargs, msg)\r\n  File \"/home/berend/Source/mitogen/mitogen/service.py\", line 253, in invoke\r\n    response = self._invoke(method_name, kwargs, msg)\r\n  File \"/home/berend/Source/mitogen/mitogen/service.py\", line 239, in _invoke\r\n    ret = method(**kwargs)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/services.py\", line 408, in get\r\n    reraise(*result)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/services.py\", line 372, in _wait_or_start\r\n    response = self._connect(key, spec, via=via)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/services.py\", line 336, in _connect\r\n    candidate_temp_dirs=self._get_candidate_temp_dirs(),\r\n  File \"/home/berend/Source/mitogen/mitogen/parent.py\", line 1121, in call\r\n    return receiver.get().unpickle(throw_dead=False)\r\n  File \"/home/berend/Source/mitogen/mitogen/core.py\", line 681, in get\r\n    raise ChannelError(ChannelError.local_msg)\r\nChannelError: Channel closed by local end.\r\n```\r\nand then later Ansible notices it:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 139, in run\r\n    res = self._execute()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 577, in _execute\r\n    result = self._handler.run(task_vars=variables)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/mixins.py\", line 116, in run\r\n    return super(ActionModuleMixin, self).run(tmp, task_vars)\r\n  File \"/usr/lib/python2.7/site-packages/ansible/plugins/action/copy.py\", line 387, in run\r\n    result = super(ActionModule, self).run(tmp, task_vars)\r\n  File \"/usr/lib/python2.7/site-packages/ansible/plugins/action/__init__.py\", line 97, in run\r\n    self._make_tmp_path()\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/mixins.py\", line 190, in _make_tmp_path\r\n    self._connection._shell.tmpdir = self._connection.get_temp_dir()\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/connection.py\", line 654, in get_temp_dir\r\n    self._connect()\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/connection.py\", line 673, in _connect\r\n    self._connect_stack(stack)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/connection.py\", line 635, in _connect_stack\r\n    stack=mitogen.utils.cast(list(stack)),\r\n  File \"/home/berend/Source/mitogen/mitogen/core.py\", line 1238, in call_service\r\n    return recv.get().unpickle()\r\n  File \"/home/berend/Source/mitogen/mitogen/core.py\", line 595, in unpickle\r\n    raise obj\r\nCallError: mitogen.core.ChannelError: Channel closed by local end.\r\n  File \"/home/berend/Source/mitogen/mitogen/service.py\", line 519, in _on_service_call\r\n    return invoker.invoke(method_name, kwargs, msg)\r\n  File \"/home/berend/Source/mitogen/mitogen/service.py\", line 253, in invoke\r\n    response = self._invoke(method_name, kwargs, msg)\r\n  File \"/home/berend/Source/mitogen/mitogen/service.py\", line 239, in _invoke\r\n    ret = method(**kwargs)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/services.py\", line 408, in get\r\n    reraise(*result)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/services.py\", line 372, in _wait_or_start\r\n    response = self._connect(key, spec, via=via)\r\n  File \"/home/berend/Source/mitogen/ansible_mitogen/services.py\", line 336, in _connect\r\n    candidate_temp_dirs=self._get_candidate_temp_dirs(),\r\n  File \"/home/berend/Source/mitogen/mitogen/parent.py\", line 1121, in call\r\n    return receiver.get().unpickle(throw_dead=False)\r\n  File \"/home/berend/Source/mitogen/mitogen/core.py\", line 681, in get\r\n    raise ChannelError(ChannelError.local_msg)\r\n```"},"comment":{"url":"https://api.github.com/repos/dw/mitogen/issues/comments/419633242","html_url":"https://github.com/dw/mitogen/issues/351#issuecomment-419633242","issue_url":"https://api.github.com/repos/dw/mitogen/issues/351","id":419633242,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTYzMzI0Mg==","user":{"login":"berenddeschouwer","id":1582675,"node_id":"MDQ6VXNlcjE1ODI2NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1582675?v=4","gravatar_id":"","url":"https://api.github.com/users/berenddeschouwer","html_url":"https://github.com/berenddeschouwer","followers_url":"https://api.github.com/users/berenddeschouwer/followers","following_url":"https://api.github.com/users/berenddeschouwer/following{/other_user}","gists_url":"https://api.github.com/users/berenddeschouwer/gists{/gist_id}","starred_url":"https://api.github.com/users/berenddeschouwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berenddeschouwer/subscriptions","organizations_url":"https://api.github.com/users/berenddeschouwer/orgs","repos_url":"https://api.github.com/users/berenddeschouwer/repos","events_url":"https://api.github.com/users/berenddeschouwer/events{/privacy}","received_events_url":"https://api.github.com/users/berenddeschouwer/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T11:00:48Z","updated_at":"2018-09-08T11:00:48Z","author_association":"NONE","body":"Sound like it's the same problem to me too: some connection errors aren't processed correctly.  Looking forward to testing 0.2.3 and 0.2.4."}}
{"actor":{"display_login":"berenddeschouwer"}}