<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Upgrade to 1.6.0.158 fails with mysql 8.4.13]]></title><description><![CDATA[<p dir="auto">Ubuntu 26.04.1 has updated to mysql 8.4.13, where certain long data types cannot have default values.</p>
<p dir="auto">Having updated my server to this release, upgrading FOG fails</p>
<pre><code>mysql&gt; ALTER TABLE `hosts` ADD COLUMN `hostSecTokenPrev` longtext NOT NULL DEFAULT '' AFTER `hostInfoLock`;
ERROR 1101 (42000): BLOB, TEXT, GEOMETRY or JSON column 'hostSecTokenPrev' can't have a default value
</code></pre>
<p dir="auto">It’s impossible to continue with the installation after this error</p>
]]></description><link>http://forums.fogproject.org/topic/18329/upgrade-to-1-6-0-158-fails-with-mysql-8-4-13</link><generator>RSS for Node</generator><lastBuildDate>Mon, 23 Nov 2026 15:35:15 GMT</lastBuildDate><atom:link href="http://forums.fogproject.org/topic/18329.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Nov 2026 14:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Upgrade to 1.6.0.158 fails with mysql 8.4.13 on Mon, 23 Nov 2026 15:21:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="http://forums.fogproject.org/uid/41877">@MarkG</a> Thanks for the report. This is a known defect in 1.6.0.158, and the fix is already on the dev-branch.</p>
<p dir="auto">The cause: the schema update builds its column definitions from a MariaDB capture. MariaDB accepts a literal default on a TEXT column. MySQL does not (error 1101). The same upgrade also hits two other MySQL-only errors: 1305 (Ubuntu’s MySQL has no MD5()) and 1292.</p>
<p dir="auto">PR #2121 fixes all three. On MySQL 8.0.13 and later, FOG now writes the TEXT default as an expression, <code>DEFAULT ('')</code>, which MySQL accepts. MariaDB is unchanged.</p>
<p dir="auto">The fix reaches the stable channel in the next monthly release on December 11. To get it now, re-run the installer from dev-branch in your FOG git checkout:</p>
<pre><code>cd /path/to/fogproject
git fetch origin
git checkout dev-branch
git pull
cd bin
sudo ./installfog.sh -y
</code></pre>
<p dir="auto">The schema update compares your database to the expected structure and adds only what is missing, so it continues from where the failed run stopped. After the December 11 release, <code>git checkout stable</code> puts you back on the stable line.</p>
<p dir="auto">If the installer stops again, please post the full error and the output of <code>mysql --version</code>.</p>
]]></description><link>http://forums.fogproject.org/post/159124</link><guid isPermaLink="true">http://forums.fogproject.org/post/159124</guid><dc:creator><![CDATA[Tom Elliott]]></dc:creator><pubDate>Mon, 23 Nov 2026 15:21:02 GMT</pubDate></item></channel></rss>