HTTP Error 502: Bad gateway

Hi there ,
So i’m trying to install wazo and after : ansible-playbook -i inventories/uc-engine uc-engine.yml , I get this error :

TASK [uc-engine : Setup engine] *******************************************************************************************************************************************************************************************************************************************
fatal: [debian10]: FAILED! => {“changed”: false, “connection”: “close”, “content”: “\r\n502 Bad Gateway\r\n<body bgcolor=“white”>\r\n

502 Bad Gateway

\r\n
nginx/1.14.2\r\n\r\n\r\n”, “content_length”: “173”, “content_type”: “text/html”, “date”: “Fri, 15 Nov 2019 10:41:46 GMT”, “msg”: “Status code was 502 and not [201]: HTTP Error 502: Bad Gateway”, “redirected”: false, “server”: “nginx/1.14.2”, “status”: 502, “url”: “https://localhost:443/api/setupd/1.0/setup”}
to retry, use: --limit @/wazo-ansible/uc-engine.retry

I also can’t log into ui , have you got any clue about what is going on ?

Hi!

Thank you for you question. It seems that the component wazo-setupd, used for configuring the Wazo Platform, is having some trouble.

Can you show us what there is in:

  • the output of systemctl status wazo-setupd
  • the file /var/log/wazo-setupd.log

Hi ,

thank you for your answer .

here’s what systemctl status shows :

● debian10
State: degraded
Jobs: 0 queued
Failed: 2 units
Since: Wed 2019-11-13 22:50:44 CET; 4 days ago
CGroup: /
├─user.slice
│ └─user-1000.slice
│ ├─user@1000.service
│ │ └─init.scope
│ │ ├─459 /lib/systemd/systemd --user
│ │ └─460 (sd-pam)
│ ├─session-1443.scope
│ │ ├─15606 systemctl status
│ │ ├─15607 pager
│ │ ├─22029 sshd: ghislain [priv]
│ │ ├─22038 sshd: ghislain@pts/0
│ │ ├─22039 -bash
│ │ ├─22042 su
│ │ └─22043 bash
│ └─session-1.scope
│ ├─ 451 /bin/login -p –
│ ├─ 464 -bash
│ ├─ 467 su
│ ├─ 468 bash
│ └─4138 nano /etc/network/interfaces
├─init.scope
│ └─1 /sbin/init
└─system.slice
├─fail2ban.service
│ └─23470 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
├─xivo-sysconfd.service
│ └─11841 /usr/bin/python2 /usr/bin/xivo-sysconfd
├─epmd.service
│ └─22131 /usr/bin/epmd -systemd
├─wazo-phoned.service
│ └─12381 /usr/bin/python3 /usr/bin/wazo-phoned --user www-data
├─wazo-call-logd.service
│ └─12302 /usr/bin/python3 /usr/bin/wazo-call-logd
├─systemd-udevd.service
│ └─254 /lib/systemd/systemd-udevd
├─cron.service
│ └─425 /usr/sbin/cron -f
├─nginx.service
│ ├─11391 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
│ ├─22407 nginx: worker process
│ └─22408 nginx: worker process
├─munin-node.service
│ └─8027 /usr/bin/perl -wT /usr/sbin/munin-node
├─wazo-amid.service
│ └─14687 /usr/bin/python3 /usr/bin/wazo-amid
├─wazo-dxtora.service
│ └─12012 /usr/bin/python2 /usr/bin/wazo-dxtora
├─wazo-provd.service
│ └─14870 /usr/bin/python2 /usr/bin/twistd --pidfile=/run/wazo-provd/wazo-provd.pid --rundir=/ --uid=wazo-provd --gid=wazo-provd --no_save --logger provd.main.twistd_logs wazo-provd
├─systemd-journald.service
│ └─234 /lib/systemd/systemd-journald
├─ssh.service
│ └─1375 /usr/sbin/sshd -D
├─wazo-agentd.service
│ └─12328 /usr/bin/python3 /usr/bin/wazo-agentd
├─wazo-websocketd.service
│ └─14902 /usr/bin/python3 -u /usr/bin/wazo-websocketd
├─uuidd.service
lines 1-64

And wazo-setupd.log seems empty , tried several things but nothing seems to work .