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

    Fog failed to update due to mysql-client package

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    3 Posts 2 Posters 34 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.
    • N
      Nono
      last edited by

      On a ubuntu server, I fail to update FOG from 1.5.10.1798 to 1.5.10.1870 :

      before the update:

      $ dpkg -l | grep mysql-client
      ii  mysql-client                           8.0.46-0ubuntu0.22.04.2                          all          MySQL database client (metapackage depending on the latest version)
      ii  mysql-client-8.0                       8.0.46-0ubuntu0.22.04.2                          amd64        MySQL database client binaries
      ii  mysql-client-core-8.0                  8.0.46-0ubuntu0.22.04.2                          amd64        MySQL database core client binaries
      

      then:

      $ sudo ./installfog.sh
      [...]
       * Checking package: liblzma-dev...............................OK
       * Checking package: m4........................................OK
       * Checking package: mariadb-server............................OK
       * Checking package: mysql-client..............................Failed!
      
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      !! The installer was not able to run all the way to the end as   !!
      !! something has caused it to fail. The following few lines are  !!
      !! from the error log file which might help us figure out what's !!
      !! wrong. Please add this information when reporting an error.   !!
      !! As well you might want to take a look at the full error log   !!
      !! in /tmp/fogproject-1.5.10.1870/bin/error_logs/fog_error_1.5.10.1870.log !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
      ii  libc6:amd64    2.35-0ubuntu3.13 amd64        GNU C Library: Shared libraries
      ii  liblzma-dev:amd64 5.2.5-2ubuntu1 amd64        XZ-format compression library - development files
      ii  m4             1.4.18-5ubuntu2 amd64        macro processing language
      ii  mariadb-server 1:10.6.23-0ubuntu0.22.04.1 all          MariaDB database server (metapackage depending on the latest version)
      dpkg-query: no packages found matching mysql-client
      

      and if I check the packages:

      $ dpkg -l | grep mysql-client
      

      It’s not there anymore.

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • N
        Nono
        last edited by

        Okay, I found the culprit.
        I still had listed on the /opt/fog/.fogsettings

        mysql-client mysql-server
        

        on the packages list, instead of

        mariadb-client mariadb-server
        

        This came from a migration from another server.

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

          @Nono Edit your /opt/fog/.fogsettings file and replace entries of ‘mysql-client’ with ‘mariadb-client’

          I suspect they’ve updated the repo to solely exist for mariadb-client, but you had it before that package switch/change occurred so your fogsettings file is just expecting mysql-client always.

          I might also recommend removing the existing mysql-client package just to ensure clean flow, though of course get a backup before any such actions.

          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

          109

          Online

          12.7k

          Users

          17.6k

          Topics

          156.6k

          Posts
          Copyright © 2012-2026 FOG Project