Topic: Solved: After Roundcube Update "502 Bad Gateway" error.
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Debian 10.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? With iRedAdmin-Pro 4.8
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
After updating Roundcube from 1.4.10 to 1.4.11 when trying to access https://mydomainname.com/mail as well as https://mydomainname.com/adminer or even just https://mydomainname.com I get an "502 Bad Gateway" error.
I am able to access https://mydomainname.com/iredadmin, https://mydomainname.com/SOGo and even https://mydomainname.com/netdata.
Here are the relevant error log entry for Nginx for Roundcube as well as adminer.
Roundcube:
2021/02/21 07:49:57 [error] 17607#17607: *9226 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server: _, request: "GET /mail/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "mydomainname.com"
Adminer:
2021/02/21 07:51:39 [error] 17607#17607: *9226 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server: _, request: "GET /adminer?server=localhost HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "mydomainname.com"
Nginx access log entries:
xx.xx.xx.xx - - [21/Feb/2021:07:49:57 +0100] "GET /mail/ HTTP/2.0" 502 166 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11.2; rv:78.0) Gecko/20100101 Firefox/78.0 Waterfox/78.6.0"
xx.xx.xx.xx - - [21/Feb/2021:07:51:39 +0100] "GET /adminer?server=localhost HTTP/2.0" 502 166 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11.2; rv:78.0) Gecko/20100101 Firefox/78.0 Waterfox/78.6.0"
Any help would be greatly appreciated.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.