1

Topic: Upgrading to Debian 11 (bullseye)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 10.11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL (MariaDB 10.3)
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Are there any known issues when when upgrading from Debian 10 to 11?

On a test machine, I followed the official Debian guide:

https://www.debian.org/releases/stable/ … ng.en.html

After upgrading and rebooting, Dovecot and Postfix and SOGo started OK but iRedAPD threw an error:

someuser@testhost:~$ sudo systemctl status iredapd
● iredapd.service - iRedAPD (A simple posfix policy server)
     Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2021-12-08 22:27:12 PST; 1min 36s ago
    Process: 572 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)
        CPU: 1.934s

Dec 08 22:27:11 testhost python3[572]: Traceback (most recent call last):
Dec 08 22:27:11 testhost python3[572]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
Dec 08 22:27:11 testhost python3[572]:     from libs import __version__, daemon, utils
Dec 08 22:27:11 testhost python3[572]:   File "/opt/iRedAPD-5.0.3/libs/utils.py", line 19, in <module>
Dec 08 22:27:11 testhost python3[572]:     from web import sqlquote
Dec 08 22:27:11 testhost python3[572]: ModuleNotFoundError: No module named 'web'
Dec 08 22:27:12 testhost systemd[1]: iredapd.service: Control process exited, code=exited, status=1/FAILURE
Dec 08 22:27:12 testhost systemd[1]: iredapd.service: Failed with result 'exit-code'.
Dec 08 22:27:12 testhost systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
Dec 08 22:27:12 testhost systemd[1]: iredapd.service: Consumed 1.934s CPU time.

And that's just the iRedAPD service. I don't know what else within iRedMail and iRedAdmin-Pro might be broken.

Thanks in advance for troubleshooting clues.

----

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

2

Re: Upgrading to Debian 11 (bullseye)

there were some threads already about exactly the same issue, let me find it.

pip install web.py should fix it

3

Re: Upgrading to Debian 11 (bullseye)

FYI: https://docs.iredmail.org/upgrade.debian.10-11.html

4

Re: Upgrading to Debian 11 (bullseye)

Thank you! Debian 11 now works as expected.

The only remaining thing I am unsure about is this line from my nginx config:

fastcgi_pass unix:/run/php/php74-fpm.sock;

The socket file does not exist on my system. I changed this to:

fastcgi_pass unix:/run/fcgiwrap.socket;

because that file does exist.

Not sure if php7x-fpm.sock was part of the standard iredmail installation, though, or how to recreate it. If it's not used by iredmail or iredadmin, then this is the wrong place to ask.

5

Re: Upgrading to Debian 11 (bullseye)

iRedMail configures Nginx to communicate with php-fpm via network address "127.0.0.1:9999" by default, you can try to replace the socket path by the network address.

6

Re: Upgrading to Debian 11 (bullseye)

ZhangHuangbin wrote:

iRedMail configures Nginx to communicate with php-fpm via network address "127.0.0.1:9999" by default, you can try to replace the socket path by the network address.

Thanks. "fastcgi_pass 127.0.0.1:9999" and then restarting nginx and php7.4-fpm seems to be working OK.