# AWX with Jenkins Tower plugin

**URL:** <https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [July 22, 2018, 2:25pm UTC](https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120 "2018-07-22T14:25:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosala\_Atapattu1](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Kosala\_Atapattu1](https://forum.ansible.com/u/Kosala_Atapattu1)\
**Post date:** [July 22, 2018, 2:25pm UTC](https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120/1 "2018-07-22T14:25:52Z")

</div>

Hi All,

Any one out there managed to get AWX working with Jenkins Ansible Tower plugin? I run Ansible AWX with pure http (not https),an I get a 502 when I try to add the AWX host to jenkins. Any thoughts how we can do this? Any additional steps I need to follow?

Cheers.

---

<div class="post-metadata">

**Author:** ![jowestco](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jowestco](https://forum.ansible.com/u/jowestco)\
**Post date:** [July 22, 2018, 3:15pm UTC](https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120/2 "2018-07-22T15:15:11Z")

</div>

Hi Kosala,

The Ansible Jenkins Tower plugin can be used with AWX.  
Make sure you are using a fully qualified URL in the configuration like: [http://localhost:8081/](http://localhost:8081/)  
However, a 502 is a bad gateway response; is there anything in-between your jenkins instance and your AWX instance?  
Please feel free to reach out to me either here or on the Jenkins wiki for the plugin: [https://plugins.jenkins.io/ansible-tower](https://plugins.jenkins.io/ansible-tower)

-John

---

<div class="post-metadata">

**Author:** ![Kosala\_Atapattu1](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Kosala\_Atapattu1](https://forum.ansible.com/u/Kosala_Atapattu1)\
**Post date:** [July 22, 2018, 5:02pm UTC](https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120/3 "2018-07-22T17:02:43Z")

</div>

Hi All,

I can see the following in the awx\_web logs.

2018-07-22 16:47:57,779 ERROR django.request Internal Server Error: /authtoken/

Traceback (most recent call last):

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 116, in get\_exception\_response

response = callback(request, \*\*param\_dict)

File “/usr/lib/python2.7/site-packages/awx/main/views.py”, line 80, in handle\_404

return handle\_error(request, 404, \*\*kwargs)

File “/usr/lib/python2.7/site-packages/awx/main/views.py”, line 56, in handle\_error

return render(request, ‘error.html’, kwargs, status=status)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/shortcuts.py”, line 30, in render

content = loader.render\_to\_string(template\_name, context, request, using=using)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/loader.py”, line 68, in render\_to\_string

return template.render(context, request)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/backends/django.py”, line 66, in render

return self.template.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 207, in render

return self.\_render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 199, in \_render

return self.nodelist.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 990, in render

bit = node.render\_annotated(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 957, in render\_annotated

return self.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/loader\_tags.py”, line 177, in render

return compiled\_parent.\_render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 199, in \_render

return self.nodelist.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 990, in render

bit = node.render\_annotated(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 957, in render\_annotated

return self.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/loader\_tags.py”, line 177, in render

return compiled\_parent.\_render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 199, in \_render

return self.nodelist.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 990, in render

bit = node.render\_annotated(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 957, in render\_annotated

return self.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/loader\_tags.py”, line 72, in render

result = block.nodelist.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 990, in render

bit = node.render\_annotated(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 957, in render\_annotated

return self.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/loader\_tags.py”, line 72, in render

result = block.nodelist.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 990, in render

bit = node.render\_annotated(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 957, in render\_annotated

return self.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/defaulttags.py”, line 40, in render

output = self.nodelist.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 990, in render

bit = node.render\_annotated(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 957, in render\_annotated

return self.render(context)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/defaulttags.py”, line 166, in render

values = self.sequence.resolve(context, True)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/template/base.py”, line 736, in resolve

new\_obj = func(obj, \*arg\_vals)

File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest\_framework/templatetags/rest\_framework.py”, line 243, in items

return value.items()

AttributeError: ‘NoneType’ object has no attribute ‘items’
