Skip to content
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

ansible installs but fails to run #115

Closed
abarnas opened this issue Apr 11, 2016 · 8 comments
Closed

ansible installs but fails to run #115

abarnas opened this issue Apr 11, 2016 · 8 comments

Comments

@abarnas
Copy link

abarnas commented Apr 11, 2016

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

@ghost
Copy link

ghost commented Apr 11, 2016

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?)

@patryk9200
Copy link

Same problem as here: #16

@stehufntdev
Copy link
Collaborator

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.

@robotmaxtron
Copy link

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.

@sunilmut
Copy link
Member

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

@sunilmut sunilmut added the fixed label May 19, 2016
@danhuss
Copy link

danhuss commented May 19, 2016

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

@benhillis
Copy link
Member

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

@AnneTheAgile
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants