Hi All,
I’m new to AWX and seeing below error while doing different things like selecting SCM source, adding a source or running a ping module when using “run command”…
Any suggestions?
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