# Job Template creation fails. Using docker latest official images. (Opened Issue #319)

**URL:** <https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624>\
**Category:** AWX Project\
**Created:** [September 28, 2017, 2:59pm UTC](https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624 "2017-09-28T14:59:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cesar\_Sanchez2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cesar\_Sanchez2](https://forum.ansible.com/u/Cesar_Sanchez2)\
**Post date:** [September 28, 2017, 2:59pm UTC](https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624/1 "2017-09-28T14:59:37Z")

</div>

Hey guys…

I just updated my setup using the latest docker image. I ditched my old previous deployment and wanted to start from scratch using the new model (official docker images).

I found some issues.

1. The awx\_task image doesn’t have the mercurial binary, so, when I tried to add a mercurial project it failed.

I tried to resolve this, by just installing mercurial as a post-install task, on that container… and then, I found my second issue

1. The AWX\_WEB and AWX\_TASK containers have by default some environment variables that point to an omit temporary point for proxy configuration. That broke my attempt to install mercurial, so, I had to unset those variables.

2. Once everything installed correctly, I added my Project (mercurial), and tried to create a new Job Template, using a playbook from that project, when I tried to save the project, it didn’t update. I checked the debugger in my browser and I saw an error when trying to edit that Job Template:

vendor.a4f2158….js:436 TypeError: Cannot read property ‘replace’ of undefined  
at Object.setUrl (app.4099ea5….js:403)  
at stateDefinitions.generateTree.resolve.edit.canGetInventory (app.4099ea5….js:403)  
at invokeResolveFn (vendor.a4f2158….js:468)  
at processQueue (vendor.a4f2158….js:436)  
at vendor.a4f2158….js:436  
at Scope.$eval (vendor.a4f2158….js:436)  
at Scope.$digest (vendor.a4f2158….js:436)  
at Scope.$apply (vendor.a4f2158….js:436)  
at done (vendor.a4f2158….js:436)  
at completeRequest (vendor.a4f2158….js:436)

Any thoughts?

Thanks,

-Cesar

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 28, 2017, 3:21pm UTC](https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624/2 "2017-09-28T15:21:07Z")

</div>

Have you set an inventory on the job template or set prompt for inventory? That is an issue that we know about and we’ve got a fix coming for.

Mercurial not being in the image is definitely a problem. I’ll look at fixing that up.

---

<div class="post-metadata">

**Author:** ![Cesar\_Sanchez2](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@Cesar\_Sanchez2](https://forum.ansible.com/u/Cesar_Sanchez2)\
**Post date:** [September 28, 2017, 3:30pm UTC](https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624/3 "2017-09-28T15:30:03Z")

</div>

Hey Matt,

Yes, I set prompt for inventory. I set a default inventory for now, and then the job creation succeeds. Thanks for your tip.

Any idea about the omit default for proxy variables? The default was changed from ‘’ to omit. That breaks my ability to install packages on those containers…

Thanks,

-Cesar

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 28, 2017, 3:33pm UTC](https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624/4 "2017-09-28T15:33:41Z")

</div>

If you set a proxy then it should override the omit… did that not happen?

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 28, 2017, 3:34pm UTC](https://forum.ansible.com/t/job-template-creation-fails-using-docker-latest-official-images-opened-issue-319/25624/5 "2017-09-28T15:34:49Z")

</div>

Oh that’s totally broken for me now too… I’ll push up a fix for that
