# wait\_for not seeing port open up

**URL:** <https://forum.ansible.com/t/wait-for-not-seeing-port-open-up/12245>\
**Category:** Ansible Project\
**Created:** [January 24, 2013, 8:57pm UTC](https://forum.ansible.com/t/wait-for-not-seeing-port-open-up/12245 "2013-01-24T20:57:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [January 24, 2013, 8:57pm UTC](https://forum.ansible.com/t/wait-for-not-seeing-port-open-up/12245/1 "2013-01-24T20:57:33Z")

</div>

Hi,  
My playbook is not continuring sometimes because I’m not sure that wait\_for is checking the port frequently enough…

Play:

- name: Start citrusleaf server  
action: service name=citrusleaf pattern=/usr/bin/cld state=started  
tags:

- StartCL

- name: Wait for citrusleaf server to start before continuing  
action: wait\_for port=3000 delay=200 timeout=5400 state=started  
tags:

- chill

Jan 24 12:57:16 cl408 ansible-wait\_for: Invoked with state=started connect\_timeout=5 delay=200 host=127.0.0.1 timeout=5400 port=3000

Its still running now and the port became available two hours ago. Any thing I should do to debug before killing the process?

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [January 24, 2013, 8:58pm UTC](https://forum.ansible.com/t/wait-for-not-seeing-port-open-up/12245/2 "2013-01-24T20:58:01Z")

</div>

sheepchase:~ jmarcus$ ansible --version  
ansible 1.0

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [January 24, 2013, 9:06pm UTC](https://forum.ansible.com/t/wait-for-not-seeing-port-open-up/12245/3 "2013-01-24T21:06:27Z")

</div>

Nothing you can really get at.

Not saying I think there is a bug (could be), but I'd try to debug  
wait for with the hacking/test-module script, using the debugger if  
neccessary, on the system in question.

--Michael

---

<div class="post-metadata">

**Author:** ![James8](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@James8](https://forum.ansible.com/u/James8)\
**Post date:** [January 24, 2013, 9:08pm UTC](https://forum.ansible.com/t/wait-for-not-seeing-port-open-up/12245/4 "2013-01-24T21:08:03Z")

</div>

okay sounds good.

Thanks,  
James
