Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cpanel Software Update failing to 11.38.0.7

Discussion in 'General Discussion' started by jascott, May 17, 2013.

  1. jascott

    jascott Member

    Joined:
    May 17, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    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;
    root@.. [/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 :)
     
    #1 jascott, May 17, 2013
    Last edited: May 17, 2013
  2. jascott

    jascott Member

    Joined:
    May 17, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    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 :)
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice