1 (edited by mike175de 2023-07-29 00:15:14)

Topic: [SOLVED] Roundcube not working after Upgrade to Bookworm

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

Hey there,

was successfully upgrading from Buster to Bookworm. Mailserver is up an running. Sogo is working as well.

Only Roundcube throws me an Gateway 502-error. The log file says:

2023/07/28 17:19:25 [error] 1072#1072: *79 connect() failed (111: Connection refused) while connecting to upstream, client: 87.177.194.211, server: xx.de, request: "GET /mail/ HTTP/2.0", upstream: "fastcgi://127.0.0.1:9999", host: "round.xx.de"

The 502-error shows up with the domain via roundcube.tmpl and also with the subdomain via roundcube-subdomain.tmpl.

PHP-FPM is running and Sogo and iRedAdmin are accessible.

Any hints on that?

Thanks and Greets , mike

----

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

2

Re: [SOLVED] Roundcube not working after Upgrade to Bookworm

For anybody with the same problem:

As Bookworm uses PHP 8.2 you have to change the part in the /etc/php/8.2/fpm/pool.d/www.conf from sock to ip-address:

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
;   'ip.add.re.ss:port'    - to listen on a TCP socket to a specific IPv4 address on
;                            a specific port;
;   '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
;                            a specific port;
;   'port'                 - to listen on a TCP socket to all addresses
;                            (IPv6 and IPv4-mapped) on a specific port;
;   '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
;listen = /run/php/php8.2-fpm.sock  <== delete or comment out
listen = 127.0.0.1:9999 <== new entry

After that restart the fpm-service with:

service php8.2-fpm restart

@ZhangHuangbin: Maybe you should mention this in an upgrade tutorial for debian 11 to 12?

greets

3

Re: [SOLVED] Roundcube not working after Upgrade to Bookworm

you could just copy config file from php7 to php8
cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/8.2/fpm/pool.d/www.conf
and restart php8fpm