1

Topic: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.6.0
- iRedAdmin: 1.7 (MySQL)
- Deployed with iRedMail Easy or the downloadable installer? downloadable  installer
- Linux/BSD distribution name and version: Ubuntu 20.04 LTS
- 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.
====
I am looking at upgrading from Ubuntu 20.04 LTS and PHP 7.4 to  22.04 LTS which come with PHP 8.1.
Is this support by iredmail?

----

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 Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

- Roundcube 1.6.0 still has some compatibility issues with PHP 8.2 on Ubuntu 22.04. Mostly warnings (you will see them in Roundcube log file, defaults to /var/log/maillog), not errors, but not sure whether there's some critical issue yet.
- SOGo is not available on Ubuntu 22.04 yet. Leave a reply in my bug report to help push SOGo team: https://bugs.sogo.nu/view.php?id=5511

3 (edited by gpapaiko 2022-08-29 17:17:38)

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

ZhangHuangbin wrote:

- Roundcube 1.6.0 still has some compatibility issues with PHP 8.2 on Ubuntu 22.04. Mostly warnings (you will see them in Roundcube log file, defaults to /var/log/maillog), not errors, but not sure whether there's some critical issue yet.
- SOGo is not available on Ubuntu 22.04 yet. Leave a reply in my bug report to help push SOGo team: https://bugs.sogo.nu/view.php?id=5511

Hi Zhang,

Thanks for the update.
Not really concerned with RoundCube, as I mainly use Sogo.
RoundCube does not have a calendar nor does it have a per domain customisation (need to check that).

As with SOGO  I download the package and manually install it.
Other then that, my real concern was if iredmail, iredpad and iredAdmin would work with out any issues.

I will do a backup, and then upgrade to 22.04LTS with PHP 8.1.2 and if there are any Issues I will let you know.

Lucky I am doing this on a VM (esxi )

Please keep the post open will I have finished my testing/upgrade and report back. and it other ired upgrades as well.
Thanks
George

4

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

gpapaiko wrote:

my real concern was if iredmail, iredpad and iredAdmin would work with out any issues.

They all work well.

5 (edited by gpapaiko 2022-08-31 17:50:32)

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

ZhangHuangbin wrote:
gpapaiko wrote:

my real concern was if iredmail, iredpad and iredAdmin would work with out any issues.

They all work well.

Hi Zhang,

