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, email, etc won't start, giving weird PERL errors.

Discussion in 'E-mail Discussions' started by cyberwisdom, Jun 10, 2010.

  1. cyberwisdom

    cyberwisdom Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    PLEASE HELP: cPanel, email, etc won't start, giving weird PERL errors.

    cPanel/WHM is not running along with several other services like email. I've tried starting cpanel via the command line but keep get the errors below. I tried to /scripts/upcp --force and got errors below as well. Apache is working fine however.

    I tried opening a ticket with cpanel support, but I can't get the "Support Access Number" from the command line because I get errors running the command. WHM is down so can't get it from there either.

    Does anybody know what the issue might be?

    Code:
    # service cpanel start
    Starting cPanel services: Can't locate Cpanel/SafeRun/Errors.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startcpsrvd line 9.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startcpsrvd line 9.
                                                               [FAILED]
    Starting cPanel brute force detector services: Can't locate Cpanel/Env.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startcphulkd line 9.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startcphulkd line 9.
                                                               [FAILED]
    Starting cPanel dav services: Can't locate Cpanel/Env.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startcpdavd line 9.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startcpdavd line 9.
                                                               [FAILED]
    Starting pop3 services: Can't locate Cpanel/Env.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startcppop line 10.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startcppop line 10.
                                                               [FAILED]
    Starting cPanel Chat services: 
    Starting Melange Chat services: 
    Starting cPanel ssl services: Can't locate Cpanel/Config.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startstunnel line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startstunnel line 11.
                                                               [FAILED]
    Starting cPanel Queue services: Can't locate Cpanel/Env.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startqueueprocd line 11.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startqueueprocd line 11.
                                                               [FAILED]
    Starting tailwatchd: Can't locate Cpanel/Rlimit.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/Cpanel/CPAN/overload/__Time /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/libexec/tailwatchd line 12.
                                                               [FAILED]
    Starting cPanel Log services: Can't locate Cpanel/OSSys.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/cpanellogd line 9.
    BEGIN failed--compilation aborted at /usr/local/cpanel/cpanellogd line 9.
                                                               [FAILED]
    Starting mailman services:  Can't locate Cpanel/Env.pm in @INC (@INC contains: /usr/local/cpanel /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /usr/local/cpanel/etc/init/startmailman line 5.
    BEGIN failed--compilation aborted at /usr/local/cpanel/etc/init/startmailman line 5.
                                                               [FAILED]
    
    Here's the cPanel update error:
    Code:
    # /scripts/upcp --force
    Can't locate Cpanel/CPAN/URI/Escape.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /scripts/cPScript/Encoder/URI.pm line 8.
    BEGIN failed--compilation aborted at /scripts/cPScript/Encoder/URI.pm line 8.
    Compilation failed in require at /scripts/cPScript/HttpRequest.pm line 15.
    BEGIN failed--compilation aborted at /scripts/cPScript/HttpRequest.pm line 15.
    Compilation failed in require at /scripts/upcp line 17.
    BEGIN failed--compilation aborted at /scripts/upcp line 17.
     
    #1 cyberwisdom, Jun 10, 2010
    Last edited: Jun 10, 2010
  2. rachelm

    rachelm Well-Known Member

    Joined:
    Jan 26, 2005
    Messages:
    94
    Likes Received:
    1
    Trophy Points:
    8
    sounds like you have a corrupted perl install, to reinstall perl do the following:


    first try

    /scripts/fixperl

    if that doesn't do it you'll need a complete perl reinstall so do the following:

    wget http://httpupdate.cpanel.net/perl588installer.tar.gz
    tar xzvf perl588installer.tar.gz
    rm -rf perl588installer.tar.gz (skip this if you want to keep the tarball)
    cd perl588installer/
    ./install

    it'll take awhile but when it's done it should be fixed.
     
  3. cyberwisdom

    cyberwisdom Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Thanks. I tried both. /scripts/fixperl did nothing. It didn't give me a response, not even errors.

    The second command gave me the following error. Is there any other way to fix perl?

    Code:
    # ./install
    Can't locate Cpanel/CPAN/URI/Escape.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at /scripts/cPScript/Encoder/URI.pm line 8.
    BEGIN failed--compilation aborted at /scripts/cPScript/Encoder/URI.pm line 8.
    Compilation failed in require at /scripts/cPScript/HttpRequest.pm line 15.
    BEGIN failed--compilation aborted at /scripts/cPScript/HttpRequest.pm line 15.
    Compilation failed in require at /scripts/cpfetch line 9.
    BEGIN failed--compilation aborted at /scripts/cpfetch line 9.
    Unable to retrieve Perl source at ./install line 39.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. cyberwisdom

    cyberwisdom Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, but those commands also fail.

    Anybody know how I can open a ticket with cpanel without the Support Access Number?
     
  6. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Support access number is in the WHM

    If you have access to the WebHost Manager, or even the shell as root, you should be able to see the support access number. In the WHM, click Main >> Support >> Support Center. The number will be listed at the bottom of the page.

    From the shell, run the following command:

    Code:
    # /usr/local/cpanel/cpanel -S
     
  7. cyberwisdom

    cyberwisdom Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Hi Jared,

    I'm unable to get into WHM because the cpanel service won't start. I also tried to run the command you provided previously, but it gives back errors. I believe it's because your script is based on perl and it corrupted right now.

    How else can I open a ticket?

    This is the error I get when I run the command:
    Code:
    # /usr/local/cpanel/cpanel -S
    /usr/local/cpanel/cpanel: error while loading shared libraries: /usr/local/cpanel/perl/libperl.so: cannot open shared object file: No such file or directory
     
  8. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Please see the private message I sent you in regard to this issue.
     
  9. GreggBz

    GreggBz Registered

    Joined:
    Mar 2, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I am having a very similar issue when trying to install cPanel from scratch on a new server.

    Installing Cpanel, Installing Perl from the tarball, Running the checkperlmodules scripts all fail with this:

    Can't locate Cpanel/CPAN/URI/Escape.pm in @INC.........

    I've tried installing URI::Escape with cpan.

    The server has a fresh, updated install of RHEL 5.

    Please Help!
     
  10. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are /usr/bin/perl and /usr/local/bin/perl both binaries?

    Run the following commands:

    Code:
    # ls -alh /usr/bin/perl
    # ls -alh /usr/local/bin/perl
    and paste the output in your reply.

    /usr/bin/perl and /usr/local/bin/perl should not both be binary files. One should be a binary file, and the other should be a symlink to the binary file (it does not matter which is which, as long as one is a binary and one is a symlink).

    If both are binary files, move one to /root and create a symlink in its place. Next, run /scripts/checkperlmodules.

    What you are describing is a symptom of both /usr/bin/perl and /usr/local/bin/perl being binary files. What can happen is Perl modules can be installed for use by one Perl binary but not the other, and the result is that cPanel cannot find required Perl modules even though you install them.
     
  11. GreggBz

    GreggBz Registered

    Joined:
    Mar 2, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    root@hosting2 [/scripts]# ls -alh /usr/bin/perl
    -rwxr-xr-x 2 root root 14K May 31 08:41 /usr/bin/perl*
    root@hosting2 [/scripts]# ls -alh /usr/local/bin/perl
    /bin/ls: /usr/local/bin/perl: No such file or directory

    I made a symlink to /usr/bin/perl.

    Now, when I run /scripts/checkpermodules I get this:

    Code:
    Can't locate Cpanel/CPAN/Sys/Hostname/Long.pm in @INC (@INC contains: /scripts /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /scripts/cPScript/Sys/Hostname.pm line 12.
    BEGIN failed--compilation aborted at /scripts/cPScript/Sys/Hostname.pm line 12.
    Compilation failed in require at /scripts/cPScript/Sys.pm line 16.
    BEGIN failed--compilation aborted at /scripts/cPScript/Sys.pm line 16.
    Compilation failed in require at ./checkperlmodules line 16.
    BEGIN failed--compilation aborted at ./checkperlmodules line 16.
    
    I did this:
    root@hosting2 [/usr]# find ./ -name Cpan* -print
    ./local/cpanel/Cpanel

    that directory only has one file, SafeFile.pm in it.
     
  12. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Try reinstalling CPAN

    Try the following:

    Code:
    # perl -MCPAN -e shell
    cpan> install Bundle::CPAN
    cpan> reload index
    cpan> reload cpan
    cpan> exit
    # /scripts/checkperlmodules --full
    # /scripts/upcp --force
    If this does not correct the problem, it would be best to submit a ticket so that we may investigate directly.
     
Loading...

Share This Page