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

    1.6 Database update issue

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    4 Posts 2 Posters 35 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.
    • T
      toschulz
      last edited by

      I updated my Fog server to Debian Trixie, and one thing led to another, and I ended up moving over to 1.6-working. It looks like part of my database schema is out of sync. I always get datatables error when I pull up details for any host.

      I’ve just tried updating the installer files from github and re-run the install script, but I can’t get the error message to go away.

      Does anyone have a fix so I don’t get errors about a missing host-login-history-table?
      I have a database backup from before the switch to 1.6, so I can revert to 1.5.x if needed

      Screenshot_20260729_110608.png

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

        Is this preventing things from working in the UI?

        What version of 1.6 are you running (should tell you exactly at the bottom right of the UI)

        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

        T 1 Reply Last reply Reply Quote 0
        • T
          toschulz @Tom Elliott
          last edited by

          @Tom-Elliott

          The Version is: 1.6.0-beta.3075

          As far as I can tell, everything seems to be working with the exception of host login history
          Screenshot_20260730_085703.png

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

            @toschulz So I suspect the problem is due to a divergence of db schema between dev-branch/stable + working-1.6

            If you can update yoru Mysql directly:

            sudo mariadb -u root fog (if no root password of course - if you have a root password add -p

            UPDATE schemaVersion SET vVersion=0;

            Then refresh your screen, click the install/update, and hopefully the error will go away.

            The way the schema is configured is it will attempt (idempotently) to rerun every single SQL query in the schema chain.

            This should fix the problem you’re seeing.

            I believe there’s a column on the login history piece being requested that may just simply be missing which would cause the issue with datatables.

            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

            87

            Online

            12.7k

            Users

            17.6k

            Topics

            156.8k

            Posts
            Copyright © 2012-2026 FOG Project