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.

/scripts/upcp problem - urgent please help

Discussion in 'General Discussion' started by PHP Warner, Mar 1, 2007.

  1. PHP Warner

    PHP Warner Member

    Joined:
    Aug 6, 2006
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    When I ran the /scripts/upcp I have received lots of errors like this:

    Code:
    cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
    Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
    
    cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
    
    cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
    Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
    Requested space: 1551036 bytes, free space: 45634070528 bytes in /var/spool/cpbsdpkgs/instmp.Pr3JPz
    
    Deinstalling old: libtool
    cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... cd: can't cd to /usr/ports/sysutils/portupgrade
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
    Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
    Requested space: 1551036 bytes, free space: 45629999104 bytes in /var/spool/cpbsdpkgs/instmp.rrdcwj
    My system is, Freebsd 5.4 and WHM 10.8.0 cPanel 10.9.0-R139

    How can I fix this problem?

    Thanks now.
     
  2. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    Run /scripts/portsup and see if that fixes it. If not, submit a ticket with cpanel as it looks like the port location was changed;

    cd: can't cd to /usr/ports/sysutils/portupgrade
     
  3. PHP Warner

    PHP Warner Member

    Joined:
    Aug 6, 2006
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Thank you easyhoster1, I've fixed this with the following steps.

    1. mv /var/db/pkg/pkgdb.db /var/db/pkg/pkgdb.db.bak
    2. pkgdb -F
     
Loading...

Share This Page