[MDEV-577] LP:863577 - CentOS RPM SPEC FILE bug for MariaDB-server RPMs Created: 2011-09-30  Updated: 2012-11-19  Resolved: 2012-11-19

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.2.12
Fix Version/s: 5.2.13

Type: Bug Priority: Major
Reporter: George L Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug863577.xml    

 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



 Comments   
Comment by CManns @ XenServ (Inactive) [ 2011-10-02 ]

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.

Comment by CManns @ XenServ (Inactive) [ 2011-10-02 ]

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#

Comment by CManns @ XenServ (Inactive) [ 2011-10-03 ]

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.

Comment by CManns @ XenServ (Inactive) [ 2011-10-03 ]

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

Comment by CManns @ XenServ (Inactive) [ 2011-11-01 ]

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.

Comment by Rasmus Johansson (Inactive) [ 2012-06-19 ]

Launchpad bug id: 863577

Comment by Joe Julian (Inactive) [ 2012-06-19 ]

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.

Comment by Sergei Golubchik [ 2012-11-19 ]

fixed long time ago

Generated at Thu Feb 08 06:29:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.