1

Topic: Can't access my other website Error 502

Hello i'm trying to run iRedMail along with my panel i've configurated the site-available but when i'm trying to access it i'll get 502 error ?

Do I need to do something else along ? Maybe something with the templates ????

Please help

----

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

2

Re: Can't access my other website Error 502

I get the same problem. on a fresh debian10 lxc guest on proxmox host.

postgresql backend.
I select all options.

I have tested iredmail 2-3 weeks ago with no pb. and now /iredadmin/ send 502 Bad Gateway
nginx.

/var/log/nginx/error.log said
2020/06/28 18:35:48 [error] 202#202: *185 connect() failed (111: Connection refused) while connecting to upstream, client: x.y.z.a, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host:"myhost.com"

[28/Jun/2020:18:38:12 +0200] "GET /iredadmin/ HTTP/1.1" 502 568 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/83.0.4103.106 Chrome/83.0.4103.106 Safari/537.36

i try to add a allow all; in /etc/nginx/templates/iredadmin.tmpl  but same pb.

/mail  and /sogo work but no connection possible even with postmaster

Any idea will be welcome

3

Re: Can't access my other website Error 502

sebka14 wrote:

when i'm trying to access it i'll get 502 error ?

Any related error in Nginx log files (/var/log/nginx/*.log)?

4

Re: Can't access my other website Error 502

Having the same problem on CentOs 7

nginx error.log shows:

2020/06/30 19:25:28 [error] 588#0: *573 connect() failed (110: Connection timed out) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "www.mydomain.com"

Nothing has changed on the server, yesterday working amazingly well, today 502 Bad Gateway error message, then it starts working fine for like 2 minutes and then again 502 bad gateway error.

Please help

5

Re: Can't access my other website Error 502

Looks like some issue with php-fpm or nginx. But no clue right now. sad

Do you have any other useful info for troubleshooting?

6

Re: Can't access my other website Error 502

ZhangHuangbin

I can copy or send you all the logs that you would need, i don't see anything odd in the log files, just the nginx error log.

Nothing has changed or have been installed in the server. It just stop working from one day to the other one, if you need access to the server pm me and i will send you the server info.

7

Re: Can't access my other website Error 502

I ran systemctl list-unit-files | grep -E 'php[^fpm]*fpm' and showed me this:

php-fpm.service                           enabled
php71-php-fpm.service                     enabled

Is it normal to have those 2 php-fpm services enabled? shouldn't it be just one?

8

Re: Can't access my other website Error 502

Seems both CentOS 8 and Ubuntu 20.04 have such issue. i need more investigation.

9

Re: Can't access my other website Error 502

I'm running CentOs 7