# awx.main.dispatch dispatcher did not reply within 5s

**URL:** <https://forum.ansible.com/t/awx-main-dispatch-dispatcher-did-not-reply-within-5s/34348>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 17, 2020, 12:50pm UTC](https://forum.ansible.com/t/awx-main-dispatch-dispatcher-did-not-reply-within-5s/34348 "2020-12-17T12:50:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user39](https://avatars.discourse-cdn.com/v4/letter/u/59ef9b/32.png) [@user39](https://forum.ansible.com/u/user39)\
**Post date:** [December 17, 2020, 12:50pm UTC](https://forum.ansible.com/t/awx-main-dispatch-dispatcher-did-not-reply-within-5s/34348/1 "2020-12-17T12:50:13Z")

</div>

Hi all.  
We have docker-compose installation (14.1.0). The tasks are pending, but there is one available instance in the instance group. Details:  
the output from container awx\_task:

```auto

bash-4.4# awx-manage run_dispatcher --status
2020-12-17 12:44:10,766 WARNING awx.main.dispatch checking dispatcher status for awx
2020-12-17 12:44:15,779 ERROR awx.main.dispatch dispatcher did not reply within 5s
Traceback (most recent call last):
File "/usr/bin/awx-manage", line 8, in <module>
sys.exit(manage())
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/ __init__.py", line 154, in manage
execute_from_command_line(sys.argv)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/ __init__.py", line 381, in execute_from_command_line
utility.execute()
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/ __init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/management/commands/run_dispatcher.py", line 37, in handle
print(Control('dispatcher').status())
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/dispatch/control.py", line 24, in status
return self.control_with_reply('status', *args, **kwargs)
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/dispatch/control.py", line 46, in control_with_reply
raise RuntimeError(f"{self.service} did not reply within {timeout}s")
RuntimeError: dispatcher did not reply within 5s

```

how to diagnose why the dispatcher does not works or not available?

Thank you.

---

<div class="post-metadata">

**Author:** ![user69](https://avatars.discourse-cdn.com/v4/letter/u/58f4c7/32.png) [@user69](https://forum.ansible.com/u/user69)\
**Post date:** [December 17, 2020, 12:54pm UTC](https://forum.ansible.com/t/awx-main-dispatch-dispatcher-did-not-reply-within-5s/34348/2 "2020-12-17T12:54:59Z")

</div>

hello. same problem too

четверг, 17 декабря 2020 г. в 17:50:13 UTC+5, [drub...@yandex.ru](mailto:drub...@yandex.ru):

---

<div class="post-metadata">

**Author:** ![user39](https://avatars.discourse-cdn.com/v4/letter/u/59ef9b/32.png) [@user39](https://forum.ansible.com/u/user39)\
**Post date:** [December 17, 2020, 4:34pm UTC](https://forum.ansible.com/t/awx-main-dispatch-dispatcher-did-not-reply-within-5s/34348/3 "2020-12-17T16:34:42Z")

</div>

Is there somewhere a description of how the services (dispatcher and other services) interact with each other (protocol, by hostname, by sockets e.t.c)?

четверг, 17 декабря 2020 г. в 17:54:59 UTC+5, [ktul...@gmail.com](mailto:ktul...@gmail.com):

---

<div class="post-metadata">

**Author:** ![user39](https://avatars.discourse-cdn.com/v4/letter/u/59ef9b/32.png) [@user39](https://forum.ansible.com/u/user39)\
**Post date:** [December 21, 2020, 1:01pm UTC](https://forum.ansible.com/t/awx-main-dispatch-dispatcher-did-not-reply-within-5s/34348/4 "2020-12-21T13:01:42Z")

</div>

Hi. We found that awx used the PubSub and it is incompatible with pgbound. Swithcing to default PG port solved our issue.

четверг, 17 декабря 2020 г. в 21:34:42 UTC+5, Дмитрий Рубцов:
