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

    Update to working-1.6 fails with mysql: unrecognized service

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    6
    306
    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.
    • L
      lperoma
      last edited by lperoma

      Update to working-1.6 fails with mysql: unrecognized service

      System: Debian 12, upgrading from 1.5.10.1629.

      See: fog_error_1.6.0-beta.2141.log

      * Setting up and starting MySQL..........................System has not been booted with systemd as init system (PID 1). Can't operate.
      Failed to connect to bus: Host is down
      mysql.service points to "mariadb" which is not a valid unit name: Invalid cross-device link
      mysqld.service points to "mariadb" which is not a valid unit name: Invalid cross-device link
      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 /root/fogproject/bin/error_logs/fog_error_1.6.0-beta.2141.log !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
      ii  vsftpd        3.0.3-13+tb2    amd64       lightweight, efficient FTP server written for security
      ii  wget          1.21.3-1tb2     amd64       retrieves files from the web
      ii  zlib1g:amd64  1:1.2.13.dfsg-1 amd64       compression library - runtime
      New password: Retype new password: passwd: password updated successfully
      mysql: unrecognized service
      

      I suspect a mariadb / mysql naming issue. I really do not know where to start so going back to 1.5.10.1629 backup.

      Any ideas ?

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

        @lperoma This sounds odd, but somehow you have sysvinit on debian 12, when most modern systems are now using systemd.

        That said you should be able to fix this by:
        apt install systemd-sysv
        Though I don’t know if that’s all that will be necessary?

        Now I would, of course, get a backup of your server before blindly running these things

        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

        L 1 Reply Last reply Reply Quote 0
        • L
          lperoma
          last edited by

          I have created links in /etc/init.d for mysql and mysqld -> mariadb.

          Installation seems to progress now a little better, I’ve updated the schema, but still get these errors:

          * Setting up and starting MySQL..........................System has not been booted with systemd as init system (PID 1). Can't operate.
          Failed to connect to bus: Host is down
          mysql.service points to "mariadb" which is not a valid unit name: Invalid cross-device link
          mysqld.service points to "mariadb" which is not a valid unit name: Invalid cross-device link
          OK
          * Testing connection to database..........................OK
          * Setting up MySQL user and database......................Skipped
          * Backing up user reports................................Done
          * Stopping web service...................................OK
          * Setting up Apache and PHP files.........................OK
          * Testing and removing symbolic links if found............OK
          * Backing up old data.....................................OK
          * Copying new files to web folder.........................OK
          * Creating config file....................................OK
          * Creating redirection index file........................Skipped
          * Downloading kernel, init and fog-client binaries.......Done
          * Copying binaries to destination paths....................OK
          * Enabling apache2 and php services on boot...............OK
          * Creating SSL Certificate................................OK
          * Creating auth pub key and cert..........................OK
          * Resetting SSL Permissions...............................OK
          * Setting up Apache virtual host (normal).................OK
          * Configuring PHP FPM.....................................Done
          * Starting and checking status of web services............OK
          * Changing permissions on apache log files................OK
          * Backing up database.....................................Done
          
          * You still need to install/update your database schema.
            This can be done by opening a web browser and going to:
          
              http://192.168.0.21/fog/management
          
          * Press [Enter] key when database is updated/installed.
          
          * Update fogstorage database password.....................OK
          * Granting access to fogstorage database user.............Skipped
          * Setting up storage......................................OK
          * Setting up and starting DHCP Server.....................Skipped
          * Configuring default PXE file............................OK
          * Setting up and starting TFTP Server.....................OK
          * Setting up and starting VSFTP Server....................OK
          * Setting up FOG Snapins..................................OK
          * Setting up FOG Snapins..................................OK
          * Setting up FOG Services.................................OK
          * Setting up and starting NFS Server......................OK
          * Configuring UDPCast.....................................OK
          * Building UDPCast binaries...............................OK
          * Installing UDPCast......................................OK
          * Installing FOG System Scripts...........................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 /root/fogproject/bin/error_logs/fog_error_1.6.0-beta.2141.log !!
          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
          
          install -m 644 udp-receiver.1 udp-receiver.1 /usr/local/share/man/man1
          install -m 644 rateGovernor.h /usr/local/include/udpcast
          System has not been booted with systemd as init system (PID 1). Can't operate.
          Failed to connect to bus: Host is down
          root@fogserver:/root/fogproject#
          

          FOG seems to run ok for the moment, despite install errors. Is it OK to use ?

          JJ FullmerJ 1 Reply Last reply Reply Quote 0
          • JJ FullmerJ
            JJ Fullmer Testers @lperoma
            last edited by JJ Fullmer

            @lperoma What do you get running mariadb -V

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            L 1 Reply Last reply Reply Quote 0
            • L
              lperoma @JJ Fullmer
              last edited by

              @JJ-Fullmer

              mariadb -V
              mariadb Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

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

                @lperoma This sounds odd, but somehow you have sysvinit on debian 12, when most modern systems are now using systemd.

                That said you should be able to fix this by:
                apt install systemd-sysv
                Though I don’t know if that’s all that will be necessary?

                Now I would, of course, get a backup of your server before blindly running these things

                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

                L 1 Reply Last reply Reply Quote 0
                • L
                  lperoma @Tom Elliott
                  last edited by

                  @Tom-Elliott Success. I switched to single-user with init 1, and installing systemd-sysv worked fine.

                  As this is a machine upgraded from debian 11, maybe it wasn’t using systemd. Installation of 1.6 worked no problem Thanks,

                  1 Reply Last reply Reply Quote 0
                  • [[undefined-on, L lperoma, ]]
                  • 1 / 1
                  • First post
                    Last post

                  148

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project