# Ansible filedescriptor error

**URL:** <https://forum.ansible.com/t/ansible-filedescriptor-error/22096>\
**Category:** Ansible Project\
**Created:** [July 23, 2016, 4:32am UTC](https://forum.ansible.com/t/ansible-filedescriptor-error/22096 "2016-07-23T04:32:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun\_bhatnagar](https://avatars.discourse-cdn.com/v4/letter/v/df788c/32.png) [@varun\_bhatnagar](https://forum.ansible.com/u/varun_bhatnagar)\
**Post date:** [July 23, 2016, 4:32am UTC](https://forum.ansible.com/t/ansible-filedescriptor-error/22096/1 "2016-07-23T04:32:21Z")

</div>

Hi,

I am using Ansible 1.9 and during the execution of one of the playbooks I am getting the below error:

TASK: [installing\_galera | Fix expire\_logs\_days value in my.cnf] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
\<192.168.0.33\> ESTABLISH CONNECTION FOR USER: root  
\<192.168.0.33\> REMOTE\_MODULE lineinfile insertbefore=wsrep\_sst\_receive\_address line=expire\_logs\_days=2 dest=/etc/mysql/my.cnf  
\<192.168.0.33\> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=1800s -o TCPKeepAlive=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=15 -o ControlPath=“/root/.ansible/cp/ansible-ssh-%h-%p-%r” -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.0.33 /bin/sh -c ‘sudo -k && sudo -H -S -p “[sudo via ansible, key=chgwbccvypugobpvexytbsdpzjymrlcy] password: " -u root /bin/sh -c '”’“‘echo BECOME-SUCCESS-chgwbccvypugobpvexytbsdpzjymrlcy; LANG=en\_US.UTF-8 LC\_CTYPE=en\_US.UTF-8 /usr/bin/python’”‘"’’  
EXEC previous known host file not found for 192.168.0.33  
fatal: [cic-1] =\> Traceback (most recent call last):  
File “/usr/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 586, in \_executor  
exec\_rc = self.\_executor\_internal(host, new\_stdin)  
File “/usr/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 789, in \_executor\_internal  
return self.\_executor\_internal\_inner(host, self.module\_name, self.module\_args, inject, port, complex\_args=complex\_args)  
File “/usr/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 1036, in \_executor\_internal\_inner  
result = handler.run(conn, tmp, module\_name, module\_args, inject, complex\_args)  
File “/usr/lib/python2.7/site-packages/ansible/runner/action\_plugins/normal.py”, line 62, in run  
return self.runner.\_execute\_module(conn, tmp, module\_name, module\_args, inject=inject, complex\_args=complex\_args)  
File “/usr/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 551, in \_execute\_module  
res = self.\_low\_level\_exec\_command(conn, cmd, tmp, become=self.become, sudoable=sudoable, in\_data=in\_data)  
File “/usr/lib/python2.7/site-packages/ansible/runner/ **init**.py”, line 1174, in \_low\_level\_exec\_command  
in\_data=in\_data)  
File “/usr/lib/python2.7/site-packages/ansible/runner/connection\_plugins/ssh.py”, line 362, in exec\_command  
(returncode, stdout, stderr) = self.\_communicate(p, stdin, in\_data, sudoable=sudoable, prompt=prompt)  
File “/usr/lib/python2.7/site-packages/ansible/runner/connection\_plugins/ssh.py”, line 162, in \_communicate  
rfd, wfd, efd = select.select(rpipes, , rpipes, 1)  
ValueError: filedescriptor out of range in select()

Can anyone please help me in fixing this?

BR,  
Varun
