{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/14408","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/14408/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/14408/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/14408/events","html_url":"https://github.com/ansible/ansible/issues/14408","id":132673984,"number":14408,"title":"ERROR! Unexpected Exception: 'NoneType' object has no attribute 'terminate'","user":{"login":"mgedmin","id":159967,"avatar_url":"https://avatars.githubusercontent.com/u/159967?v=3","gravatar_id":"","url":"https://api.github.com/users/mgedmin","html_url":"https://github.com/mgedmin","followers_url":"https://api.github.com/users/mgedmin/followers","following_url":"https://api.github.com/users/mgedmin/following{/other_user}","gists_url":"https://api.github.com/users/mgedmin/gists{/gist_id}","starred_url":"https://api.github.com/users/mgedmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgedmin/subscriptions","organizations_url":"https://api.github.com/users/mgedmin/orgs","repos_url":"https://api.github.com/users/mgedmin/repos","events_url":"https://api.github.com/users/mgedmin/events{/privacy}","received_events_url":"https://api.github.com/users/mgedmin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/5","html_url":"https://github.com/ansible/ansible/milestones/stable-2.0","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/5/labels","id":975800,"number":5,"title":"stable-2.0","description":"","creator":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"open_issues":145,"closed_issues":812,"state":"open","created_at":"2015-02-11T19:43:06Z","updated_at":"2016-02-23T20:08:11Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-02-10T11:30:28Z","updated_at":"2016-02-23T21:26:21Z","closed_at":"2016-02-10T14:50:10Z","body":"**Ansible version**\r\n\r\nansible-playbook 2.1.0 (devel 5a88478ccc) last updated 2016/02/10 12:21:18 (GMT +300)\r\n  lib/ansible/modules/core: (detached HEAD 9fc4ed0458) last updated 2016/02/10 12:21:20 (GMT +300)\r\n  lib/ansible/modules/extras: (detached HEAD 6aeb2ab6cf) last updated 2016/02/10 12:21:20 (GMT +300)\r\n\r\n**Summary**\r\n\r\nEvery now and then I get this error after a run:\r\n```\r\nERROR! Unexpected Exception: 'NoneType' object has no attribute 'terminate'\r\nto see the full traceback, use -vvv\r\n```\r\n\r\nIt sounds like the traditional problem of a Python thread running code during interpreter shutdown: all the globals are set to None.\r\n\r\nIt's hard to reproduce (which means either I run with `-vvv` all the time, or I'll never see the traceback),  so I've no clue nor what code.\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/187918544","html_url":"https://github.com/ansible/ansible/issues/14408#issuecomment-187918544","issue_url":"https://api.github.com/repos/ansible/ansible/issues/14408","id":187918544,"user":{"login":"vfguy","id":17179421,"avatar_url":"https://avatars.githubusercontent.com/u/17179421?v=3","gravatar_id":"","url":"https://api.github.com/users/vfguy","html_url":"https://github.com/vfguy","followers_url":"https://api.github.com/users/vfguy/followers","following_url":"https://api.github.com/users/vfguy/following{/other_user}","gists_url":"https://api.github.com/users/vfguy/gists{/gist_id}","starred_url":"https://api.github.com/users/vfguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfguy/subscriptions","organizations_url":"https://api.github.com/users/vfguy/orgs","repos_url":"https://api.github.com/users/vfguy/repos","events_url":"https://api.github.com/users/vfguy/events{/privacy}","received_events_url":"https://api.github.com/users/vfguy/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T21:26:21Z","updated_at":"2016-02-23T21:26:21Z","body":"I'm getting this consistently.  Not sure if it's something that I'm doing incorrectly, but this was the only place I found this issue discussed online.\r\n\r\nusing Ansible 2.0.0.2 installed via pip on babun under windows.  I realize it's not a supported solution, but am providing the error msg in case it helps figure out the issue.\r\n\r\n\r\nNo config file found; using defaults\r\n[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo'\r\n(default). This feature will be removed in a future release. Deprecation warnings can be disabled by setting\r\ndeprecation_warnings=False in ansible.cfg.\r\n1 plays in playbook.yml\r\n      0 [main] python2.7 4380 child_info_fork::abort: address space needed by '_speedups.dll' (0x6F0000) is already occupied\r\nUnexpected Exception: 'NoneType' object has no attribute 'terminate'\r\nthe full traceback was:\r\n\r\nTraceback (most recent call last):\r\n  File \"/bin/ansible-playbook\", line 85, in <module>\r\n    sys.exit(cli.run())\r\n  File \"/usr/lib/python2.7/site-packages/ansible/cli/playbook.py\", line 150, in run\r\n    results = pbex.run()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py\", line 190, in run\r\n    self._cleanup()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py\", line 199, in _cleanup\r\n    return self._tqm.cleanup()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py\", line 245, in cleanup\r\n    self._cleanup_processes()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py\", line 249, in _cleanup_processes\r\n    self._result_prc.terminate()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/executor/process/result.py\", line 89, in terminate\r\n    super(ResultProcess, self).terminate()\r\n  File \"/usr/lib/python2.7/multiprocessing/process.py\", line 137, in terminate\r\n    self._popen.terminate()\r\nAttributeError: 'NoneType' object has no attribute 'terminate'"}}