AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only

Ansible Tower error "502 bad gateway" "nginx/1.17.8"

  • 1.  Ansible Tower error "502 bad gateway" "nginx/1.17.8"

    Posted Wed November 11, 2020 12:23 AM
    Hi,

    Looks like my Ansible tower got broken and giving error as "502 bad gateway".
    i tried rebooting my AIX host hosting ansible but of no luck.
    Tried restarted all below services
    nginx
    postgresql
    redis
    supervisord

    Supervisor log is giving below error.

    2020-11-10 15:00:23,282 INFO spawned: 'awx-config-watcher' with pid 7995814
    2020-11-10 15:00:23,287 INFO spawnerr: can't find command '/var/lib/awx/venv/awx/bin/uwsgi'
    2020-11-10 15:00:23,289 INFO spawnerr: can't find command '/var/lib/awx/venv/awx/bin/daphne'
    2020-11-10 15:00:23,289 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:23,299 INFO spawned: 'awx-rsyslogd' with pid 8388898
    2020-11-10 15:00:23,303 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:23,304 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:23,307 INFO exited: awx-config-watcher (exit status 127; not expected)
    2020-11-10 15:00:24,387 INFO spawned: 'awx-config-watcher' with pid 7995816
    2020-11-10 15:00:24,391 INFO spawnerr: can't find command '/var/lib/awx/venv/awx/bin/uwsgi'
    2020-11-10 15:00:24,393 INFO spawnerr: can't find command '/var/lib/awx/venv/awx/bin/daphne'
    2020-11-10 15:00:24,393 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:24,393 INFO success: awx-rsyslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2020-11-10 15:00:24,394 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:24,394 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:24,395 INFO exited: awx-rsyslogd (exit status 1; not expected)
    2020-11-10 15:00:24,424 INFO spawned: 'awx-rsyslogd' with pid 8388900
    2020-11-10 15:00:24,427 INFO exited: awx-config-watcher (exit status 127; not expected)
    2020-11-10 15:00:24,505 INFO exited: awx-rsyslogd (exit status 1; not expected)
    2020-11-10 15:00:25,515 INFO spawned: 'awx-rsyslogd' with pid 8388902
    2020-11-10 15:00:25,592 INFO exited: awx-rsyslogd (exit status 1; not expected)
    2020-11-10 15:00:26,602 INFO spawned: 'awx-config-watcher' with pid 8388904
    2020-11-10 15:00:26,607 INFO spawnerr: can't find command '/var/lib/awx/venv/awx/bin/uwsgi'
    2020-11-10 15:00:26,608 INFO spawnerr: can't find command '/var/lib/awx/venv/awx/bin/daphne'
    2020-11-10 15:00:26,608 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:26,609 INFO spawnerr: can't find command '/usr/bin/awx-manage'
    2020-11-10 15:00:26,609 INFO spawnerr: can't find command '/usr/bin/awx-manage'

    Need some pointers here.

    ------------------------------
    Gaurav Mishra
    ------------------------------