# \[Errno 11\] Resource temporarily unavailable when using ansible api

**URL:** <https://forum.ansible.com/t/errno-11-resource-temporarily-unavailable-when-using-ansible-api/17414>\
**Category:** Ansible Developer\
**Tags:** ubuntu\
**Created:** [February 2, 2015, 4:33am UTC](https://forum.ansible.com/t/errno-11-resource-temporarily-unavailable-when-using-ansible-api/17414 "2015-02-02T04:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritesh\_Shetty](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Post date:** [February 2, 2015, 4:33am UTC](https://forum.ansible.com/t/errno-11-resource-temporarily-unavailable-when-using-ansible-api/17414/1 "2015-02-02T04:33:16Z")

</div>

I am too getting this error and could not find a way to fix it …

I am using ubuntu 14.04, ansible 1.8.2 in virtual mode. And using the python api to call the playbook.run()  
Architechture is to listen to a mesage on a Rabbitmq using oslo messaging and then call ansible api

I did a couple of tests. I ran the ansible api call from a simple python file like this

python rough.py

What rough.py does is simply call the python api. This works perfectly fine.

Now why it is not working is because i have a oslo-messaging listener and then i passed the execution to the python api. Some how these 2 dont work together.

i dont know if this is related or not but something i found in this link …

[http://stackoverflow.com/questions/14736766/why-does-gevent-socket-break-multiprocessing-connections-auth](http://stackoverflow.com/questions/14736766/why-does-gevent-socket-break-multiprocessing-connections-auth)

i don’t know how to proceed now …

2015-01-31 00:26:04,933 - root - ERROR - Error in executing playbook[Errno 11] Resource temporarily unavailable

Traceback (most recent call last):

File “/opt/stack/venv/local/lib/python2.7/site-packages/attis-1.0.0a1-py2.7.egg/attis/engine/contentprocessor.py”, line 100, in runPlaybook  
pb.run()  
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/playbook/ **init**.py”, line 347, in run  
if not self.\_run\_play(play):  
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/playbook/ **init**.py”, line 674, in \_run\_play  
self.\_do\_setup\_step(play)  
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/playbook/ **init**.py”, line 619, in \_do\_setup\_step  
accelerate\_port=play.accelerate\_port,  
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/runner/ **init**.py”, line 1458, in run  
results = self.\_parallel\_exec(hosts)  
File “/opt/stack/venv/local/lib/python2.7/site-packages/ansible-1.8.2-py2.7.egg/ansible/runner/ **init**.py”, line 1349, in \_parallel\_exec

job\_queue = manager.Queue()  
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 667, in temp  
token, exp = self.\_create(typeid, \*args, \*\*kwds)  
File “/usr/lib/python2.7/multiprocessing/managers.py”, line 565, in \_create  
conn = self.\_Client(self.\_address, authkey=self.\_authkey)  
File “/usr/lib/python2.7/multiprocessing/connection.py”, line 175, in Client  
answer\_challenge(c, authkey)

File “/usr/lib/python2.7/multiprocessing/connection.py”, line 428, in answer\_challenge  
message = connection.recv\_bytes(256) # reject large message  
IOError: [Errno 11] Resource temporarily unavailable
