Closed ashokdevop closed 5 years ago
@capslk we can't help without details. Please refile this issue with all of the details requested at https://github.com/ansible/awx/issues/new?template=bug_report.md
Additionally, please share any errors you see in your container logs - they'll provide hints about what's wrong.
If you need help collecting this data for an AWX install, you might also try our mailing list or IRC room:
http://webchat.freenode.net/?channels=ansible-awx https://groups.google.com/forum/#!forum/awx-project
@ryanpetrello Please find the below awx-web container logs
EXIMR-IM-272:~ ashok.g$ kubectl logs pod/awx-web-75c4459955-f2hrs
/usr/bin/launch_awx.sh: line 8: /etc/tower/conf.d/environment.sh: No such file or directory
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"elapsed": 18,
"match_groupdict": {},
"match_groups": [],
"path": null,
"port": 5432,
"search_regex": null,
"state": "started"
}
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"elapsed": 0,
"match_groupdict": {},
"match_groups": [],
"path": null,
"port": 11211,
"search_regex": null,
"state": "started"
}
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"elapsed": 0,
"match_groupdict": {},
"match_groups": [],
"path": null,
"port": 5672,
"search_regex": null,
"state": "started"
}
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"db": "awx"
}
Traceback (most recent call last):
File "/usr/bin/awx-manage", line 11, in
@capslk
Is this a new install? An upgrade? How are you deploying it? What version of AWX?
This error should provide you with a hint: django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
You're missing the SECRET_KEY
file laid down at install. If you're upgrading, you'll need to persist this value across upgrade.
Hello,
getting internal server error while I browse using http://[ipv6]
Below are the logs:
[root@localhost ~]# docker logs -f awx_task
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"elapsed": 0,
"match_groupdict": {},
"match_groups": [],
"path": null,
"port": 5432,
"search_regex": null,
"state": "started"
}
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"db": "awx"
}
Traceback (most recent call last):
File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/settings/production.py", line 85, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/awx-manage", line 8, in
I have both Python 2.7.5 and 3.6 running - Is this Python issue?
[root@localhost awx]# cat setup.py
import os import glob import sys from setuptools import setup
etcpath = "/etc/tower" homedir = "/var/lib/awx" bindir = "/usr/bin" sharedir = "/usr/share/awx" docdir = "/usr/share/doc/awx"
def get_version(): current_dir = os.path.dirname(os.path.abspath(file)) version_file = os.path.join(current_dir, 'VERSION') with open(version_file, 'r') as file: return file.read().strip()
if os.path.exists("/etc/debian_version"): sysinit = "/etc/init.d" webconfig = "/etc/nginx" siteconfig = "/etc/nginx/sites-enabled"
# sosreport-3.0 looks in '/usr/lib/python2.7/dist-packages/sos/plugins'
# debian/<package>.links will create symlinks to support both versions
sosconfig = "/usr/share/sosreport/sos/plugins"
else: sysinit = "/etc/rc.d/init.d" webconfig = "/etc/nginx" siteconfig = "/etc/nginx/sites-enabled"
sosconfig = "/usr/share/sosreport/sos/plugins"
#####################################################################
def explode_glob_path(path): """Take a glob and hand back the full recursive expansion, ignoring links. """
result = []
includes = glob.glob(path)
for item in includes:
if os.path.isdir(item) and not os.path.islink(item):
result.extend(explode_glob_path(os.path.join(item, "*")))
else:
result.append(item)
return result
def proc_data_files(data_files): """Because data_files doesn't natively support globs... let's add them. """
result = []
# If running in a virtualenv, don't return data files that would install to
# system paths (mainly useful for running tests via tox).
if hasattr(sys, 'real_prefix'):
return result
for dir,files in data_files:
includes = []
for item in files:
includes.extend(explode_glob_path(item))
result.append((dir, includes))
return result
#####################################################################
setup( name=os.getenv('NAME', 'awx'), version=get_version(), author='Ansible, Inc.', author_email='info@ansible.com', description='awx: API, UI and Task Engine for Ansible', long_description='AWX provides a web-based user interface, REST API and ' 'task engine built on top of Ansible', license='Apache License 2.0', keywords='ansible', url='http://github.com/ansible/awx', packages=['awx'], include_package_data=True, zip_safe=False, setup_requires=[], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators' 'License :: Apache License 2.0', 'Natural Language :: English', 'Operating System :: OS Independent', 'Operating System :: POSIX', 'Programming Language :: Python', 'Topic :: System :: Installation/Setup', 'Topic :: System :: Systems Administration', ], entry_points = { 'console_scripts': [ 'awx-manage = awx:manage', ], 'awx.credential_plugins': [ 'conjur = awx.main.credential_plugins.conjur:conjur_plugin', 'hashivault_kv = awx.main.credential_plugins.hashivault:hashivault_kv_plugin', 'hashivault_ssh = awx.main.credential_plugins.hashivault:hashivault_ssh_plugin', 'azure_kv = awx.main.credential_plugins.azure_kv:azure_keyvault_plugin', 'aim = awx.main.credential_plugins.aim:aim_plugin' ] }, data_files = proc_data_files([ ("%s" % homedir, ["config/wsgi.py", "awx/static/favicon.ico"]), ("%s" % siteconfig, ["config/awx-nginx.conf"]),
("%s" % sharedir, ["tools/scripts/request_tower_configuration.sh","tools/scripts/request_tower_configuration.ps1"]),
("%s" % docdir, ["docs/licenses/*",]),
("%s" % bindir, ["tools/scripts/ansible-tower-service",
"tools/scripts/failure-event-handler",
"tools/scripts/awx-python",
"tools/scripts/ansible-tower-setup"]),
("%s" % sosconfig, ["tools/sosreport/tower.py"])]),
options = {
'aliases': {
'dev_build': 'clean --all egg_info sdist',
'release_build': 'clean --all egg_info -b "" sdist'
},
'build_scripts': {
'executable': '/usr/bin/awx-python',
},
},
)
Could someone point me in the right direction?
Thanks
Hi Team,
I am trying deploy AWX on kubernetes and deployed all the components successfully but while opening UI getting Internal Server Error
Please help me on this.
Thansk, Ashok