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

    Mysql-server check fails during installation script on CentOS 7 and SVN 2076

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    10
    5.7k
    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.
    • M
      madskillz23
      last edited by

      During the install script “Checking Packages…mysql-server” fails. yum install mysql-server now installs mariadb-galera-server-5.5. Is it possible the checking script isn’t handling mariadb properly?

      1 Reply Last reply Reply Quote 0
      • M
        madskillz23
        last edited by

        Also it will try installing package mysql-server every time the installation script is run, instead of skipping it. (I installed it after the first failure with yum)

        1 Reply Last reply Reply Quote 0
        • Jaymes DriverJ
          Jaymes Driver Developer
          last edited by

          Comment or remove the call from the installer script and run it again, if you have in fact installed mysql on your own, it is required!

          WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

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

            First and foremost.

            CentOS 7.0 is BRAND F-in new.

            As in, after 1.1.2 had been released.

            Why is this a bug???

            It’s not something I coded or faulted in the 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! 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
            • M
              madskillz23
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • M
                madskillz23
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • M
                  madskillz23
                  last edited by

                  Hey guys thank you for all the hard work you are doing on this project. I know CentOS7 is brand new, and I am not expecting the fix to be implemented anytime soon. I called it a bug because it was a bug in what I considered expected functionality. But yes Tom, you are right it is nothing wrong with the current code. I guess you could move this to a feature request then.

                  In CentOS7 the repositories default to mariadb-galera-server, instead of just mariadb-server. To implement the proposed change the functions in lib/redhat/functions.sh : installPackages() and confirmPackageInstallation(), both need an additional if statement for mariadb-galera-server.

                  [CODE]installPackages() …

                  if [ $x == “mysql-server” ]

                              then
                  
                                      rpm -q $x >/dev/null 2>&1;
                  
                                      if [ "$?" != "0" ]
                  
                                      then
                  
                                              x="mariadb-server";
                  
                                      fi
                  
                                      rpm -q $x >/dev/null 2>&1;
                  
                                      if [ "$?" != "0" ]
                  
                                      then
                  
                                              x="mysql-server";
                  
                                      fi
                  
                                      rpm -q $x >/dev/null 2>&1;
                  
                                      if [ "$?" != "0" ]
                  
                                      then
                  
                                              x="mariadb-galera-server";
                  
                                      fi
                  

                  fi

                  [/CODE]

                  [CODE]confirmPackageInstallation()

                  …

                  if [ $x == “mysql-server” ]

                              then
                  
                                      rpm -q $x >/dev/null 2>&1;
                  
                                      if [ "$?" != "0" ]
                  
                                      then
                  
                                              x="mariadb-server";
                  
                                      fi
                  
                                      rpm -q $x >/dev/null 2>&1;
                  
                                      if [ "$?" != "0" ]
                  
                                      then
                  
                                              x="mariadb-galera-server";
                  
                                      fi
                  

                  fi

                  [/CODE]

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

                    THank you for the “patch” and I’ve now added this to svn trunk at 2084. I haven’t tested it, but it is there and should work.

                    Thanks for reporting. I hope you understand why I got upset and didn’t mean it directly at one person, but in general, your post just happened to be “the one”.

                    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
                    • M
                      madskillz23
                      last edited by

                      [quote=“Tom Elliott, post: 33483, member: 7271”]THank you for the “patch” and I’ve now added this to svn trunk at 2084. I haven’t tested it, but it is there and should work.

                      Thanks for reporting. I hope you understand why I got upset and didn’t mean it directly at one person, but in general, your post just happened to be “the one”.[/quote]

                      Thank you very much, and I understand. I am working to continue testing CentOS 7 support and let you know of any issues. It is not my production environment, so any issues encountered may be addressed at your leisure. Should there be another thread somewhere for CentOS 7 support?

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

                        I think Feature Request would be pretty good as I am working on the “next” release, and this may be one that waits for after that release.

                        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

                        155

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project