Cpanel Software Update failing to 11.38.0.7

jascott

Member
May 17, 2013
5
0
1
cPanel Access Level
Root Administrator
Solved: Cpanel Software Update failing to 11.38.0.7

Hi,

I've recently run into an issue when upgrading from WHM 11.38.0.6 to 11.38.0.7. Previous updates have been working fine, but this most recent update fails.

[20130517.111409] ***** FATAL: Error staging RPM files: Can't use string ("version:2") as a HASH ref while "strict refs" in use at /usr/local/cpanel/scripts/updatenow.static-cpanelsync line 14599.
[20130517.111409] see How to Fix RPM Installation Failures in WHM for more information

If I run the check_cpanel_rpms script, I get a bit more detail;
[email protected] [/scripts]# ./check_cpanel_rpms
Can't use string ("version:2") as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/RPM/Versions/File/YAML.pm line 83.

I've looked around a fair bit now but I have found no clues except that it 'could' be related to Perl (but no exact messaging). If I need to open a support ticket I'll have to go through our management host.

Any help would be appreciated :)
 
Last edited:

jascott

Member
May 17, 2013
5
0
1
cPanel Access Level
Root Administrator
I think I might have had a rubber duck moment.

After commenting out the 'use strict' part of YAML.pm, I got a warning about the 'file_format' version being incorrect inside my local.versions file. Deleted it, rebuilt it using update_local_rpm_versions, and ran the update again. Now it's successful!

I guess something must have got corrupted, so a bit more investigation is needed, but hopefully this might help a lost soul in future :)
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello :)

If you notice the issue again in the future, feel free to paste a copy of the invalid "/var/cpanel/rpm.versions.d/local.versions" file and we can let you know which part of the file is incorrect.

Thank you.