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.

Error in cpanel - a fatal error or timeout occured while processing this directive

Discussion in 'General Discussion' started by djblamire, Nov 18, 2006.

  1. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I have just noticed today that when logging into cpanel, and going into the scripts library, at the top of the page it shows the following error:

    [a fatal error or timeout occurred while processing this directive][a fatal error or timeout occurred while processing this directive]

    I have checked the /usr/local/cpanel/logs/error_log file and I see the error similar to the following several times:


    (internal death) Sat Nov 18 14:16:16 2006 [9722] error: Can't locate Lchown.pm in @INC (@INC contains: /usr/local/cpanel /us$
    Cpanel::SafetyBits::BEGIN() called at Lchown.pm line 1
    eval {...} called at Lchown.pm line 1
    eval 'use Lchown;' called at /usr/local/cpanel/Cpanel/SafetyBits.pm line 13
    require Cpanel/SafetyBits.pm called at /usr/local/cpanel/Cpanel/cPAddons.pm line 18
    Cpanel::cPAddons::BEGIN() called at Lchown.pm line 1
    eval {...} called at Lchown.pm line 1
    require Cpanel/cPAddons.pm called at (eval 19) line 2
    main::BEGIN() called at Lchown.pm line 1
    eval {...} called at Lchown.pm line 1
    eval 'use Cpanel::cPAddons
    ;' called at cpanel.pl line 3593
    main::modloader('cPAddons') called at /usr/local/cpanel/Cpanel.pm line 239
    Cpanel::loadmodule('cPAddons') called at cpanel.pl line 537
    main::exectag('<cpanel cPAddons="mainpg(%FORM)">') called at cpanel.pl line 3493
    main::dotag(undef) called at cpanel.pl line 3407
    main::parsehtml('GLOB(0x8ebc960)') called at cpanel.pl line 352
    (internal death) Sat Nov 18 14:16:16 2006 [9722] error: Can't locate Lchown.pm in @INC (@INC contains: /usr/local/cpanel /us$
    BEGIN failed--compilation aborted at (eval 20) line 1.
    eval 'use Lchown;' called at /usr/local/cpanel/Cpanel/SafetyBits.pm line 13
    require Cpanel/SafetyBits.pm called at /usr/local/cpanel/Cpanel/cPAddons.pm line 18
    Cpanel::cPAddons::BEGIN() called at (eval 20) line 1
    eval {...} called at (eval 20) line 1
    require Cpanel/cPAddons.pm called at (eval 19) line 2
    main::BEGIN() called at (eval 20) line 1
    eval {...} called at (eval 20) line 1
    eval 'use Cpanel::cPAddons
    ;' called at cpanel.pl line 3593
    main::modloader('cPAddons') called at /usr/local/cpanel/Cpanel.pm line 239
    Cpanel::loadmodule('cPAddons') called at cpanel.pl line 537
    main::exectag('<cpanel cPAddons="mainpg(%FORM)">') called at cpanel.pl line 3493
    main::dotag(undef) called at cpanel.pl line 3407
    main::parsehtml('GLOB(0x8ebc960)') called at cpanel.pl line 352
    (internal death) Sat Nov 18 14:17:47 2006 [10494] error: Can't locate Lchown.pm in @INC (@INC contains: /usr/local/cpanel /u$
    Cpanel::SafetyBits::BEGIN() called at Lchown.pm line 1
    eval {...} called at Lchown.pm line 1
    eval 'use Lchown;' called at /usr/local/cpanel/Cpanel/SafetyBits.pm line 13
    require Cpanel/SafetyBits.pm called at /usr/local/cpanel/Cpanel/cPAddons.pm line 18
    Cpanel::cPAddons::BEGIN() called at Lchown.pm line 1

    Anyone any idea on what it causing this problem, and what I need to do to try and fix it ??

    Thanks in advance for any help,

    Daniel
     
  2. tgibobby

    tgibobby Active Member

    Joined:
    Apr 12, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Looks like a perl module problem... Did you try "/scripts/upcp --force" ?
    Also updating cpanel forcefully after changing release also helps. This just fixed a similar [error] for me now :)
     
    #2 tgibobby, Nov 18, 2006
    Last edited: Nov 18, 2006
  3. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    No, haven't tried anything yet...

    I will give that a try.

    Thanks
    Daniel
     
  4. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Tried that, unfortunately I am still getting the error :(

    Any ideas ?

    Thanks
    Daniel
     
  5. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Anyone else got any ideas ?

    Thanks
    Daniel
     
  6. Israel.lopez

    Israel.lopez Member

    Joined:
    Mar 4, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    root@xxx [/usr/local/cpanel/logs]# /scripts/perlinstaller Lchown
    Method: Perl Expect
    Fetching CPAN timestamp...Done
    Testing connection speed...(this could take a while)...Done
    Ping:5.466 Testing connection speed to www.mednor.net using pureperl...(318400.00 bytes/s)...Done
    Ping:18.839 Testing connection speed to cpan-sj.viaverio.com using pureperl...(78575.00 bytes/s)...Done
    Three usable mirrors located
    Mirror Check passed for www.mednor.net (/index.html)
    commit: wrote '/usr/lib/perl5/5.8.7/CPAN/Config.pm'
    CPAN: File::HomeDir loaded ok
    CPAN: Storable loaded ok
    Going to read /home/.cpan/Metadata
    Database was generated on Mon, 27 Nov 2006 19:25:09 GMT
    Running install for module Lchown
    Running make for N/NC/NCLEATON/Lchown-1.00.tar.gz
    CPAN: LWP::UserAgent loaded ok
    Fetching with LWP:
    http://www.mednor.net/ftp/pub/mirrors/CPAN/authors/id/N/NC/NCLEATON/Lchown-1.00.tar.gz
    CPAN: Digest::SHA loaded ok
    Fetching with LWP:
    http://www.mednor.net/ftp/pub/mirrors/CPAN/authors/id/N/NC/NCLEATON/CHECKSUMS
    Checksum for /home/.cpan/sources/authors/id/N/NC/NCLEATON/Lchown-1.00.tar.gz ok
    Scanning cache /home/.cpan/build for sizes
    Deleting from cache: /home/.cpan/build/Archive-Zip-1.18 (10.2>10.0 MB)
    Lchown-1.00/
    Lchown-1.00/t/
    Lchown-1.00/t/allplatforms.t
    Lchown-1.00/t/pod-coverage.t
    Lchown-1.00/t/notsup.t
    Lchown-1.00/t/pod.t
    Lchown-1.00/t/sup.t
    Lchown-1.00/t/noimport.t
    Lchown-1.00/META.yml
    Lchown-1.00/Changes
    Lchown-1.00/Lchown.pm
    Lchown-1.00/Lchown.xs
    Lchown-1.00/MANIFEST
    Lchown-1.00/Makefile.PL
    Lchown-1.00/README

    CPAN.pm: Going to build N/NC/NCLEATON/Lchown-1.00.tar.gz

    Checking if your kit is complete...
    Looks good
    Writing Makefile for Lchown
    CPAN: YAML loaded ok
    cp Lchown.pm blib/lib/Lchown.pm
    /usr/bin/perl /usr/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap Lchown.xs > Lchown.xsc && mv Lchown.xsc Lchown.c
    cc -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fpic "-I/usr/lib/perl5/5.8.7/i686-linux/CORE" Lchown.c
    Running Mkbootstrap for Lchown ()
    chmod 644 Lchown.bs
    rm -f blib/arch/auto/Lchown/Lchown.so
    LD_RUN_PATH="" cc -shared -L/usr/local/lib Lchown.o -o blib/arch/auto/Lchown/Lchown.so
    chmod 755 blib/arch/auto/Lchown/Lchown.so
    cp Lchown.bs blib/arch/auto/Lchown/Lchown.bs
    chmod 644 blib/arch/auto/Lchown/Lchown.bs
    Manifying blib/man3/Lchown.3
    /usr/bin/make -- OK
    Running make install
    Installing /usr/lib/perl5/site_perl/5.8.7/i686-linux/auto/Lchown/Lchown.so
    Installing /usr/lib/perl5/site_perl/5.8.7/i686-linux/auto/Lchown/Lchown.bs
    Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
    Installing /usr/lib/perl5/site_perl/5.8.7/i686-linux/Lchown.pm
    Installing /usr/share/man/man3/Lchown.3
    Writing /usr/lib/perl5/site_perl/5.8.7/i686-linux/auto/Lchown/.packlist
    Appending installation info to /usr/lib/perl5/5.8.7/i686-linux/perllocal.pod
    /usr/bin/make install UNINST=1 -- OK
    perlmod--Install done
    root@xxx [/usr/local/cpanel/logs]#

    Seemed to fix it.
     
  7. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    If I run that command I just get the following (and doesn't fix the problem ) :(

    root@server [~]# /scripts/perlinstaller Lchown
    Method: Perl Expect
    Fetching CPAN timestamp...Done
    Testing connection speed...(this could take a while)...Done
    Ping:11.621 Testing connection speed to mirrors.24-7-solutions.net using pureperl...(78275.00 bytes/s)...Done
    Ping:11.128 Testing connection speed to cpan-du.viaverio.com using pureperl...(104800.00 bytes/s)...Done
    Ping:26.738 Testing connection speed to cpan.hexten.net using pureperl...(78750.00 bytes/s)...Done
    Three usable mirrors located
    Mirror Check passed for cpan-du.viaverio.com (/index.html)
    commit: wrote '/usr/lib/perl5/5.8.7/CPAN/Config.pm'
    CPAN: File::HomeDir loaded ok
    CPAN: Storable loaded ok
    Going to read /home/.cpan/Metadata
    Database was generated on Mon, 27 Nov 2006 06:25:00 GMT
    Lchown is up to date (1.00).
    perlmod--Install done
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  9. lehels

    lehels Well-Known Member

    Joined:
    Jul 10, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    same error,

    how do i run that patch?

    i save and install as a perl module?

    thanks,
     
  10. blakeblake

    blakeblake Member

    Joined:
    Apr 2, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    lehels:

    Navigate to /usr/local/cpanel on your box
    touch fix.patch
    copy the contents of the patch supplied by cPanel into the fix.patch file
    patch -p0 < fix.patch

    Hunk 1 & 2 will succeed and 3 will fail but the problem will be resolved.

    /blakeblake
     
  11. lehels

    lehels Well-Known Member

    Joined:
    Jul 10, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Thanks!
    Solved.
     
  12. Zion Ahead

    Zion Ahead Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Tried that, didn't work


    croot@server4 [~]# cd /usr/local/cpanel
    root@server4 [/usr/local/cpanel]# touch fix.patch
    root@server4 [/usr/local/cpanel]# patch -p0 < fix.patch
    root@server4 [/usr/local/cpanel]#
     
  13. goodgeek

    goodgeek Registered

    Joined:
    Sep 20, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    permissions

    for me it was the owner:group incorrectly set on the files we were trying to edit.
     
Loading...

Share This Page