Just attempted an upgrade from Ubuntu 20.04 LTS to  22.04 LTS.
And the whole system failed
Issue with nginx not starting.
Devecot failed to upgrade and errors were produce during the upgrade process.
The job identifier is 25157.
Aug 31 18:36:49 servername dovecot[48386]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 405: Unknown setting: metric { event_name
Aug 31 18:36:49 servername dovecot[48358]: doveconf: Error: managesieve-login: dump-capability process returned 89
Aug 31 18:36:49 servername dovecot[48358]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 405: Unknown setting: metric { event_name
Aug 31 18:36:49 servername systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a

Sogo was removed completely.
A start job for unit sogo.service has begun execution.
░░
░░ The job identifier is 25329.
Aug 31 18:37:10 servername sogo[48533]:  * /usr/sbin/sogod is not executable.
Aug 31 18:37:10 servername systemd[1]: sogo.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit sogo.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Aug 31 18:37:10 servername systemd[1]: sogo.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit sogo.service has entered the 'failed' state with result 'exit-code'.
Aug 31 18:37:10 servername systemd[1]: Failed to start LSB: SOGo server.
░░ Subject: A start job for unit sogo.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sogo.service has finished with a failure.
░░
░░ The job identifier is 25329 and the job result is failed.


Reverted back to the original snapshot. Will try again tomorrow and see if that is  successful after i upgrade iredmail and ireadmin.

6

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

gpapaiko wrote:

Aug 31 18:36:49 servername dovecot[48386]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 405: Unknown setting: metric { event_name

Comment out the "metric {}" block. It's used by netdata to collect dovecot stats, but netdata doesn't support Dovecot-2.3 yet, so it's useless right now.

Not sure how you install SOGo packages, i'm afraid you're on your own. sad

7

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

I tried upgrading from Ubuntu server 20.04 to 22.04 today and had exactly the same issues. Like you, I had taken a snapshot of my VM, so I could revert back easily.

@Zhang: It would be nice if a FAQ could be created guiding people on what to do to solve the various issues when upgrading from 20.04 to 22.04.

@gpapaiko: Did you figure out the SOGo issue? Did you try the following (from https://bugs.sogo.nu/view.php?id=5511):

sudo wget -O- "https://keys.openpgp.org/vks/v1/by-fingerprint/74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9" | sudo gpg --dearmor | sudo apt-key add -
sudo apt-get update
sudo apt-get install apt-transport-https
sudo tee /etc/apt/sources.list.d/SOGo.list <<EOF
deb https://packages.sogo.nu/nightly/5/ubuntu/ jammy jammy
EOF
sudo apt-get update
sudo apt-get install sogo

gpapaiko wrote:
ZhangHuangbin wrote:
gpapaiko wrote:

my real concern was if iredmail, iredpad and iredAdmin would work with out any issues.

They all work well.

Hi Zhang,

Just attempted an upgrade from Ubuntu 20.04 LTS to  22.04 LTS.
And the whole system failed
Issue with nginx not starting.
Devecot failed to upgrade and errors were produce during the upgrade process.
The job identifier is 25157.
Aug 31 18:36:49 servername dovecot[48386]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 405: Unknown setting: metric { event_name
Aug 31 18:36:49 servername dovecot[48358]: doveconf: Error: managesieve-login: dump-capability process returned 89
Aug 31 18:36:49 servername dovecot[48358]: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 405: Unknown setting: metric { event_name
Aug 31 18:36:49 servername systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a

Sogo was removed completely.
A start job for unit sogo.service has begun execution.
░░
░░ The job identifier is 25329.
Aug 31 18:37:10 servername sogo[48533]:  * /usr/sbin/sogod is not executable.
Aug 31 18:37:10 servername systemd[1]: sogo.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit sogo.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Aug 31 18:37:10 servername systemd[1]: sogo.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit sogo.service has entered the 'failed' state with result 'exit-code'.
Aug 31 18:37:10 servername systemd[1]: Failed to start LSB: SOGo server.
░░ Subject: A start job for unit sogo.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit sogo.service has finished with a failure.
░░
░░ The job identifier is 25329 and the job result is failed.


Reverted back to the original snapshot. Will try again tomorrow and see if that is  successful after i upgrade iredmail and ireadmin.

8

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

AGI wrote:


I tried upgrading from Ubuntu server 20.04 to 22.04 today and had exactly the same issues. Like you, I had taken a snapshot of my VM, so I could revert back easily.

@Zhang: It would be nice if a FAQ could be created guiding people on what to do to solve the various issues when upgrading from 20.04 to 22.04.

@gpapaiko: Did you figure out the SOGo issue? Did you try the following (from https://bugs.sogo.nu/view.php?id=5511):

sudo wget -O- "https://keys.openpgp.org/vks/v1/by-fingerprint/74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9" | sudo gpg --dearmor | sudo apt-key add -
sudo apt-get update
sudo apt-get install apt-transport-https
sudo tee /etc/apt/sources.list.d/SOGo.list <<EOF
deb https://packages.sogo.nu/nightly/5/ubuntu/ jammy jammy
EOF
sudo apt-get update
sudo apt-get install sogo

Reverted back to the original snapshot. Will try again tomorrow and see if that is successful after i upgrade iredmail and ireadmin.

[

Hi,
been busy with some other stuff and had not test.
I am still sitting on 20 and have not upgraded 22 as yet.
SOGO is till the main issue.

9

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

everything is working perfectly after upgrading 20 -> 22
just don't say Yes, when system asks you to install new versions of ssh/dovecot/postfix etc. leave all old config files.

after upgrade do the following:
cp /etc/php/7.4/fpm/pool.d/www.conf /etc/php/8.1/fpm/pool.d/www.conf
systemctl restart php8.1-fpm.service
to enable new php version

10

Re: upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues

Thanks for sharing. smile