Topic: Can't access iredadmin: 502 Bad Gateway
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====
Hello. I've setup iRedMail using
bash iRedMail.sh
. After the installation is done. I can access roundcube, but not iredadmin: 502 Bad Gateway. A look into the nginx logs reveals:
2020/08/23 00:01:44 [error] 590#590: *138 connect() failed (111: Connection refused) while connecting to upstream, client: 94.134.179.125, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.domain.xyz"
(I changed the domain).
systemctl status uwgsi
● uwsgi.service - LSB: Start/stop uWSGI server instance(s)
Loaded: loaded (/etc/init.d/uwsgi; generated)
Active: active (exited) since Sun 2020-08-23 00:03:05 CEST; 13min ago
Docs: man:systemd-sysv-generator(8)
Process: 2952 ExecStart=/etc/init.d/uwsgi start (code=exited, status=0/SUCCESS)
Aug 23 00:03:05 mail systemd[1]: Starting LSB: Start/stop uWSGI server instance(s)...
Aug 23 00:03:05 mail uwsgi[2952]: * Starting app server(s) uwsgi
Aug 23 00:03:05 mail uwsgi[2952]: ...done.
Aug 23 00:03:05 mail systemd[1]: Started LSB: Start/stop uWSGI server instance(s).
I've tried to solve this by myself, however I was unsuccesful.
I'd appreciate any assistance.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.