Topic: 0.9.9 Roundcube - 502 Bad Gateway - upstream prematurely closed
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? I curled tar
- Linux/BSD distribution name and version: FreeBSD 12.0-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Neh
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, I just freshly installed iRedMail 0.9.9 in iocage jail. Everything works, but Roundcube.
When I try to access https://mail.domain.eml/mail Nginx returns 502 Bad Gateway and puts this in the error log:
2019/01/03 05:58:12 [error] 31374#100516: *11 upstream prematurely closed connection while reading response header from upstream, client: xxx.yyy.zzz.111, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://192.168.8.36:9999", host: "mail.domain.eml"
I checked /usr/local/etc/php-fpm.d/www.conf and added the 192.168.8.36 ip to listen.allowed_clients, but without any luck.
listen = 192.168.8.36:9999
listen.owner = www
listen.group = www
listen.mode = 0660
listen.allowed_clients = 127.0.0.1, 192.168.8.36
There is no log in: /usr/local/www/roundcube/logs
It seems that php-fpm.log does not record anything either:
Jan 3 05:31:20 mail php-fpm[31063]: [NOTICE] ready to handle connections
Jan 3 05:47:52 mail php-fpm[31338]: [NOTICE] configuration file /usr/local/etc/php-fpm.conf test is successful
Jan 3 05:47:52 mail php-fpm[31063]: [NOTICE] Finishing ...
Jan 3 05:47:52 mail php-fpm[31063]: [NOTICE] exiting, bye-bye!
Jan 3 05:47:52 mail php-fpm[31347]: [NOTICE] configuration file /usr/local/etc/php-fpm.conf test is successful
Jan 3 05:47:52 mail php-fpm[31349]: [NOTICE] fpm is running, pid 31349
Jan 3 05:47:52 mail php-fpm[31349]: [NOTICE] ready to handle connections
Do you have any other tips?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.