Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    2

    Default cPanelPerl.pm corrupted?

    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?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2002
    Posts
    51

    Default

    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 by hbouma; 01-09-2005 at 10:23 AM.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Hi Hal,

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

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Billy has just fixed this in EDGE.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    cPanelBilly
    Guest

    Default

    Quote Originally Posted by chirpy
    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.

  7. #7
    Registered User
    Join Date
    Jul 2004
    Posts
    2

    Default

    Thanks chirpy.

Similar Threads & Tags
Similar threads

  1. Database Corrupted
    By Jags in forum Database Discussions
    Replies: 3
    Last Post: 12-21-2010, 05:06 PM
  2. /etc/passwd getting corrupted
    By EWD in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 10-24-2007, 04:50 PM
  3. Valiases Corrupted
    By reddrake in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-26-2003, 04:41 PM
  4. Exim corrupted
    By redhatguy in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-07-2003, 10:58 AM
  5. Corrupted files
    By leesharp in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-17-2003, 07:17 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube