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

    SVN 3480 Setting up and starting MySQL...error

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    4
    20
    9.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.
    • S
      sgennadi
      last edited by

      …/lib/redhat/config.sh
      RHVER=rpm -qa | grep release | xargs rpm -q --queryformat '%{VERSION}' | cut -c -1
      receive wrong value if atomic repo installed

      rpm -qa | grep release
      atomic-release-1.0-19.el7.art.noarch
      epel-release-7-5.noarch
      remi-release-7.0-1.el7.remi.noarch
      centos-release-7-1.1503.el7.centos.2.8.x86_64

      rpm -qa | grep release | xargs rpm -q --queryformat ‘%{VERSION}’ | cut -c -1
      1
      …/lib/redhat/functions.sh
      echo -n " * Setting up and starting MySQL…";
      if [ “$RHVER” == “7” -o “$linuxReleaseName” == “Fedora” ]

      “$RHVER” == “1”
      Setting up and starting MySQL… error

      $RHVER must be something like:
      /bin/rpm -qf /etc/redhat-release --qf “%{VERSION}\n”

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

        @sgennadi so…what’s this mean?

        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 1
        • S
          sgennadi
          last edited by

          What mean if you have repo installed with release file like atomic-release-1.0-19.el7.art.noarch , environment variable $rhver receive value 1 not 7 on centos/rhel 7… So detection of mariadb server not happening and mysql server absent by default on centos/rhel 7… What cause error :
          Setting up and starting MySQL…error reading information on service mysqld: No such file or directory

          1 Reply Last reply Reply Quote 0
          • S
            sgennadi
            last edited by

            SVN 3493 not fix issue with rhel/centos 7 update 1

            …/config.sh
            RHVER=awk ‘{for(i=1;i<=NF;i++) if ($i == “release”) print $(i+1)}’ /etc/redhat-release
            Receive Value = 7.1.1503

            RHVER=echo ${RHVER%.*}
            Receive Value = 7.1
            …/functions.sh

            configureMySql()
            {
            echo -n " * Setting up and starting MySQL…";
            if [ “7.1” == “7” -o “$linuxReleaseName” == “Fedora” ]; then
            systemctl=“yes”;
            systemctl enable mariadb.service >/dev/null 2>&1;
            systemctl restart mariadb.service >/dev/null 2>&1;
            else

            1 Reply Last reply Reply Quote 0
            • S
              sgennadi
              last edited by

              RHVER=awk '{for(i=1;i<=NF;i++) if ($i == "release") print $(i+1)}' /etc/redhat-release | cut -d. -f 1;

              Solve problem

              1 Reply Last reply Reply Quote 1
              • R
                Rusty
                last edited by

                Can someone please explain what file this “fix” applies and maybe a bit more info for noobs like me to fix it ?
                Thanks ! 🙂

                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @Rusty
                  last edited by

                  @Rusty This particular thread’s solution is quite old. Tom has since made many changes to how the installer handles this. I think it’s best to wait for @Tom-Elliott 's input.

                  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/

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    Rusty @Wayne Workman
                    last edited by

                    @Wayne-Workman Thanks Wayne. I tried uninstalling and reinstalling Mariadb. Fog installer recognises Mariadb has been installed but:

                     * Setting up and starting MySQL...Note: Forwarding request to 'systemctl enable mysqld.service'.
                    Failed to issue method call: No such file or directory
                    OK
                      * Backing up user reports...OK
                      * Setting up and starting Apache Web Server...Note: Forwarding request to 'systemctl enable httpd.service'.
                    Failed! (3)
                    
                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @Rusty
                      last edited by

                      @Rusty what version of fog are you running? What OS and version of it too?

                      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
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        For the record, I just did a clean installation using SVN 4330 and CentOS 7 fully updated and it went just fine.

                        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
                        • R
                          Rusty
                          last edited by

                          I am running CentOS 7 with the latest FOG version

                          1 Reply Last reply Reply Quote 0
                          • R
                            Rusty
                            last edited by

                            I am starting from scratch so I might just continue with that first…
                            @Wayne-Workman did you follow all steps here ? https://wiki.fogproject.org/wiki/index.php/Installation_on_CentOS_7

                            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                            • Wayne WorkmanW
                              Wayne Workman @Rusty
                              last edited by Wayne Workman

                              @Rusty No. After helping here so much and learning so much about fog and linux, I don’t even follow instructions anymore. I just wing it. Like you would wing installing a new program on Windows.

                              lets see, I think I can fit the entire installation into one single line…

                              Execute this as root.

                              yum update -y;yum install subversion -y;setenforce 0;systemctl stop firewalld;cd ~;mkdir svn;cd svn;svn co https://svn.code.sf.net/p/freeghost/code/trunk;cd trunk/bin;./installfog.sh

                              of course that just stops SELinux and Firewall, it doesn’t disable them. I think that article needs re-written, it was last modified in February 2015. A lot has changed since then.

                              And it looks like it gives you directions to install fog 0.32. Fog stable is 1.2.0, and Fog Trunk can install on CentOS 7 without any modifications besides selinux and firewall.

                              If you want something more comprehensive and up-to-date, the Fedora 21 server article works on CentOS 7, there are notes on the one line that need altered or discarded for CentOS 7 and Fedora 22 server.

                              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
                              • R
                                Rusty
                                last edited by

                                That’s a great line @Wayne-Workman !
                                Installed without a hitch.

                                Both time I have installed FOG though, the password given at the end of the install doesn’t work.
                                Last time I looked up how to change it, after that I could log into the web interface.

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

                                157

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project