Skip to main content

Upgraded mysql via WHM after shell upgrade failed - mysql service won't start

Comments

3 comments

  • cPanelKenneth
    The 5.0 RPMs in your output, which contain cpanel in the RPM name, can be ignored. Those are used internally by cPanel & WHM, not by Apache. What is the output of /scripts/check_cpanel_rpms --fix?
    0
  • yoHuge
    Ok, I had just done a remove package command from shell before I got the forum reply: # rpm -e cpanel-mysql-5.0.96-1.cp1136
    because I thought that was conflicting, but it didn't change anything. The results of entering the command to check cpanel rpms is: root@huge [/]# /scripts/check_cpanel_rpms [20130924.154603] [20130924.154603] Problems were detected with cPanel-provided files which are RPM controlled. [20130924.154603] If you did not make these changes intentionally, you can correct them by running: [20130924.154603] [20130924.154603] > /usr/local/cpanel/scripts/check_cpanel_rpms --fix [20130924.154603] The following RPMs are missing from your system: [20130924.154603] MySQL55-server.5.5.32-1.cp1136 [20130924.154603] cpanel-mysql.5.0.96-1.cp1136 Do you want to repair these RPMs?(y/n): y [20130924.154709] Removing 0 broken rpms: [20130924.154709] rpm: no packages given for erase [20130924.154717] Downloading http://httpupdate.cpanel.net/RPM/11.36/centos/5/i386/rpm.md5 [20130924.154718] Downloading http://httpupdate.cpanel.net/RPM/11.36/centos/5/i386/cpanel-mysql-5.0.96-1.cp1136.i386.rpm [20130924.154719] MySQL55-server-5.5.32-1.cp1136.i386.rpm already downloaded [20130924.154720] Hooks system enabled [20130924.154720] Checking for and running RPM::Versions 'pre' hooks for any RPMs about to be installed warn [check_cpanel_rpms] program "/scripts/premysqlup" is not executable [20130924.154720] All required 'pre' hooks have been run [20130924.154722] No RPMS need to be uninstalled [20130924.154722] Installing new rpms: cpanel-mysql-5.0.96-1.cp1136.i386.rpm MySQL55-server-5.5.32-1.cp1136.i386.rpm [20130924.154722] Preparing packages for installation... [20130924.154724] cpanel-mysql-5.0.96-1.cp1136 [20130924.154724] You have more than one PID file: [20130924.154724] -rw-rw---- 1 mysql mysql 5 Sep 18 2009 /var/lib/mysql/huge.pid [20130924.154724] -rw-rw---- 1 mysql mysql 5 Mar 19 2009 /var/lib/mysql/mail.myservername.com.pid [20130924.154724] -rw-rw---- 1 mysql mysql 5 Mar 19 2009 /var/lib/mysql/web2.justhost.com.pid [20130924.154724] Please check which one (if any) corresponds to a running server [20130924.154724] and delete all others before repeating the MySQL upgrade. [20130924.154724] error: %pre(MySQL55-server-5.5.32-1.cp1136.i386) scriptlet failed, exit status 1 [20130924.154724] error: install: %pre scriptlet failed (2), skipping MySQL55-server-5.5.32-1.cp1136 [20130924.154724] W Error Code: 2 [20130924.154724] E The following possible errors were detected while installing RPMs: [20130924.154724] E %pre(MySQL55-server-5.5.32-1.cp1136.i386) scriptlet failed, exit status 1 install [20130924.154724] The Administrator will be notified to review this output when this script completes [20130924.154724] Checking for and running RPM::Versions 'post' hooks for any RPMs just installed warn [check_cpanel_rpms] program "/scripts/postmysqlinstall" is not executable warn [check_cpanel_rpms] program "/scripts/postmysqlup" is not executable [20130924.154724] All required 'post' hooks have been run
    What files do I have to remove before mysql will be repaired? The names 'huge' and 'myservername' are mine, but I have no idea who 'justhost' is or why they are in the results page.
    0
  • yoHuge
    It's working now .. removed the PID files, then ran 'check_cpanel_rpms' again. Then ran easyapache again after that and it all works. Thanks.
    0

Please sign in to leave a comment.