error: install: %pre scriptlet failed (2), skipping MySQL-server-5.0.51a-1.glibc23

thobarn

Well-Known Member
Apr 25, 2008
152
1
68
sanctum sanctorum
I wish to upgrade to MySQl 5. Selected MySQL5.0 under WHM| Server Config | Tweak Settings. When I run /scripts/mysqlup (or WHM | Software | Update Srver Software) this is what I get:

Code:
MySQL Setup Script Version 7.0
Fetching http://httpupdate.cpanel.net/mysqlinstall/EDGE/cPpkgversion (0)[email protected]%...100%......Done
Loaded cPPkgs::MySQL ok!
This is the cPPkgs::MySQL 5.0.51a installer for Linux.
Fetching http://httpupdate.cpanel.net/mysqlinstall/5.0.51a-1/centos/5/MySQL-shared-5.0.51a-1.glibc23.i386.rpm (0)[email protected]%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done
Preparing...                ##################################################
MySQL-shared                ##################################################
Fetching http://httpupdate.cpanel.net/mysqlinstall/5.0.51a-1/centos/5/MySQL-server-5.0.51a-1.glibc23.i386.rpm (0)[email protected]%...2%...3%...4%...5%...6%...7%...8%...9%...10%...11%...12%...13%...14%...15%...16%...17%...18%...19%...20%...21%...22%...23%...24%...25%...26%...27%...28%...29%...30%...31%...32%...33%...34%...35%...36%...37%...38%...39%...40%...41%...42%...43%...44%...45%...46%...47%...48%...49%...50%...51%...52%...53%...54%...55%...56%...57%...58%...59%...60%...61%...62%...63%...64%...65%...66%...67%...68%...69%...70%...71%...72%...73%...74%...75%...76%...77%...78%...79%...80%...81%...82%...83%...84%...85%...86%...87%...88%...89%...90%...91%...92%...93%...94%...95%...96%...97%...98%...99%...100%......Done
Preparing...                ##################################################
error:   install: %pre scriptlet failed (2), skipping MySQL-server-5.0.51a-1.glibc23
Could someone please help? Thanks
Thomas
 

jdlightsey

Perl Developer III
Staff member
Mar 6, 2007
126
2
243
Houston Texas
cPanel Access Level
Root Administrator
If you encounter this again, please submit a ticket marked "Attn: JD". Forcing the install this way shouldn't be necessary. It would be good it identify exactly what's failing with the preinstall script and to get it corrected.
 

thobarn

Well-Known Member
Apr 25, 2008
152
1
68
sanctum sanctorum
[SOLVED] really :)

For future reference, in case anybody has a similar problem. Turns out that /var/tmp was mounted in a way that made it unusable.

vzfs on /var/tmp type vzfs (rw,nosuid,noexec)

Unmounting /var/tmp before running /scripts/mysqlup fixed the problem described in OP.

Special thanks go to J.D. for the help, diagnosis and solution.