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.

cPanelPerl.pm corrupted?

Discussion in 'General Discussion' started by Lentsu, Jan 9, 2005.

  1. Lentsu

    Lentsu Registered

    Joined:
    Jul 7, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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
     
  3. hbouma

    hbouma Well-Known Member

    Joined:
    Jun 8, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    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
     
    #3 hbouma, Jan 9, 2005
    Last edited: Jan 9, 2005
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Billy has just fixed this in EDGE.
     
  6. cPanelBilly

    cPanelBilly Guest

    I cant take credit for this one, I just advised everyone it was fixed, but yes, it is confirmed as fixed now.
     
  7. Lentsu

    Lentsu Registered

    Joined:
    Jul 7, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks chirpy.
     
Loading...

Share This Page