cPanel install is failing with current 'latest' script

kaosent

Active Member
Jul 12, 2005
44
0
156
Problem encountered on a FreeBSD 5.4 server built today, dual P-3, 2G ram, dual 180GB hd's, fbsd minimal install, only changes were to install a version of perl that the latest script would recognize as posted here http://forums.cpanel.net/showthread.php?t=41588 . A workaround was obtained, but not pretty (any suggestions regarding better options or corrective actions would be appreciated):

From Bug Report 3052:
_______________________

Successful install was performed and documented on 7/20/05 as listed in this
post: http://forums.cpanel.net/showthread.php?t=41588
Another attempt performed 8/16/05 on similar server build is currently failing
with the error listed below. WORKAROUND used was to SFTP the entire /home/cpins
directory (including latest and installd/ dir) from the existing maching built
on 7/20/05 to new machine. Install reattempted and has successfully bypassed the
error. cPanel will not install using current latest script on FBSD with the
following output when attempted:




FreeBSD detected!

***************** cPanel for FreeBSD ******************

Welcome to the cPanel installer for FreeBSD.

*******************************************************

scripts/HTTPreq.pm -> /scripts/HTTPreq.pm
scripts/setupmakeconf -> /scripts/setupmakeconf
scripts/portsup -> /scripts/portsup
scripts/pkgmap.pl -> /scripts/pkgmap.pl
scripts/installport.pl -> /scripts/installport.pl
scripts/fileversion.pl -> /scripts/fileversion.pl
scripts/ensurepkg2 -> /scripts/ensurepkg2
scripts/ensurepkg -> /scripts/ensurepkg
scripts/cpsources.pl -> /scripts/cpsources.pl
scripts/cpanelsync -> /scripts/cpanelsync
scripts/cPanelRPM.pm -> /scripts/cPanelRPM.pm
scripts/cPanelBSDPKGS.pm -> /scripts/cPanelBSDPKGS.pm
scripts/bsdpkgpingtest -> /scripts/bsdpkgpingtest
scripts/SafeFile.pm -> /scripts/SafeFile.pm
scripts/RcsRecord.pm -> /scripts/RcsRecord.pm
scripts/updatenow -> /scripts/updatenow
5.008006 is new enough!
Ports are out of date.. updating....
Can't locate /scripts/pkgfixup.pl in @INC (@INC contains:
/usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN
/usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6 .) at
/scripts/ensurepkg line 9.
Can't locate /scripts/pkgfixup.pl in @INC (@INC contains:
/usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN
/usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6 .) at
/scripts/ensurepkg line 9.
FATAL: rsync install failed.
 

Blapto

Active Member
May 13, 2005
36
0
156
Looks like you either need to add /scripts to @INC or just run /scripts/pkgfixup.pl yourself. Never encountered this problem, so I can't be sure.
 

kaosent

Active Member
Jul 12, 2005
44
0
156
That was my initial thought as well.

I should have mentioned that I cannot find that perl file [pkgfixup.pl] in any directory of any cPanel server I currently run (including the /scripts dir just created today on this one). Maybe a typo in the install scripts? Luckily I have the /scripts dir and the /home/cpins dir from an older install on disk, otherwise I would still be running in circles trying to get this new box off the ground!
 

Messiah

Member
PartnerNOC
Jul 5, 2006
22
0
151
I know this post is a year old and whatnot, but I just ran into a similar problem. This time 'latest' was dying 'cause RcsRecord.pm wasn't in /scripts. The heart of this problem is that /scripts isn't getting downloaded properly. You can work around it by downloading the contents of /scripts manually:

rsync -av rsync://rsync.cpanel.net/scripts /scripts

Once you run that, 'latest' should execute normally.
 

dv2support

Member
PartnerNOC
Oct 9, 2002
12
0
151
Thanks, Messiah. I had reinstalled Perl, thinking that would fix it. Saved us a cPanel ticket for a customer.

EDIT:
In case Nick or anyone was wondering about the error returned:

Can't locate RcsRecord.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl . ./scripts) at /scripts/cPScript/StringFunc.pm line 14.
BEGIN failed--compilation aborted at /scripts/cPScript/StringFunc.pm line 14.
Compilation failed in require at /scripts/cPScript/DnsRoots.pm line 13.
BEGIN failed--compilation aborted at /scripts/cPScript/DnsRoots.pm line 13.
Compilation failed in require at scripts/cPScript/HttpRequest.pm line 16.
BEGIN failed--compilation aborted at scripts/cPScript/HttpRequest.pm line 16.
Compilation failed in require at /root/installd/perlbootstrap line 23.
BEGIN failed--compilation aborted at /root/installd/perlbootstrap line 23.

Luis
 
Last edited: