• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Upgrade to 1.6.0.158 fails with mysql 8.4.13

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    2 Posts 2 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MarkG
      last edited by

      Ubuntu 26.04.1 has updated to mysql 8.4.13, where certain long data types cannot have default values.

      Having updated my server to this release, upgrading FOG fails

      mysql> 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
      

      It’s impossible to continue with the installation after this error

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @MarkG
        last edited by

        @MarkG Thanks for the report. This is a known defect in 1.6.0.158, and the fix is already on the dev-branch.

        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.

        PR #2121 fixes all three. On MySQL 8.0.13 and later, FOG now writes the TEXT default as an expression, DEFAULT (''), which MySQL accepts. MariaDB is unchanged.

        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:

        cd /path/to/fogproject
        git fetch origin
        git checkout dev-branch
        git pull
        cd bin
        sudo ./installfog.sh -y
        

        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, git checkout stable puts you back on the stable line.

        If the installer stops again, please post the full error and the output of mysql --version.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        48

        Online

        12.8k

        Users

        17.7k

        Topics

        157.5k

        Posts
        Copyright © 2012-2026 FOG Project