The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page