1

Topic: 502 Bad Gateway problem on /iredadmin/

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Deopled per git (git clone https://github.com/iredmail/iRedMail.git)
- Linux/BSD distribution name and version: Debian 4.19.118-2 (2020-04-29) x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello, im sitting in front of this Problem now for days big_smile I hope someone here can help me. I would really appreciate!

So I was installing iredmail after this guide https://www.linuxbabe.com/mail-server/d … ail-server on my KVM vServer.

All this worked fine so far. I can log-in on roundcube mail, I can send and recieve mails without any Problems. /netdata/ works fine aswell.

But when I try to access /iredadmin/ I get an 502 bad gateway

nginx error.log

2020/05/16 00:47:04 [error] 598#598: *24 upstream prematurely closed connection while reading response header from upstream, client: XX.XXX.XXX.XXX, server: _, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "mail.xxxxxxx.net"

Ports are open on iptables (7791)

I thougt its a problem with uwsgi, so I installed it. But the problem still exists!

also /var/run/uwsgi/uwsgi_iredadmin.socket does not exist like mentioned in this Post (https://forum.iredmail.org/topic15374-n … teway.html)

not even the folder uwsgi exits...

So is there a fix for that, because I guess uwgsi is the Problem.


Thanks in advance!

best regards,
Reventex

----

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

2 (edited by Reventex 2020-05-17 06:22:34)

Re: 502 Bad Gateway problem on /iredadmin/

Alright, for everyone else having the same issue. I've fixed it with installing uwsgi manually and then installing all plugins.


apt-get install uwsgi-plugins-all

then restart uwsgi with

service uwsgi restart

and

service iredadmin restart

regards,
Reventex

3 (edited by YurkshireLad 2020-06-01 22:36:18)

Re: 502 Bad Gateway problem on /iredadmin/

Thanks for this. So 1.2.1 is broken? I get the same error on Ubuntu.

I followed your instructions and it fixed the admin site but broke the webmail site.

4

Re: 502 Bad Gateway problem on /iredadmin/

Which Ubuntu release are you running?