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

Fog Installation Error - Cannot restart MySQL

Scheduled Pinned Locked Moved Solved
FOG Problems
3
10
2.5k
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.
  • 8
    88fingerslukee
    last edited by Oct 12, 2016, 6:25 PM

    Server
    • FOG Version: 1.3.0-RC2
    • OS: Centos 6
    Description

    I’m trying to update from RC2 to the latest (RC13 but this happend on RC11 as well).

    The installation fails when trying to restart mysql. The error looks like this:

    * Setting up and starting MySQL...............................Failed!
    

    When I try to manually start mysql after that I get this:

    /etc/init.d/mysqld: line 103: syntax error near unexpected token `fi'
    /etc/init.d/mysqld: line 103: ` fi'
    

    So I go into the mysqld init file and I see the following:

            # If startsos
            if [ "$1" = "sos" ] ; then
            #        MYOPTIONS="$MYOPTIONS --skip-grant-tables --skip-networking"
            fi
    

    When I remove the comment from the MYOPTIONS line, everything starts correctly, but fog is still on RC2.

    Any thoughts?

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Oct 12, 2016, 6:30 PM

      in bash, if statements cannot have empty ‘happenings’.

      Comment out all three lines and try again.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Oct 12, 2016, 10:51 PM

        The reason it’s still showing rc2 is most likely due to what I call bleedover.

        Please run:
        sudo rm -rf /var/www/fog /var/www/html/fog then rerun the installer.

        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
        • 8
          88fingerslukee
          last edited by Oct 13, 2016, 8:15 PM

          I removed the folder and reran the installer and it still fails. It doesn’t create any files in /var/www/fog or /var/www/html/fog

          How do I change the installer so that it doesn’t overwrite my myslqd init file?

          T 2 Replies Last reply Oct 13, 2016, 8:44 PM Reply Quote 0
          • T
            Tom Elliott @88fingerslukee
            last edited by Oct 13, 2016, 8:44 PM

            @88fingerslukee the installer does not touch any init files. Ever.

            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
            • T
              Tom Elliott @88fingerslukee
              last edited by Oct 13, 2016, 8:45 PM

              @88fingerslukee clarify it only installs the fog service init files

              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

              8 1 Reply Last reply Oct 13, 2016, 9:19 PM Reply Quote 0
              • 8
                88fingerslukee @Tom Elliott
                last edited by Oct 13, 2016, 9:19 PM

                @Tom-Elliott

                I don’t know how to clarify that. What I know is that the installer fails at trying to restart mysqld. If I edit the mysqld init file adn re-run the installer, the init file is overwritten.

                Nothing else gets installed because of the failure.

                T 1 Reply Last reply Oct 13, 2016, 9:21 PM Reply Quote 0
                • T
                  Tom Elliott @88fingerslukee
                  last edited by Oct 13, 2016, 9:21 PM

                  @88fingerslukee FOG is not rewriting the init.d file. My “clarify” is referring to me clarifying that we only install the fog service files.

                  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
                  • T
                    Tom Elliott
                    last edited by Oct 13, 2016, 9:46 PM

                    So apparently, unbeknownst to me, the init.d was being commented simply because it contains one of the things I’m searching for (skip-networking). I’m sorry I screwed it up 😞 Please forgive?

                    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
                    • T
                      Tom Elliott
                      last edited by Oct 13, 2016, 9:54 PM

                      @88fingerslukee Thanks for the remote session. I’d have never found it. This makes sense though. The other threads that had the issue only stated the uncommented it and things worked, I didn’t know this was happening on any re-install.

                      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
                      1 / 1
                      • First post
                        7/10
                        Last post

                      289

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project