• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.4k
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.
  • W
    Wayne Workman
    last edited by May 27, 2015, 1:23 PM

    Right. Do the MySQL commands not work with it?

    Either way, I think you should try to uninstall it and then re-run your FOG installer.

    Again, only delete your DB if you have it backed up.

    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
    • S
      sgennadi
      last edited by May 27, 2015, 1:48 PM

      yum remove mysql-client mysql-server mysql-common mysql-devel
      Loaded plugins: fastestmirror, langpacks
      No Match for argument: mysql-client
      No Match for argument: mysql-server
      No Match for argument: mysql-common
      No Match for argument: mysql-devel
      No Packages marked for removal

      yum remove mariadb-libs.x86_64 mariadb-server.x86_64
      rm -rf /var/lib/mysql/
      rm -rf /etc/my.cnf
      yum install mariadb-libs.x86_64 mariadb-server.x86_64

      • Setting up and starting MySQL…error reading information on service mysqld: No such file or directory
      1 Reply Last reply Reply Quote 0
      • W
        Wayne Workman
        last edited by Wayne Workman May 27, 2015, 8:03 AM May 27, 2015, 2:03 PM

        Try these?

        [CODE]sudo yum remove MariaDB-client MariaDB-server
        sudo yum install MariaDB-server MariaDB-client[/CODE]

        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
        • S
          sgennadi
          last edited by May 28, 2015, 8:48 AM

          …/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”

          T 1 Reply Last reply May 28, 2015, 9:56 PM Reply Quote 0
          • T
            Tom Elliott @sgennadi
            last edited by May 28, 2015, 9:56 PM

            @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 May 29, 2015, 5:23 AM

              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 May 31, 2015, 11:51 AM

                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 May 31, 2015, 4:55 PM

                  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 Nov 12, 2015, 3:16 AM

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

                    W 1 Reply Last reply Nov 12, 2015, 3:23 AM Reply Quote 0
                    • W
                      Wayne Workman @Rusty
                      last edited by Nov 12, 2015, 3:23 AM

                      @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 Nov 12, 2015, 3:31 AM Reply Quote 0
                      • R
                        Rusty @Wayne Workman
                        last edited by Nov 12, 2015, 3:31 AM

                        @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)
                        
                        T 1 Reply Last reply Nov 12, 2015, 3:35 AM Reply Quote 0
                        • T
                          Tom Elliott @Rusty
                          last edited by Nov 12, 2015, 3:35 AM

                          @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
                          • W
                            Wayne Workman
                            last edited by Nov 12, 2015, 3:41 AM

                            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 Nov 12, 2015, 4:03 AM

                              I am running CentOS 7 with the latest FOG version

                              1 Reply Last reply Reply Quote 0
                              • R
                                Rusty
                                last edited by Nov 12, 2015, 4:06 AM

                                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

                                W 1 Reply Last reply Nov 12, 2015, 4:15 AM Reply Quote 0
                                • W
                                  Wayne Workman @Rusty
                                  last edited by Wayne Workman Nov 11, 2015, 10:16 PM Nov 12, 2015, 4:15 AM

                                  @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 Nov 12, 2015, 5:55 AM

                                    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

                                    161

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project