# Error: Out of pty devices

**URL:** <https://forum.ansible.com/t/error-out-of-pty-devices/36406>\
**Category:** Ansible Project\
**Created:** [March 7, 2022, 11:27am UTC](https://forum.ansible.com/t/error-out-of-pty-devices/36406 "2022-03-07T11:27:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaya\_esch](https://avatars.discourse-cdn.com/v4/letter/y/74df32/32.png) [@yaya\_esch](https://forum.ansible.com/u/yaya_esch)\
**Post date:** [March 7, 2022, 11:27am UTC](https://forum.ansible.com/t/error-out-of-pty-devices/36406/1 "2022-03-07T11:27:35Z")

</div>

Hello everybody !  
I installed ansible tower a few days ago now and when I try to run a playbook through it I get this error:

The full traceback is:  
Traceback (most recent call last):  
File “/usr/lib/python2.7/site-packages/ansible/executor/task\_executor.py”, line 147, in run  
res = self.\_execute()  
File “/usr/lib/python2.7/site-packages/ansible/executor/task\_executor.py”, line 620, in \_execute  
self.\_connection = self.\_get\_connection(cvars, templar)  
File “/usr/lib/python2.7/site-packages/ansible/executor/task\_executor.py”, line 957, in \_get\_connection  
socket\_path = start\_connection(self.\_play\_context, options, self.\_task.\_uuid)  
File “/usr/lib/python2.7/site-packages/ansible/executor/task\_executor.py”, line 1124, in start\_connection  
master, slave = pty.openpty()  
File “/usr/lib64/python2.7/pty.py”, line 29, in openpty  
master\_fd, slave\_name = \_open\_terminal()  
File “/usr/lib64/python2.7/pty.py”, line 70, in \_open\_terminal  
raise os.error, ‘out of pty devices’  
OSError: out of pty devices  
fatal: [SW1]: FAILED! =\> {  
“msg”: “Unexpected failure during module execution.”,  
“stdout”: “”

Anyone have an idea how I could solve it?
