# AWX on RHEL VM

**URL:** <https://forum.ansible.com/t/awx-on-rhel-vm/26233>\
**Category:** AWX Project\
**Tags:** rhel, awx\
**Created:** [December 8, 2017, 8:01pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233 "2017-12-08T20:01:34Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 8, 2017, 8:01pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/1 "2017-12-08T20:01:34Z")

</div>

Hi,

I’m new to AWX and need some help.

Anyone tired to install AWX directly in the RHEL VM? Is there any other option available instead of Docker or Openshift?

Any help is appreciated!!

Regards  
Sammi

---

<div class="post-metadata">

**Author:** ![Martin\_Juhl](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Martin\_Juhl](https://forum.ansible.com/u/Martin_Juhl)\
**Post date:** [December 8, 2017, 8:08pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/2 "2017-12-08T20:08:06Z")

</div>

Hi Sammi

I have tried to do something like that on CentOS:

[https://github.com/MrMEEE/awx-build/blob/master/installguide](https://github.com/MrMEEE/awx-build/blob/master/installguide)

It’s works as far as I have tested, but I haven’t tried it on RHEL yet… (And still needs some cleanup)…

Please report bugs to:

[https://github.com/MrMEEE/awx-build/issues](https://github.com/MrMEEE/awx-build/issues)

/Martin

> **Fra:** [sammi.c30@gmail.com](mailto:sammi.c30@gmail.com)  
> **Sendt:** 8. december 2017 9.01 PM  
> **Til:** [awx-project@googlegroups.com](mailto:awx-project@googlegroups.com)  
> **Svar til:** [sammi.c30@gmail.com](mailto:sammi.c30@gmail.com)  
> **Emne:** [awx-project] AWX on RHEL VM  
>   
> |
> 
> - |

Hi,

I’m new to AWX and need some help.

Anyone tired to install AWX directly in the RHEL VM? Is there any other option available instead of Docker or Openshift?

Any help is appreciated!!

Regards  
Sammi

---

<div class="post-metadata">

**Author:** ![jmitchel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jmitchel/32/10148_2.png) [@jmitchel](https://forum.ansible.com/u/jmitchel)\
**Post date:** [December 8, 2017, 8:13pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/3 "2017-12-08T20:13:15Z")

</div>

Hey Sammi,  
I think Docker/Openshift is the “supported” and recommended install path–unsure of if anyone in the community is working on getting AWX installed on different platforms (aside from some work being done by a community member to make AWX run on BSD). May also want to ask in #ansible-awx.

Good luck!  
John

---

<div class="post-metadata">

**Author:** ![jmitchel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jmitchel/32/10148_2.png) [@jmitchel](https://forum.ansible.com/u/jmitchel)\
**Post date:** [December 8, 2017, 8:14pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/4 "2017-12-08T20:14:14Z")

</div>

Ah, I spoke too soon, nice Martin!

---

<div class="post-metadata">

**Author:** ![Martin\_Juhl](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Martin\_Juhl](https://forum.ansible.com/u/Martin_Juhl)\
**Post date:** [December 8, 2017, 8:41pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/5 "2017-12-08T20:41:19Z")

</div>

:)… I was actually looking for a way to distribute the information???

> **Fra:** [jmitchel@redhat.com](mailto:jmitchel@redhat.com)  
> **Sendt:** 8. december 2017 9.14 PM  
> **Til:** [sammi.c30@gmail.com](mailto:sammi.c30@gmail.com); [awx-project@googlegroups.com](mailto:awx-project@googlegroups.com)  
> **Svar til:** [jmitchel@redhat.com](mailto:jmitchel@redhat.com)  
> **Emne:** Re: [awx-project] AWX on RHEL VM  
>   
> |
> 
> - |

Ah, I spoke too soon, nice Martin!

---

<div class="post-metadata">

**Author:** ![jmitchel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jmitchel/32/10148_2.png) [@jmitchel](https://forum.ansible.com/u/jmitchel)\
**Post date:** [December 8, 2017, 8:51pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/6 "2017-12-08T20:51:12Z")

</div>

Hey Martin,  
Our main sources of communication on the project are this group and the freenode irc channel #ansible-awx. You could also try writing a blog post and posting to Twitter.

Good luck!  
John

---

<div class="post-metadata">

**Author:** ![Martin\_Juhl](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Martin\_Juhl](https://forum.ansible.com/u/Martin_Juhl)\
**Post date:** [December 8, 2017, 8:54pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/7 "2017-12-08T20:54:02Z")

</div>

Hi John

Have posted an entry on my blog and Twitter (does AWX have a #?)…

Was thinking that maybe we could add a link in the install dokumentation? (Should I just do a pull request?)

/Martin

> **Fra:** [jmitchel@redhat.com](mailto:jmitchel@redhat.com)  
> **Sendt:** 8. december 2017 9.51 PM  
> **Til:** mj@casalogic.dk  
> **Svar til:** [jmitchel@redhat.com](mailto:jmitchel@redhat.com)  
> **Cc:** [sammi.c30@gmail.com](mailto:sammi.c30@gmail.com); [awx-project@googlegroups.com](mailto:awx-project@googlegroups.com)  
> **Emne:** Re: Re: [awx-project] AWX on RHEL VM  
>   
> |
> 
> - |

Hey Martin,  
Our main sources of communication on the project are this group and the freenode irc channel #ansible-awx. You could also try writing a blog post and posting to Twitter.

Good luck!  
John

---

<div class="post-metadata">

**Author:** ![jmitchel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jmitchel/32/10148_2.png) [@jmitchel](https://forum.ansible.com/u/jmitchel)\
**Post date:** [December 8, 2017, 9:07pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/8 "2017-12-08T21:07:18Z")

</div>

Hey Martin,  
Looks like #awx is a solid tag with a lot of (mostly) relevant [stuff](https://twitter.com/hashtag/AWX?src=hash). Posting a tweet using that hashtag might help people looking for information on twitter find it.

In terms of linking within the official repo documentation, I’m -1 on that at this point, as there may be an implication of “support”/“help” provided by the core team. Trying to “promote” a single/main-way of install (i.e. docker/open shift) helps us best make sure that the AWX codebase works for users efficiently and keeps us free to focus on working on developing new features for AWX/fixing bugs/working with the community on contributions.

Sorry about that,  
John

---

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 8, 2017, 9:08pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/9 "2017-12-08T21:08:39Z")

</div>

Thanks Martin and John!!!

I’ll try it on CentOS 🙂

---

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 8, 2017, 9:30pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/10 "2017-12-08T21:30:22Z")

</div>

Hi Martin,

All the steps you provided worked but it’s failed to enable the service.

systemctl enable awx-web  
**Failed to execute operation: No such file or directory**

systemctl start awx-web  
**Failed to start awx-web.service: Unit not found.**

---

<div class="post-metadata">

**Author:** ![Martin\_Juhl](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Martin\_Juhl](https://forum.ansible.com/u/Martin_Juhl)\
**Post date:** [December 9, 2017, 5:35pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/11 "2017-12-09T17:35:04Z")

</div>

I have just updated to newest git build, and fixed the service stuff (i think)…

version 304 should now be live in the repo, so you can basically just do a yum update…

If possible, please verify :)…

Thanks

/Martin

---

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 12, 2017, 5:15am UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/12 "2017-12-12T05:15:28Z")

</div>

Hi Martin,

Have you seen the error below? I’m getting it while doing different things like selecting SCM source, adding a source or running a ping module when using “run command”…

UI Error:  
Failed to launch adhoc command. POST returned status: 500 A server error has occurred.

Error in the web logs:

ImportError: /usr/lib64/libcrypto.so.10: version `OPENSSL\_1.0.2’ not found (required by /var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/bindings/\_openssl.so)

2017-12-11 23:42:49,306 ERROR django.request Internal Server Error: /api/v2/inventories/2/ad\_hoc\_commands/  
Traceback (most recent call last):  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner  
response = get\_response(request)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in \_legacy\_get\_response  
response = self.\_get\_response(request)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in \_get\_response  
response = self.process\_exception\_by\_middleware(e, request)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in \_get\_response  
response = wrapped\_callback(request, \*callback\_args, \*\*callback\_kwargs)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/decorators/csrf.py”, line 58, in wrapped\_view  
return view\_func(\*args, \*\*kwargs)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/generic/base.py”, line 68, in view  
return self.dispatch(request, \*args, \*\*kwargs)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/views/decorators/csrf.py”, line 58, in wrapped\_view  
return view\_func(\*args, \*\*kwargs)  
File “/usr/lib/python2.7/site-packages/awx/api/views.py”, line 4194, in dispatch  
return super(AdHocCommandList, self).dispatch(\*args, \*\*kwargs)  
File “/usr/lib/python2.7/site-packages/awx/api/generics.py”, line 248, in dispatch  
return super(APIView, self).dispatch(request, \*args, \*\*kwargs)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest\_framework/views.py”, line 489, in dispatch  
response = self.handle\_exception(exc)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest\_framework/views.py”, line 449, in handle\_exception  
self.raise\_uncaught\_exception(exc)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest\_framework/views.py”, line 486, in dispatch  
response = handler(request, \*args, \*\*kwargs)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/rest\_framework/generics.py”, line 244, in post  
return self.create(request, \*args, \*\*kwargs)  
File “/usr/lib/python2.7/site-packages/awx/api/views.py”, line 4233, in create  
result = ad\_hoc\_command.signal\_start(\*\*request.data)  
File “/usr/lib/python2.7/site-packages/awx/main/models/unified\_jobs.py”, line 1167, in signal\_start  
self.update\_fields(start\_args=json.dumps(kwargs), status=‘pending’)  
File “/usr/lib/python2.7/site-packages/awx/main/models/base.py”, line 131, in update\_fields  
self.save(update\_fields=update\_fields)  
File “/usr/lib/python2.7/site-packages/awx/main/models/ad\_hoc\_commands.py”, line 202, in save  
super(AdHocCommand, self).save(\*args, \*\*kwargs)  
File “/usr/lib/python2.7/site-packages/awx/main/models/unified\_jobs.py”, line 799, in save  
result = super(UnifiedJob, self).save(\*args, \*\*kwargs)  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/polymorphic/models.py”, line 74, in save  
return super(PolymorphicModel, self).save(\*args, \*\*kwargs)  
File “/usr/lib/python2.7/site-packages/awx/main/models/base.py”, line 196, in save  
self.encrypt\_field(field, ask)  
File “/usr/lib/python2.7/site-packages/awx/main/models/base.py”, line 216, in encrypt\_field  
encrypted = encrypt\_field(self, field, ask)  
File “/usr/lib/python2.7/site-packages/awx/main/utils/encryption.py”, line 68, in encrypt\_field  
f = Fernet256(key)  
File “/usr/lib/python2.7/site-packages/awx/main/utils/encryption.py”, line 22, in **init**  
backend = default\_backend()  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/backends/ **init**.py”, line 15, in default\_backend  
from cryptography.hazmat.backends.openssl.backend import backend  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/ **init**.py”, line 7, in   
from cryptography.hazmat.backends.openssl.backend import backend  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/backend.py”, line 49, in   
from cryptography.hazmat.bindings.openssl import binding  
File “/var/lib/awx/venv/awx/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 13, in   
from cryptography.hazmat.bindings.\_openssl import ffi, lib

---

<div class="post-metadata">

**Author:** ![Martin\_Juhl](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Martin\_Juhl](https://forum.ansible.com/u/Martin_Juhl)\
**Post date:** [December 13, 2017, 8:58am UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/13 "2017-12-13T08:58:10Z")

</div>

Hi Sammi

I can’t replicate that…

Are you running on RHEL or CentOS???

Can you compare this to your system:

[root@awx tower]# rpm -aq |grep -i ssl  
erlang-ssl-R16B-03.18.el7.x86\_64  
openssl-libs-1.0.2k-8.el7.x86\_64  
xmlsec1-openssl-1.2.20-7.el7\_4.x86\_64  
python-passlib-1.6.5-2.el7.noarch  
openssl-1.0.2k-8.el7.x86\_64  
python-backports-ssl\_match\_hostname-3.4.0.2-4.el7.noarch

/Martin

---

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 13, 2017, 6:50pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/14 "2017-12-13T18:50:28Z")

</div>

Hi Martin, I’m running “CentOS Linux release 7.3.1611 (Core)”

---

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 13, 2017, 6:56pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/15 "2017-12-13T18:56:26Z")

</div>

Also, Are there any Pre-requisites and Post installation steps which I need to follow?

I’m trying to install V2 ([https://github.com/MrMEEE/awx-build/blob/master/installguide-v2](https://github.com/MrMEEE/awx-build/blob/master/installguide-v2)) and getting below error. I’ll update the openssl package and try to move forward.

Error: Package: awx-1.0.2.0-1.el7.centos.x86\_64 (mrmeee-awx-dev)  
Requires: libcrypto.so.10(OPENSSL\_1.0.2)(64bit)  
You could try using --skip-broken to work around the problem  
You could try running: rpm -Va --nofiles --nodigest

---

<div class="post-metadata">

**Author:** ![Sammic30](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sammic30](https://forum.ansible.com/u/Sammic30)\
**Post date:** [December 13, 2017, 7:24pm UTC](https://forum.ansible.com/t/awx-on-rhel-vm/26233/16 "2017-12-13T19:24:38Z")

</div>

same error facing with [https://github.com/MrMEEE/awx-build/blob/master/installguide](https://github.com/MrMEEE/awx-build/blob/master/installguide) installation

Error: Package: awx-1.0.2.268-1.el7.centos.x86\_64 (mrmeee-awx-dev)  
Requires: libcrypto.so.10(OPENSSL\_1.0.2)(64bit)  
You could try using --skip-broken to work around the problem  
You could try running: rpm -Va --nofiles --nodigest
