Topic: iRedAdmin and NGINX - 502 Bad Gateway
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.8
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB/MySQL (installed by iRedMail)
- Web server (Apache or Nginx): Nginx (installed by iRedMail)
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have installed IRedMail a few times now without issue. I prepared a new server (fresh install, all components installed during the iRedMail installation), and now suddenly iredadmin does not work. A fresh install generates a "502 Bad Gateway" error.
*I can confirm that the installation of iRedMail proceeded without errors or warning.
*SSL has been installed and is working properly/trusted.
*Webmail (SOGo) access works.
*DNS (A/PTR/MX) is confirmed.
Please assist troubleshooting. Here is the NGINX error log:
2018/09/14 15:25:21 [error] 3291#0: *18 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: $
2018/09/14 15:25:27 [error] 3291#0: *18 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: $
2018/09/14 15:26:40 [error] 3291#0: *18 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: $
2018/09/14 15:26:43 [error] 3291#0: *18 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: $
2018/09/14 15:27:52 [error] 3291#0: *18 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: $
I've tried the workaround documented here but this does not resolve the issue.
https://www.scalescale.com/tips/nginx/5 … ng-nginx/#
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.