# AWX Tower callback - No matching host could be found but tower console is working

**URL:** <https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [August 30, 2018, 6:46pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473 "2018-08-30T18:46:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![devulapalli8](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@devulapalli8](https://forum.ansible.com/u/devulapalli8)\
**Post date:** [August 30, 2018, 6:46pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473/1 "2018-08-30T18:46:53Z")

</div>

I have setup inventory and job template and the call back is returning “No matching host could be found” but actually the tower console I could see host listed in the inventory and even attempted synch and even I could able to run the job template successfully

could someone please help me why callback is not working but tower console is working fine.

Thank you!

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 30, 2018, 6:48pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473/2 "2018-08-30T18:48:10Z")

</div>

Can you provide more details on what exactly you are trying to accomplish?

---

<div class="post-metadata">

**Author:** ![devulapalli8](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@devulapalli8](https://forum.ansible.com/u/devulapalli8)\
**Post date:** [August 30, 2018, 7:10pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473/3 "2018-08-30T19:10:10Z")

</div>

I need to call tower callback API when EC2 instance is getting launched/provisioned to avoid manual launch job through tower console , I use below command in unix script added in the user\_data section of aws launch configuration

curl --data “host\_config\_key=XXXX” [https://XXX443/api/v2/job\_templates/XXX/callback/](https://XXX443/api/v2/job_templates/XXX/callback/)

even when I run above curl command from that hosted EC2 instance still its giving same error but everything is good when launching the job through tower console. Please help

---

<div class="post-metadata">

**Author:** ![cava\_cavamagie](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Post date:** [December 11, 2018, 11:36am UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473/4 "2018-12-11T11:36:01Z")

</div>

same problem

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [December 11, 2018, 12:32pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473/5 "2018-12-11T12:32:21Z")

</div>

are you using tower or AWX?

---

<div class="post-metadata">

**Author:** ![cava\_cavamagie](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Post date:** [December 11, 2018, 1:21pm UTC](https://forum.ansible.com/t/awx-tower-callback-no-matching-host-could-be-found-but-tower-console-is-working/28473/6 "2018-12-11T13:21:35Z")

</div>

awx over openshift

2018-12-11 12:31:56,350 DEBUG awx.main.models.inventory Going to  
update inventory computed fields  
2018-12-11 12:31:56,372 DEBUG awx.main.models.inventory Finished  
updating inventory computed fields  
2018-12-11 12:31:56,446 DEBUG awx.main.dispatch publish  
awx.main.scheduler.tasks.run\_task\_manager(68c377b9-f391-4e3e-b66e-aa3f5256a75f,  
queue=awx\_private\_queue)  
RESULT 2  
OKREADY  
No previous hash found192.168.13.1 - - [11/Dec/2018:12:32:13 +0000]  
"POST /api/v2/job\_templates/21/callback/ HTTP/1.1" 400 42 "-"  
"curl/7.52.1" "192.168.10.25"  
2018-12-11 12:32:13,626 WARNING awx.api.generics status 400 received  
by user AnonymousUser attempting to access  
/api/v2/job\_templates/21/callback/ from 192.168.13.1
