# Percona Server update error

**URL:** <https://forums.percona.com/t/percona-server-update-error/2793>\
**Category:** Other MySQL® Questions\
**Created:** [July 5, 2013, 7:12am UTC](https://forums.percona.com/t/percona-server-update-error/2793 "2013-07-05T07:12:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OC2PS](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/oc2ps/32/942_2.png) [@OC2PS](https://forums.percona.com/u/OC2PS)\
**Post date:** [July 5, 2013, 7:12am UTC](https://forums.percona.com/t/percona-server-update-error/2793/1 "2013-07-05T07:12:19Z")

</div>

Percona Server updates via webmin/yum return the following error

> [@](#):
>
> Error in PREIN scriptlet in rpm package Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86\_64
> 
> Your MySQL directory ‘/var/lib/mysql’ has more than one PID file:  
> -rw-rw---- 1 mysql mysql 5 Apr 6 19:48 /var/lib/mysql/dom.pid  
> -rw-rw---- 1 mysql mysql 5 Jun 2 15:25 /var/lib/mysql/vps.dom.hu.pid  
> Please check which one (if any) corresponds to a running server and delete all others before repeating the MySQL upgrade.
> 
> error: %pre(Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86\_64) scriptlet failed, exit status 1  
> error: install: %pre scriptlet failed (2), skipping Percona-Server-server-55-5.5.32-rel31.0.549.rhel6
> 
> Verifying : Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86\_64 1/2  
> Percona-Server-server-55-5.5.30-rel30.2.508.rhel6.x86\_64 was supposed to be removed but is not!  
> Verifying : Percona-Server-server-55-5.5.30-rel30.2.508.rhel6.x86\_64 2/2
> 
> Failed:  
> Percona-Server-server-55.x86\_64 0:5.5.30-rel30.2.508.rhel6  
> Percona-Server-server-55.x86\_64 0:5.5.32-rel31.0.549.rhel6
> 
> Complete!  
> … install failed!

Stack:  
CentOS 6 64-bit  
nginX  
Percona MySQL server  
PHP 5.4  
also running webmin and ISPConfig

---

<div class="post-metadata">

**Author:** ![mirfan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mirfan/32/16890_2.png) [@mirfan](https://forums.percona.com/u/mirfan)\
**Post date:** [July 5, 2013, 10:47am UTC](https://forums.percona.com/t/percona-server-update-error/2793/2 "2013-07-05T10:47:21Z")

</div>

Hi,

What are your steps to upgrade ? Did you remove the old packages before upgrade ?  
Let me show you steps to upgrade hopefully it will work.

1. Stop mysqld
2. Remove percona server packages.
3. Install new percona server packages.
4. Run mysql\_upgrade
5. Start mysqld

To be on safe side you can take important database backup before upgrade. Look likes you didn’t stopped the mysqld before upgrade.

---

<div class="post-metadata">

**Author:** ![OC2PS](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/oc2ps/32/942_2.png) [@OC2PS](https://forums.percona.com/u/OC2PS)\
**Post date:** [July 10, 2013, 1:27am UTC](https://forums.percona.com/t/percona-server-update-error/2793/3 "2013-07-10T01:27:36Z")

</div>

> [@mirfan;10815](#):
>
> What are your steps to upgrade ?

I was running the upgrade via webmin and assuming that it would go through the sequence of steps correctly.

> [@mirfan;10815](#):
>
> Look likes you didn’t stopped the mysqld before upgrade.

I focused on the error that says “two PID files”…so are you saying that 2 PID files is not the problem?

P.S. Sorry it took me a bit to reply…got no notification from these forums that someone has posted a reply to this topic…

---

<div class="post-metadata">

**Author:** ![OC2PS](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/oc2ps/32/942_2.png) [@OC2PS](https://forums.percona.com/u/OC2PS)\
**Post date:** [July 10, 2013, 1:32am UTC](https://forums.percona.com/t/percona-server-update-error/2793/4 "2013-07-10T01:32:28Z")

</div>

This is the complete upgrade process echo from webmin:

> [@](#):
>
> Now updating Percona-Server-server-55 …  
> Installing package(s) with command yum -y install Percona-Server-server-55 …
> 
> Loaded plugins: fastestmirror  
> Loading mirror speeds from cached hostfile
> 
> - Webmin: [webmin.mirror.somersettechsolutions.co.uk](http://webmin.mirror.somersettechsolutions.co.uk)
> - base: [ftp.freepark.org](http://ftp.freepark.org)
> - epel: mirror.pmf.kg.ac.rs
> - extras: [ftp.freepark.org](http://ftp.freepark.org)
> - rpmforge: ftp.lug.ro
> - updates: mirror.centos.com.ba
> - webtatic: [uk.repo.webtatic.com](http://uk.repo.webtatic.com)
> 
> Setting up Install Process
> 
> Resolving Dependencies → Running transaction check —\> Package Percona-Server-server-55.x86\_64 0:5.5.30-rel30.2.508.rhel6 will be updated —\> Package Percona-Server-server-55.x86\_64 0:5.5.32-rel31.0.549.rhel6 will be an update → Finished Dependency Resolution
> 
> Dependencies Resolved  
> ================================================== ==============================  
> Package Arch Version Repository Size  
> ================================================== ==============================  
> Updating: Percona-Server-server-55 x86\_64 5.5.32-rel31.0.549.rhel6 percona 15 M Transaction Summary ================================================== ==============================  
> Upgrade 1 Package(s)  
> Total download size: 15 M
> 
> Downloading Packages:  
> Running rpm\_check\_debug  
> Running Transaction Test Transaction  
> Test Succeeded  
> Running Transaction
> 
> Error in PREIN scriptlet in rpm package Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86\_64
> 
> Your MySQL directory ‘/var/lib/mysql’ has more than one PID file:  
> -rw-rw---- 1 mysql mysql 5 Apr 6 19:48 /var/lib/mysql/dom.pid  
> -rw-rw---- 1 mysql mysql 5 Jun 2 15:25 /var/lib/mysql/vps.dom.hu.pid  
> Please check which one (if any) corresponds to a running server and delete all others before repeating the MySQL upgrade.
> 
> error: %pre(Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86\_64) scriptlet failed, exit status 1  
> error: install: %pre scriptlet failed (2), skipping Percona-Server-server-55-5.5.32-rel31.0.549.rhel6
> 
> Verifying : Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86\_64 1/2Percona-Server-server-55-5.5.30-rel30.2.508.rhel6.x86\_64 was supposed to be removed but is not!  
> Verifying : Percona-Server-server-55-5.5.30-rel30.2.508.rhel6.x86\_64 2/2
> 
> Failed:  
> Percona-Server-server-55.x86\_64 0:5.5.30-rel30.2.508.rhel6  
> Percona-Server-server-55.x86\_64 0:5.5.32-rel31.0.549.rhel6
> 
> Complete!  
> … install failed!

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [August 16, 2013, 5:39am UTC](https://forums.percona.com/t/percona-server-update-error/2793/5 "2013-08-16T05:39:06Z")

</div>

You seem to be hitting this bug: [url][https://bugs.launchpad.net/percona-server/+bug/1201036[/url]](https://bugs.launchpad.net/percona-server/+bug/1201036%5B/url%5D) This is going to be fixed in 5.5.33.
