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.

Not a HASH reference

Discussion in 'General Discussion' started by VeyronZA, Jan 6, 2011.

  1. VeyronZA

    VeyronZA Registered

    Joined:
    Jan 6, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South Africa
    Hi,

    I have a Centos VPS in the UK, i just logged on my WHM Panel and found the following error:
    I am no expert with cpanel, can someone please help!

    Fixed
    run the following in ssh:
    /scripts/upcp --force

    Thanks Cpanel support!
     
    #1 VeyronZA, Jan 6, 2011
    Last edited: Jan 7, 2011
  2. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Hm.. I am getting this error when trying to run /scripts/easyapache and upcp--force did not help. And we are not running vps. Any ideas, suggestions? Here is exact error:

    Not a HASH reference at /var/cpanel/perl/easy/Cpanel/Easy.pm line 339.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Could you provide us with a little more context on this error message? Several lines of output before and after the error would help. As well please provide the cPanel & WHM version number.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    For this error:

    Code:
    Not a HASH reference at /var/cpanel/perl/easy/Cpanel/Easy.pm line 339.
    It appears that several tickets in our system show it output when simply trying to run "/scripts/easyapache" command. Could you try running the following command to see if this corrects the issue?

    Code:
    /scripts/perlinstaller --force UNIX::PID
    If this does not correct the issue with running EasyApache, please try the following:

    Code:
    /scripts/checkperlmodules --full --force
    If that still does not work, please submit a ticket using WHM > Support Center > Contact cPanel or the link in my signature. Please post the ticket number here.
     
  5. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Trying installing UNIX::PID did not work:

    Code:
    Warning: Cannot install UNIX::PID, don't know what it is.
    Try the command
    
        i /UNIX::PID/
    After upgrading all perl modules - error did not go away, so yes, I will open support ticket now.

    cpanelkenneth: that is the only output I had really:

    Code:
    root@abcde [~]# /scripts/easyapache
    Not a HASH reference at /var/cpanel/perl/easy/Cpanel/Easy.pm line 339.
    
    Running WHM 11.28.87 CENTOS 5.6 x86_64 standard on abcde

    Anton.
     
  6. Alex Stupar

    Alex Stupar Member

    Joined:
    Feb 4, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    Did you find a solution? I have the same problem.

    WHM 11.28.87 CENTOS 5.6 i686 standard
     
  7. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    yes, cPanel support script helped me. Here is their explanation.

    EasyApache, like much of cPanel, is written in Perl. I ran /scripts/checkperlmodules --full to make sure that all Perl modules required by cPanel are installed and up to date, and I got the following output:


    Running install for module 'Term::ReadLine::Perl'
    Running make for I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303.tar.gz
    CPAN: Digest::SHA loaded ok (v5.62)
    CPAN: Compress::Zlib loaded ok (v2.035)

    Checksum mismatch for distribution file. Please investigate.

    Distribution id = I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303.tar.gz
    CPAN_USERID ILYAZ (Ilya Zakharevich <cpan@ilyaz.org>)
    CALLED_FOR Term::ReadLine::Perl
    CHECKSUM_STATUS
    CONTAINSMODS Term::ReadLine::Perl readline
    UPLOAD_DATE 2009-10-28
    force_update 1
    incommandcolor 1
    localfile /home/.cpan/sources/authors/id/I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303.tar.gz
    negative_prefs_cache 0
    notest 1
    prefs HASH(0x154b4930)
    prereq_pm_detected 0
    reqtype c

    I'd recommend removing /home/.cpan/sources/authors/id/I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303
    .tar.gz. Its checksum is incorrect. Maybe you have configured your 'urllist' with a bad URL. Please check this array with 'o conf urllist', and retry.


    I did as suggested and deleted the tarball for Term::Readline::Perl:


    root@[~]# rm /home/.cpan/sources/authors/id/I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303.tar.gz rm: remove regular file `/home/.cpan/sources/authors/id/I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303.tar.gz'? y


    I then ran /scripts/checkperlmodules --full again. This time, all required modules were reported as installed. EasyApache now runs and the interface looks as expected.

    Anton.
     
  8. Alex Stupar

    Alex Stupar Member

    Joined:
    Feb 4, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    Thank you! After running /scripts/checkperlmodules --full for the first time everything went back to normal.
     
Loading...

Share This Page