{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13434","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13434/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13434/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13434/events","html_url":"https://github.com/ansible/ansible/issues/13434","id":120465979,"number":13434,"title":"Bug: unable to run parallel forks","user":{"login":"voidzero","id":1332504,"avatar_url":"https://avatars.githubusercontent.com/u/1332504?v=3","gravatar_id":"","url":"https://api.github.com/users/voidzero","html_url":"https://github.com/voidzero","followers_url":"https://api.github.com/users/voidzero/followers","following_url":"https://api.github.com/users/voidzero/following{/other_user}","gists_url":"https://api.github.com/users/voidzero/gists{/gist_id}","starred_url":"https://api.github.com/users/voidzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidzero/subscriptions","organizations_url":"https://api.github.com/users/voidzero/orgs","repos_url":"https://api.github.com/users/voidzero/repos","events_url":"https://api.github.com/users/voidzero/events{/privacy}","received_events_url":"https://api.github.com/users/voidzero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-04T19:09:08Z","updated_at":"2015-12-04T19:37:21Z","closed_at":null,"body":"Ansible version: ansible 1.9.4, packages on my Funtoo (Gentoo-like) system were updated recently.\r\n\r\nAnsible only works when I supply `-f 1`. More than one fork will cause the following error:\r\n\r\n<pre>\r\nPLAY [recursor] *************************************************************** \r\n\r\nTASK: [recursor | Some funky task] ************************************** \r\nProcess SyncManager-1:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/multiprocessing/process.py\", line 258, in _bootstrap\r\n    self.run()\r\n  File \"/usr/lib/python2.7/multiprocessing/process.py\", line 114, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/usr/lib/python2.7/multiprocessing/managers.py\", line 558, in _run_server\r\n    server.serve_forever()\r\n  File \"/usr/lib/python2.7/multiprocessing/managers.py\", line 184, in serve_forever\r\n    t.start()\r\n  File \"/usr/lib/python2.7/threading.py\", line 745, in start\r\n    _start_new_thread(self.__bootstrap, ())\r\nerror: can't start new thread\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python-exec/python2.7/ansible-playbook\", line 324, in <module>\r\n    sys.exit(main(sys.argv[1:]))\r\n  File \"/usr/lib/python-exec/python2.7/ansible-playbook\", line 264, in main\r\n    pb.run()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py\", line 348, in run\r\n    if not self._run_play(play):\r\n  File \"/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py\", line 789, in _run_play\r\n    if not self._run_task(play, task, False):\r\n  File \"/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py\", line 497, in _run_task\r\n    results = self._run_task_internal(task, include_failed=include_failed)\r\n  File \"/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py\", line 439, in _run_task_internal\r\n    results = runner.run()\r\n  File \"/usr/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 1490, in run\r\n    results = self._parallel_exec(hosts)\r\n  File \"/usr/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 1375, in _parallel_exec\r\n    job_queue = manager.Queue()\r\n  File \"/usr/lib/python2.7/multiprocessing/managers.py\", line 667, in temp\r\n    token, exp = self._create(typeid, *args, **kwds)\r\n  File \"/usr/lib/python2.7/multiprocessing/managers.py\", line 565, in _create\r\n    conn = self._Client(self._address, authkey=self._authkey)\r\n  File \"/usr/lib/python2.7/multiprocessing/connection.py\", line 175, in Client\r\n    answer_challenge(c, authkey)\r\n  File \"/usr/lib/python2.7/multiprocessing/connection.py\", line 432, in answer_challenge\r\n    message = connection.recv_bytes(256)         # reject large message\r\nEOFError\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/162062027","html_url":"https://github.com/ansible/ansible/issues/13434#issuecomment-162062027","issue_url":"https://api.github.com/repos/ansible/ansible/issues/13434","id":162062027,"user":{"login":"voidzero","id":1332504,"avatar_url":"https://avatars.githubusercontent.com/u/1332504?v=3","gravatar_id":"","url":"https://api.github.com/users/voidzero","html_url":"https://github.com/voidzero","followers_url":"https://api.github.com/users/voidzero/followers","following_url":"https://api.github.com/users/voidzero/following{/other_user}","gists_url":"https://api.github.com/users/voidzero/gists{/gist_id}","starred_url":"https://api.github.com/users/voidzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidzero/subscriptions","organizations_url":"https://api.github.com/users/voidzero/orgs","repos_url":"https://api.github.com/users/voidzero/repos","events_url":"https://api.github.com/users/voidzero/events{/privacy}","received_events_url":"https://api.github.com/users/voidzero/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T19:37:21Z","updated_at":"2015-12-04T19:37:21Z","body":"Additionally, ulimit -a looks normal and the only thing that has changed is that packages were updated. I recompiled python itself just to be sure, and ansible as well. Isn't it weird that this problem does not occur with `-f 1`?"}}