WSL icon indicating copy to clipboard operation
WSL copied to clipboard

ansible installs but fails to run

Open abarnas opened this issue 10 years ago • 8 comments

Ansible 1.9 and up install but on execution results in the following output:

root@localhost:~# ansible Traceback (most recent call last): File "/usr/bin/ansible", line 40, in from ansible.utils.display import Display File "/usr/lib/pymodules/python2.7/ansible/utils/display.py", line 49, in debug_lock = Lock() File "/usr/lib/python2.7/multiprocessing/init.py", line 176, in Lock return Lock() File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in init SemLock.init(self, SEMAPHORE, 1, 1) File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in init sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) OSError: [Errno 38] Function not implemented

abarnas avatar Apr 11 '16 00:04 abarnas

I'm not sure what function isn't implemented here, but according to http://stackoverflow.com/questions/2009278/python-multiprocessing-permission-denied, semaphores require /dev/shm, which isn't implemented (yet?)

ghost avatar Apr 11 '16 01:04 ghost

Same problem as here: #16

patryk9200 avatar Apr 12 '16 22:04 patryk9200

Thanks for reporting the issue. We recently added tmpfs mounts for run (e.g. /run, /run/lock, /run/user, and /run/shm) with permissions that match native Ubuntu. This change should be out for insiders soon.

Locally I was able to confirm the issue above and that it was resolved after the fix.

stehufntdev avatar Apr 14 '16 19:04 stehufntdev

I'm running build 14342.rs1_release.160506-1708 and can confirm that Ansible 2.0.2.0 has been able to install and seems to be working as expected from the Ansible PPA.

robotmaxtron avatar May 19 '16 00:05 robotmaxtron

@robotmaxtron - Thanks for validating this. Marking it fixed as per the comment above.

sunilmut avatar May 19 '16 00:05 sunilmut

I'm in the same boat as @robotmaxtron. Ansible 2.2.0 from source looks like it's working as I'd expect.

danhuss avatar May 19 '16 17:05 danhuss

Closing this out as this issue is now fixed, please reopen if you continue to have issues with Ansible.

benhillis avatar May 28 '16 17:05 benhillis

Cross-reference; This issue was raised in uservoice also ; https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13333764-python-bugs

AnneTheAgile avatar Aug 15 '16 00:08 AnneTheAgile