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

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
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
 

tgibobby

Active Member
Apr 12, 2004
35
0
156
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 :)
 
Last edited:

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
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 :)
No, haven't tried anything yet...

I will give that a try.

Thanks
Daniel
 

Israel.lopez

Member
Mar 4, 2003
16
0
151
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.
 

HappymanUK

Well-Known Member
May 3, 2003
255
1
168
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
 

lehels

Well-Known Member
Jul 10, 2006
91
0
156
same error,

how do i run that patch?

i save and install as a perl module?

thanks,
 

blakeblake

Member
Apr 2, 2005
24
0
151
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
 

lehels

Well-Known Member
Jul 10, 2006
91
0
156
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
Thanks!
Solved.
 

Zion Ahead

Well-Known Member
Nov 10, 2006
347
0
166
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]#
 

goodgeek

Registered
Sep 20, 2008
1
0
51
permissions

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