1

Topic: 502 Bad Gateway

Ubuntu Server 17.10
iRedMail-0.9.7
Apache Web server
Mail stored in MySQL

Getting '502 Bad Gateway' when trying to access https:/server_ip/mail. Can access the admin panel fine, just not the mail. Tried on to different pc's with different DNS servers and get error everytime. Also tried different browsers etc and no luck.

Any ideas much appreciated.

----

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

2

Re: 502 Bad Gateway

Is php-fpm service running?

P.S. We didn't test iRedMail on Ubuntu 17.10 yet.

3

Re: 502 Bad Gateway

Same thing here. I would love to test iRedMail, but I cannot access the mailboxes with the web client. Please keep me in the loop if you manage to resolve the issue! thanks.

4

Re: 502 Bad Gateway

ZhangHuangbin wrote:

Is php-fpm service running?

P.S. We didn't test iRedMail on Ubuntu 17.10 yet.

php.1-fpm is running, that the same thing?

5

Re: 502 Bad Gateway

PHP-FPM looks OK to me.

systemctl status php7.1-fpm.service
● php7.1-fpm.service - The PHP 7.1 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.1-fpm.service; enabled; vendor prese
   Active: active (running) since Mon 2017-11-20 19:02:34 CET; 1min 30s ago
     Docs: man:php-fpm7.1(8)
Main PID: 12162 (php-fpm7.1)
   Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/se
    Tasks: 3 (limit: 9830)
   CGroup: /system.slice/php7.1-fpm.service
           ├─12162 php-fpm: master process (/etc/php/7.1/fpm/php-fpm.conf)
           ├─12163 php-fpm: pool www
           └─12164 php-fpm: pool www

6

Re: 502 Bad Gateway

Is it possible for you to try Ubuntu 16.04 LTS instead of 17.10? We didn't test 17.10 yet.

7

Re: 502 Bad Gateway

Thank you Huangbin. I downgraded to Ubuntu 16.04 (in a virtual machine) and it works.