<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Upgrading to Ubuntu 22.04 and PHP 8.1]]></title>
		<link>https://forum.iredmail.org/topic20409-upgrading-to-ubuntu-2204-and-php-81.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20409.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Upgrading to Ubuntu 22.04 and PHP 8.1.]]></description>
		<lastBuildDate>Sun, 28 Apr 2024 10:15:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Upgrading to Ubuntu 22.04 and PHP 8.1]]></title>
			<link>https://forum.iredmail.org/post88698.html#p88698</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.8<br />- Deployed with iRedMail Easy or the downloadable installer? Yes<br />- Linux/BSD distribution name and version: Ubuntu Server 22.04 LTS<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>With the additional helpful information posted by ZhangHuangbin and dave.opc in <a href="https://forum.iredmail.org/topic19256-upgrading-to-ubuntu-2204-and-php-81-is-there-any-unforeseen-issues.html">upgrading to Ubuntu 22.04 and PHP 8.1 is there any unforeseen issues</a>, I made a second attempt to upgrade from Ubuntu Server 20.04 LTS to 22.04 LTS.</p><p>Commenting out the Metric {} block in /etc/dovecot/dovecot.conf solved the errors seen during the upgrade regarding dovecot and after restarting the service, dovecot was happy.</p><p>During the upgrade from 20.04 LTS to 22.04 LTS (where you always have to chose &#039;N&#039; when asked whether the keep the existing config file or whether to overwrite it with the new version), sogo and sogo activesync were uninstalled and the repository commented out in /etc/apt/sources.list.</p><p>After the upgrade, I uncommented the repository in /etc/apt/sourced.list and changed the line to<br /></p><div class="codebox"><pre><code>deb https://packages.sogo.nu/nightly/5/ubuntu/ jammy jammy</code></pre></div><p>At this stage, you will get an error for that repository when doing </p><div class="codebox"><pre><code>sudo apt update</code></pre></div><p>I solved this by following method 1 in <a href="https://itsfoss.com/key-is-stored-in-legacy-trusted-gpg/">this post</a></p><p>After having done that </p><div class="codebox"><pre><code>sudo apt update</code></pre></div><p> was error-free, and I reinstalled sogo and sogo activesync. Luckily, the /etc/sogo directory and the sogo.config file had not been erased during the upgrade.</p><p>Don&#039;t also forget to enable the new php version by:<br /></p><div class="codebox"><pre><code>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</code></pre></div><p>I then checked my database via adminer and I saw in all the tables the following error in red: </p><div class="quotebox"><blockquote><p>cannot load from mysql.proc. the table is probably corrupted</p></blockquote></div><p>After having forced an upgrade of the database by:</p><div class="codebox"><pre><code>$ mysql_upgrade --force --force -u root -p</code></pre></div><p>those errors were also gone.</p><p>I think my iRedmail server is happy again, time will tell. In any case, not an entirely pain-free exercise and backing up your system before upgrading is highly highly recommended ...</p>]]></description>
			<author><![CDATA[null@example.com (AGI)]]></author>
			<pubDate>Sun, 28 Apr 2024 10:15:11 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88698.html#p88698</guid>
		</item>
	</channel>
</rss>
