Lentsu

Registered
Jul 7, 2004
2
0
151
Everytime I try to use /scripts/upcp, I get an error.

Fetching CPAN mirrors...
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: No such file or directory
Input file = /root/.cpcpan/MIRRORED.BY.bz2, output file = /root/.cpcpan/MIRRORED.BY

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

bzip2: Deleting output file /root/.cpcpan/MIRRORED.BY, if it exists.
Cannot fetch mirror list at /scripts/cPanelPerl.pm line 118, <Socket_Handle> line 77.


I've copyed new MIRRORED.BY.bz2 from updates.cpanel.net. It didn't help.

Does somebody know how to fix this?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,450
31
473
Go on, have a guess
I'm going to log this bug in bugzilla if it's not already in there.

As a workaround, you can do the following:

rm -Rf /root/.cpcpan/*
cd /root/.cpcpan
wget updates.cpanel.net/pub/cpanmirror/MIRRORED.BY.bz2
bunzip2 MIRRORED.BY.bz2
chattr +i MIRRORED.BY
/scripts/perlinstaller


When cPanel has fixed the bug, remove the immutable flag:

chattr -i /root/.cpcpan/MIRRORED.BY

Logged:
http://bugzilla.cpanel.net/show_bug.cgi?id=1901
 

hbouma

Well-Known Member
Jun 8, 2002
60
0
306
Hi,

Chirpy pretty much answered everything I was going to. However, if you're running on a Virtuozzo VPS (like myself) you can't do chattr +i on the MIRRORED.BY file. You can however touch it so that the /scripts/cPanelPerl.pm script won't update it because the file is still new enough to not need updating. That is what I did to resolve the problem.

Good luck!

Hal
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,450
31
473
Go on, have a guess
Hi Hal,

I quite liked your solution ;) Hopefully cPanel will get this fixed quickly to make it unnecessary for the workarounds.
 
C

cPanelBilly

Guest
chirpy said:
Billy has just fixed this in EDGE.
I cant take credit for this one, I just advised everyone it was fixed, but yes, it is confirmed as fixed now.
 
Thread starter Similar threads Forum Replies Date
C General Discussion 4
L General Discussion 1