CentOS RPM SPEC FILE bug for MariaDB-server RPMs

Bug #863577 reported by p4guru
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MariaDB
In Progress
Undecided
CManns @ XenServ
CentOS
In Progress
Undecided
CManns @ XenServ

Bug 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

Revision history for this message
CManns @ XenServ (cmanns) wrote :

Files or something don't exist.

Working on new RPMs and for EL6 distro's.

Revision history for this message
CManns @ XenServ (cmanns) wrote :

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#

Changed in maria:
assignee: nobody → cmanns (cmanns)
status: New → Confirmed
Changed in centos:
assignee: nobody → cmanns (cmanns)
status: New → Confirmed
Revision history for this message
CManns @ XenServ (cmanns) wrote :

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.

Changed in centos:
status: Confirmed → In Progress
Changed in maria:
status: Confirmed → In Progress
Revision history for this message
CManns @ XenServ (cmanns) wrote :

In prog

Revision history for this message
CManns @ XenServ (cmanns) wrote :

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" :D

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.

Colin Charles (ccharles)
tags: added: packaging
Revision history for this message
Joe Julian (joe.julian) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.