-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execnet error when using ploy configure (examples from quickstart, webserver tutorials) #22
Comments
What OS was this on? Is that the default system Python? Does this still happen with the latest releases? |
I'm getting a similar error on OS X 10.9.5. I cloned the repo, ran make, then created the ploy-quickstart directory one level up and ran "virtualenv ." followed by "source ../bsdploy/bin/activate".
|
i've just used a fresh checkout of this repo and could not reproduce the error. @fbarthez could you post the output from |
(bsdploy)[fabian@toubab ~/Documents/gitolite/ploy-quickstart] % ploy -v |
@fbarthez damn, that's exactly what it should be... this is really baffling (i remember the original issue with @wolfgangpfnuer quite well, even debugging it directly on his machine at the time didn't lead anywhere) @fschulze AFAIR you added using execnet for ssh connections for performance reasons, right? what would be an easy way to (temporarily) deactivate it? perhaps it might work then or at least we might see more helpful error messages. |
Can you ssh in? If not, what error do you get there? If you can ssh in, is python installed? If so at which path? |
jailhost also has no python installed. |
Try python27 or python2.7 (not sure right now) as well. Ansible and our custom connection using execnet require python. I think we set it to |
I did
but the error stays the same. |
@wolfgangpfnuer are you still willing to give this another try with the currently released 2.0.0 version? |
And dito for @fbarthez of course :-) |
I've had a quick go, but I don't get very far. After
This may be a remnant from my earlier experiments? The corresponding configuration has vanished from the etc/ploy.conf file as per the quickstart guide. This is still on OSX 10.9.5. |
@fbarthez if you don't need that specific IP (192.168.22.x) for your VirtualBox host only interface, then just change it to '192.168.56.1' and you should be able to continue. |
I've tried to follow the quickstart tutorial, which in the current version does not contain any explicit IP configuration. I tried adding the following to /etc/ploy.conf but w/o effect:
The virtualbox UI shows only a single network adaptor, which is configured for NAT. |
Try using the
Once the one with IP 192.168.22.x is removed, try ploy again. It should then create a new one with the correct IP. |
Thanks, that did help! I ended up with the same "Write failed: Broken pipe" when running ploy configure demo_jail, but this time it helped to create a symlink for python27:
|
@fbarthez i'm very curious, where it certainly isn't part of bsdploy. is there perhaps a typo in your following the quickstart or perhaps a global ansible configuration on your system? |
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 by @fschulze. My global ansible config:
|
@fbarthez well, @fschulze only said he wasn't sure which spelling is the correct one and the correct one is definitely i'm wondering who or what is actually requesting have you tried grepping for i'm really curious, what this is :) |
python2.7 is the name of the executable getting installed, so I'm guessing you'd like to see references to python27:
So no python27 in the quickstart config – which seems unsurprising given I'm lazy and have copied verbatim from the docs.
|
the below output was reproducable on a setup where the tutorial was followed during the training at europython.
venv was installed with python -m virtualenv
bin/activate was called
ploy ssh webserver / demo_jail both work without a problem
pkg install nginx worked without a problem inside the jail, so internet connection is not the problem.
pip freeze
Fabric==1.9.0
Jinja2==2.7.3
MarkupSafe==0.23
PyYAML==3.11
ansible==1.6.6
bsdploy==1.0.0
ecdsa==0.11
execnet==1.2.0
lazy==1.2
paramiko==1.14.0
ploy==1.0.0
ploy-ansible==1.0.0
ploy-ezjail==1.0.0
ploy-fabric==1.0.0
ploy-virtualbox==1.0.0
pycrypto==2.6.1
wsgiref==0.1.2
(lala)Retina Wolfgang 2012:ploy-quickstart wpfnuer$ ploy configure webserver
INFO: Using playbook at '/Users/wpfnuer/lala/ploy-quickstart/jailhost-webserver.yml'.
PLAY [jailhost-webserver] *****************************************************
GATHERING FACTS ***************************************************************
Write failed: Broken pipe
fatal: [jailhost-webserver] => Traceback (most recent call last):
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/init.py", line 536, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/init.py", line 638, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/init.py", line 832, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/action_plugins/normal.py", line 57, in run
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/init.py", line 419, in _execute_module
tmp = self._make_tmp_path(conn)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/init.py", line 1046, in _make_tmp_path
result = self._low_level_exec_command(conn, cmd, None, sudoable=False)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ansible/runner/init.py", line 974, in _low_level_exec_command
in_data=in_data)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ploy_ansible/execnet_connection.py", line 90, in exec_command
rc, stdout, stderr = self.rpc.exec_command(remote_cmd)
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/ploy_ansible/execnet_connection.py", line 17, in call
self.channel.send((name, args, kw))
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/execnet/gateway_base.py", line 681, in send
self.gateway._send(Message.CHANNEL_DATA, self.id, dumps_internal(item))
File "/Users/wpfnuer/lala/lib/python2.7/site-packages/execnet/gateway_base.py", line 950, in _send
raise IOError("cannot send (already closed?)")
IOError: cannot send (already closed?)
TASK: [install nginx] *********************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
The text was updated successfully, but these errors were encountered: