Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-577

LP:863577 - CentOS RPM SPEC FILE bug for MariaDB-server RPMs

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.2.12
    • 5.2.13
    • None

    Description

      The bug is outlined at http://kb.askmonty.org/en/mariadb-52x-server-rpm-fails-on-upgrades-error-scriptlet-failed-exit-status

      Basically, on CentOS, MariaDB-server 5.2.x RPMs fail to upgrade properly unless previous MariaDB-server 5.2.x RPM is manually removed:

      Error message:

      error: %pre(MariaDB-server-5.2.9-102.el5.x86_64) scriptlet failed, exit status 1
      error: install: %pre scriptlet failed (2), skipping MariaDB-server-5.2.9-102.el5

      Attachments

        Activity

          Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs
          Files or something don't exist.

          Working on new RPMs and for EL6 distro's.

          cmanns@xenserv CManns @ XenServ (Inactive) added a comment - Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs Files or something don't exist. Working on new RPMs and for EL6 distro's.

          Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs
          Reproduced on a XenServ production sys.

          sh-3.2# rpm -Uvh MariaDB*
          warning: MariaDB-client-5.2.9-102.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1bb943db
          error: Failed dependencies:
          perl(DBI) is needed by MariaDB-server-5.2.9-102.el5.x86_64
          sh-3.2# rpm -Uvh MariaDB* --nodeps
          warning: MariaDB-client-5.2.9-102.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1bb943db
          Preparing... ########################################### [100%]
          1:MariaDB-shared ########################################### [ 25%]

          ******************************************************************
          A MySQL or MariaDB server package (MariaDB-server-5.2.8-102.el5) is installed.

          The current MariaDB server package is provided by a different
          vendor (MariaDB (http://mariadb.com/)) than OurDelta - http://ourdelta.org/. Some files may be installed
          to different locations, including log files and the service
          startup script in /etc/init.d/.

          A manual upgrade is required.

          • Ensure that you have a complete, working backup of your data and my.cnf
            files
          • Shut down the MySQL server cleanly
          • Remove the existing MySQL packages. Usually this command will
            list the packages you should remove:
            rpm qa | grep -i '^mysql'

          You may choose to use 'rpm --nodeps -ev <package-name>' to remove
          the package which contains the mysqlclient shared library. The
          library will be reinstalled by the MariaDB-shared package.

          • Install the new MariaDB packages supplied by OurDelta - http://ourdelta.org/
          • Ensure that the MariaDB server is started
          • Run the 'mysql_upgrade' program

          This is a brief description of the upgrade process. Important details
          can be found in the MariaDB manual, in the Upgrading section.
          ******************************************************************
          error: %pre(MariaDB-server-5.2.9-102.el5.x86_64) scriptlet failed, exit status 1
          error: install: %pre scriptlet failed (2), skipping MariaDB-server-5.2.9-102.el5
          2:MariaDB-client ########################################### [ 50%]
          3:MariaDB-devel ########################################### [ 75%]
          -sh-3.2#

          cmanns@xenserv CManns @ XenServ (Inactive) added a comment - Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs Reproduced on a XenServ production sys. sh-3.2# rpm -Uvh MariaDB * warning: MariaDB-client-5.2.9-102.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1bb943db error: Failed dependencies: perl(DBI) is needed by MariaDB-server-5.2.9-102.el5.x86_64 sh-3.2# rpm -Uvh MariaDB * --nodeps warning: MariaDB-client-5.2.9-102.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1bb943db Preparing... ########################################### [100%] 1:MariaDB-shared ########################################### [ 25%] ****************************************************************** A MySQL or MariaDB server package (MariaDB-server-5.2.8-102.el5) is installed. The current MariaDB server package is provided by a different vendor (MariaDB ( http://mariadb.com/ )) than OurDelta - http://ourdelta.org/ . Some files may be installed to different locations, including log files and the service startup script in /etc/init.d/. A manual upgrade is required. Ensure that you have a complete, working backup of your data and my.cnf files Shut down the MySQL server cleanly Remove the existing MySQL packages. Usually this command will list the packages you should remove: rpm qa | grep -i '^mysql ' You may choose to use 'rpm --nodeps -ev <package-name>' to remove the package which contains the mysqlclient shared library. The library will be reinstalled by the MariaDB-shared package. Install the new MariaDB packages supplied by OurDelta - http://ourdelta.org/ Ensure that the MariaDB server is started Run the 'mysql_upgrade' program This is a brief description of the upgrade process. Important details can be found in the MariaDB manual, in the Upgrading section. ****************************************************************** error: %pre(MariaDB-server-5.2.9-102.el5.x86_64) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping MariaDB-server-5.2.9-102.el5 2:MariaDB-client ########################################### [ 50%] 3:MariaDB-devel ########################################### [ 75%] -sh-3.2#

          Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs
          This is caused by something failing in the %pre block of the spec file the RPM's were built by which will soon be rewrote properly.

          A fix is on it's way shortly, issue already found.

          cmanns@xenserv CManns @ XenServ (Inactive) added a comment - Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs This is caused by something failing in the %pre block of the spec file the RPM's were built by which will soon be rewrote properly. A fix is on it's way shortly, issue already found.

          Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs
          In prog

          cmanns@xenserv CManns @ XenServ (Inactive) added a comment - Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs In prog

          Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs
          I apologize for the delay, as our hosting dept switched to EL6 distros by default this is my spare time top priority.

          I've already got an functional new spec file, I've also fixed this issue it's due to the terribly written old spec file. Mine is from scratch based off a EL6 mysql official RPM.

          I'm going to be building in multiple distro support for the EL family, CentOS, RHEL, ScientificLinux, and cPanel systems- this spec will support the above and EL5/EL6 in one. I'm also going to work with the respected community boards of each distro on getting their RPM setup streamlined to their desires so we may be included in official repositories. However we will also provide RPM's as we do currently with EL that replaces MySQL. The RHEL/CentOS, and possibly ScientificLinux distro's wont include us if we by default replace MySQL. I'm looking into a potental separate RPM to have their system remove mysql and change mariadb to replace :] "yum install mariadb-mysql-converted"

          Stay tuned, probably by end of this month. I mainly need a fast buildbot x86_64 xeon/new opteron and around west coast USA, or I'll have one of my dual xeon servers shipped to me by the end of the month and with the progress the spec is at I'll have MariaDB website alike RPM's built for EL5/EL6, cPanel systems, and a bonus tuned RPM for Nocona/a64 opteron hosts in a few days.

          Also if anybody wants the fixed RPM, I can pass it on if you mass run MariaDB i could see how this upgrade error could be a pain having to rpm -e, and reinstall.

          cmanns@xenserv CManns @ XenServ (Inactive) added a comment - Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs I apologize for the delay, as our hosting dept switched to EL6 distros by default this is my spare time top priority. I've already got an functional new spec file, I've also fixed this issue it's due to the terribly written old spec file. Mine is from scratch based off a EL6 mysql official RPM. I'm going to be building in multiple distro support for the EL family, CentOS, RHEL, ScientificLinux, and cPanel systems- this spec will support the above and EL5/EL6 in one. I'm also going to work with the respected community boards of each distro on getting their RPM setup streamlined to their desires so we may be included in official repositories. However we will also provide RPM's as we do currently with EL that replaces MySQL. The RHEL/CentOS, and possibly ScientificLinux distro's wont include us if we by default replace MySQL. I'm looking into a potental separate RPM to have their system remove mysql and change mariadb to replace :] "yum install mariadb-mysql-converted" Stay tuned, probably by end of this month. I mainly need a fast buildbot x86_64 xeon/new opteron and around west coast USA, or I'll have one of my dual xeon servers shipped to me by the end of the month and with the progress the spec is at I'll have MariaDB website alike RPM's built for EL5/EL6, cPanel systems, and a bonus tuned RPM for Nocona/a64 opteron hosts in a few days. Also if anybody wants the fixed RPM, I can pass it on if you mass run MariaDB i could see how this upgrade error could be a pain having to rpm -e, and reinstall.

          Launchpad bug id: 863577

          ratzpo Rasmus Johansson (Inactive) added a comment - Launchpad bug id: 863577

          Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs
          I think bug #905712 duplicates this one but that one's marked "fix committed". I'm not sure which one should be marked as the dulicate in this case.

          joejulian Joe Julian (Inactive) added a comment - Re: CentOS RPM SPEC FILE bug for MariaDB-server RPMs I think bug #905712 duplicates this one but that one's marked "fix committed". I'm not sure which one should be marked as the dulicate in this case.

          fixed long time ago

          serg Sergei Golubchik added a comment - fixed long time ago

          People

            Unassigned Unassigned
            p4guru George L
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.