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.

SpamScan Cronjob

Discussion in 'General Discussion' started by fidividi, May 15, 2014.

  1. fidividi

    fidividi Active Member

    Joined:
    Feb 15, 2013
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    On one of our servers, SpamScan cronjob is panicking with below details:

    Subject: "Cron <root@server23> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.php"

    Email body:



    Code:
    Can't locate Net/DNS.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    Can't locate Net/DNS.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    Can't locate Net/DNS.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    Can't locate Net/DNS.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    Can't locate Net/DNS.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.
    BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/cgi/spamscan/spamscan_cron.pl line 2.

    Can you please help us?


    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,734
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please see:

    Internal Perl Modules

    Try installing that Perl module via:

    Code:
    /scripts/perlinstaller Net::DNS
    If it's already installed, please let us know if you see any output when running:

    Code:
    /usr/local/cpanel/3rdparty/bin/perl -V|grep PERL5LIB
    set | grep PERL
    Thank you.
     
  3. fidividi

    fidividi Active Member

    Joined:
    Feb 15, 2013
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Thanks a lot Michael,

    That did it.
     
  4. smartrange

    smartrange Registered

    Joined:
    Jul 29, 2012
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Hello,
    I seem to have the same issue with the "Can't locate Net/DNS.pm in @INC" error.

    When I run /usr/local/cpanel/3rdparty/bin/perl -V|grep PERL5LIB
    I see
    PERL5LIB="/home/username/perl5/lib/perl5"

    Looks like the wrong directory. How can this be fixed please?

    Thanks
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,734
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You can try running the following command to address this issue:

    Code:
    unset PERL5LIB
    Thank you.
     
Loading...

Share This Page