1 (edited by KNERD 2019-03-01 08:09:11)

Topic: New install: 502 Bad Gateway

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? YES
- Linux/BSD distribution name and version: Debian 9
- 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.
====


I have not even logged into the iredadmin page yet, but I am seeing this after trying for the first time.

Logs show:

2019/02/28 22:48:09 [error] 21818#21818: *13 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xx.xx, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "xxx.xxx.xx.x"

I have tried restarting the  uwsgi service, and can confirm it is running.

Nothing in /var/log/uwsgi/app

Any other logs to look at? iRedMail.tips is not helpful with this.

Edit: Since I had it on a virtual machine, I just went ahead and reinstalled it, and it is running without issue.

I guess this discussion should still continue in case another has this problem.

----

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

2

Re: New install: 502 Bad Gateway

Please restart "iredadmin" service instead. "uwsgi" service is not used anymore (uwsgi program is still used by iredadmin, just not start/stop by the "uwsgi" SERVICE).

3

Re: New install: 502 Bad Gateway

The same my issue.
Mail service is setup 3 year ago. Today, mail  error
Log nginx:
unix:/var/run/uwsgi/uwsgi_iredadmin.socket failed (13: Permission denied) while connecting to upstream

4

Re: New install: 502 Bad Gateway

cuongpv1984 wrote:

unix:/var/run/uwsgi/uwsgi_iredadmin.socket failed (13: Permission denied) while connecting to upstream

iRedAdmin is now a standalone network service and listening on port 7791, please replace "unix:/var/run/uwsgi/uwsgi_iredadmin.socket" by "127.0.0.1:7791" in your Nginx config file.

5

Re: New install: 502 Bad Gateway

ZhangHuangbin wrote:

Please restart "iredadmin" service instead. "uwsgi" service is not used anymore (uwsgi program is still used by iredadmin, just not start/stop by the "uwsgi" SERVICE).


This did work out for me. Thank you!