{"action":"created","issue":{"url":"https://api.github.com/repos/ployground/bsdploy/issues/22","labels_url":"https://api.github.com/repos/ployground/bsdploy/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ployground/bsdploy/issues/22/comments","events_url":"https://api.github.com/repos/ployground/bsdploy/issues/22/events","html_url":"https://github.com/ployground/bsdploy/issues/22","id":38303781,"number":22,"title":"execnet error when using ploy configure (examples from quickstart, webserver tutorials)","user":{"login":"wolfgangpfnuer","id":668408,"avatar_url":"https://avatars.githubusercontent.com/u/668408?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfgangpfnuer","html_url":"https://github.com/wolfgangpfnuer","followers_url":"https://api.github.com/users/wolfgangpfnuer/followers","following_url":"https://api.github.com/users/wolfgangpfnuer/following{/other_user}","gists_url":"https://api.github.com/users/wolfgangpfnuer/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfgangpfnuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfgangpfnuer/subscriptions","organizations_url":"https://api.github.com/users/wolfgangpfnuer/orgs","repos_url":"https://api.github.com/users/wolfgangpfnuer/repos","events_url":"https://api.github.com/users/wolfgangpfnuer/events{/privacy}","received_events_url":"https://api.github.com/users/wolfgangpfnuer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-07-21T13:45:23Z","updated_at":"2015-03-09T16:15:45Z","closed_at":null,"body":"the below output was reproducable on a setup where the tutorial was followed during the training at europython.\r\n\r\nvenv was installed with python -m virtualenv\r\nbin/activate was called\r\nploy ssh webserver / demo_jail both work without a problem\r\n\r\npkg install nginx worked without a problem inside the jail, so internet connection is not the problem.\r\n\r\npip freeze\r\nFabric==1.9.0\r\nJinja2==2.7.3\r\nMarkupSafe==0.23\r\nPyYAML==3.11\r\nansible==1.6.6\r\nbsdploy==1.0.0\r\necdsa==0.11\r\nexecnet==1.2.0\r\nlazy==1.2\r\nparamiko==1.14.0\r\nploy==1.0.0\r\nploy-ansible==1.0.0\r\nploy-ezjail==1.0.0\r\nploy-fabric==1.0.0\r\nploy-virtualbox==1.0.0\r\npycrypto==2.6.1\r\nwsgiref==0.1.2\r\n\r\n\r\n(lala)Retina Wolfgang 2012:ploy-quickstart wpfnuer$ ploy configure webserver\r\nINFO: Using playbook at '/Users/wpfnuer/lala/ploy-quickstart/jailhost-webserver.yml'.\r\n\r\nPLAY [jailhost-webserver] *****************************************************\r\n\r\nGATHERING FACTS ***************************************************************\r\nWrite failed: Broken pipe\r\nfatal: [jailhost-webserver] => Traceback (most recent call last):\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 536, in _executor\r\n    exec_rc = self._executor_internal(host, new_stdin)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 638, in _executor_internal\r\n    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 832, in _executor_internal_inner\r\n    result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/action_plugins/normal.py\", line 57, in run\r\n    return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 419, in _execute_module\r\n    tmp = self._make_tmp_path(conn)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 1046, in _make_tmp_path\r\n    result = self._low_level_exec_command(conn, cmd, None, sudoable=False)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/__init__.py\", line 974, in _low_level_exec_command\r\n    in_data=in_data)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ploy_ansible/execnet_connection.py\", line 90, in exec_command\r\n    rc, stdout, stderr = self.rpc.exec_command(remote_cmd)\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/ploy_ansible/execnet_connection.py\", line 17, in call\r\n    self.channel.send((name, args, kw))\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/execnet/gateway_base.py\", line 681, in send\r\n    self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))\r\n  File \"/Users/wpfnuer/lala/lib/python2.7/site-packages/execnet/gateway_base.py\", line 950, in _send\r\n    raise IOError(\"cannot send (already closed?)\")\r\nIOError: cannot send (already closed?)\r\n\r\n\r\nTASK: [install nginx] *********************************************************\r\nFATAL: no hosts matched or all hosts have already failed -- aborting"},"comment":{"url":"https://api.github.com/repos/ployground/bsdploy/issues/comments/77885645","html_url":"https://github.com/ployground/bsdploy/issues/22#issuecomment-77885645","issue_url":"https://api.github.com/repos/ployground/bsdploy/issues/22","id":77885645,"user":{"login":"fbarthez","id":1228832,"avatar_url":"https://avatars.githubusercontent.com/u/1228832?v=3","gravatar_id":"","url":"https://api.github.com/users/fbarthez","html_url":"https://github.com/fbarthez","followers_url":"https://api.github.com/users/fbarthez/followers","following_url":"https://api.github.com/users/fbarthez/following{/other_user}","gists_url":"https://api.github.com/users/fbarthez/gists{/gist_id}","starred_url":"https://api.github.com/users/fbarthez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbarthez/subscriptions","organizations_url":"https://api.github.com/users/fbarthez/orgs","repos_url":"https://api.github.com/users/fbarthez/repos","events_url":"https://api.github.com/users/fbarthez/events{/privacy}","received_events_url":"https://api.github.com/users/fbarthez/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T16:15:45Z","updated_at":"2015-03-09T16:15:45Z","body":"Well, if I remove the link, I'm back to \"Write failed: Broken pipe\" on calling \"ploy configure demo_jail\". The [alternative path was suggested](https://github.com/ployground/bsdploy/issues/22#issuecomment-63214062) by @fschulze.\r\n\r\nMy global ansible config:\r\n\r\n    (bsdploy)[fabian@toubab ~/Documents/gitolite/bsdploy/ploy-quickstart] % cat ~/.ansible.cfg\r\n    [defaults]\r\n    transport = smart\r\n    \r\n    [ssh_connection]\r\n    pipelining = True\r\n"}}