1

Topic: NetData/Nginx 502 Bad Gateway

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- downloadable installer
- Linux/BSD distribution name and version:
ubuntu 20.04.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Postgresql
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I'm running into a 502 Bad Gateway error when I'm trying to access netdata and sogo. The error is saying connection refused, but I have little idea on how to debug this. Here are the errors:

2020/09/07 17:52:46 [error] 7722#7722: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.5, server: _, request: "GET /SOGo HTTP/1.1", upstream: "http://127.0.0.1:20000/SOGo", host: "mail.timjones.tech"

2020/09/07 18:53:47 [error] 7722#7722: *95 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.5, server: _, request: "GET /netdata/ HTTP/1.1", upstream: "http://127.0.0.1:19999/", host: "mail.timjones.tech"

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: NetData/Nginx 502 Bad Gateway

Restart sogo and netdata services, then try again.