1

Topic: 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: CentOS8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- 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 just hopped through the whole iRedMail Installation Process on a newly Deployed CentOS-VServer from my local Hoster.
Everything worked very good, all Services are up and running, except the iRedAdmin WebUI, im am getting Nginx Message 502.


The Error Log from /var/log/nginx has the following lines:

2020/08/03 12:37:17 [error] 507#0: *996 connect() failed (111: Connection refused) while connecting to upstream, client: 1.2.3.4, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "myserver.com"


Does anybody know how i could fix this issue?

Thanks in Advance
Martin

----

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

2

Re: Iredadmin 502 Bad Gateway

What's the output of command "service iredadmin status"?

3

Re: Iredadmin 502 Bad Gateway

Hello!

i just re-installed the whole system with the same specs, except i choose MariaDB instead of PostgreSQL.
The Error is still here, Thats the Output from "service iredadmin status":


Aug 04 17:42:21 mydomain.com systemd[504]: iredadmin.service: Failed to execute command: No such file or directory
Aug 04 17:42:21 mydomain.com systemd[504]: iredadmin.service: Failed at step EXEC spawning /usr/bin/uwsgi: No such file or directory
Aug 04 17:42:21 mydomain.com systemd[1]: iredadmin.service: Main process exited, code=exited, status=203/EXEC
Aug 04 17:42:21 mydomain.com systemd[1]: iredadmin.service: Failed with result 'exit-code'.
Aug 04 17:40:46 mydomain.com systemd[1]: Starting iRedAdmin daemon service...
Aug 04 17:40:47 mydomain.com systemd[1]: Started iRedAdmin daemon service.
Aug 04 17:40:47 mydomain.com systemd[507]: iredadmin.service: Failed to execute command: No such file or directory
Aug 04 17:40:47 mydomain.com systemd[507]: iredadmin.service: Failed at step EXEC spawning /usr/bin/uwsgi: No such file or directory
Aug 04 17:40:47 mydomain.com systemd[1]: iredadmin.service: Main process exited, code=exited, status=203/EXEC
Aug 04 17:40:47 mydomain.com systemd[1]: iredadmin.service: Failed with result 'exit-code'.

4

Re: Iredadmin 502 Bad Gateway

Did you download the latest stable release 1.3.1 from our website (https://www.iredmail.org/download.html ) or git development version?