1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Upgrade fails: "/usr/bin: cpio: chown failed"

Discussion in 'Plesk for Linux - 8.x and Older' started by eugenevdm, Oct 2, 2007.

  1. eugenevdm

    eugenevdm Silver Pleskian

    30
    68%
    Joined:
    Nov 11, 2003
    Messages:
    611
    Likes Received:
    0
    My upgrade from Plesk 8.1.x to 8.2.0 fails. I get:

    Downloading the file PSA_8.2.0/update-rpm-FedoraCore-4-i386/libxml2-python-2.6.20-1.FC4.i386.rpm: Filefetcher: get file PSA_8.2.0/update-rpm-FedoraCore-4-i386/libxml2-python-2.6.20-1.FC4.i386.rpm
    21%..36%..50%..61%..74%..84%..92%..100% done.
    Starting installation of packages
    Create tiny repository only with resolved list and system packages
    Regenerate packages provides cache.
    Warning: unresolved requires '/usr/bin/lpr' from redhat-lsb-1.3-10.i386
    Find directly required packages for courier-imap-3.0.8-fc4.build82070706.15.i586
    (regen conflicts cache) (update package names cache) (regen obsoletes cache) prepareInstallStep: resolve results for package(s):
    (s) system_installed_bash-3.0-31.i386.rpm
    (s) system_installed_chkconfig-1.3.20-1.i386.rpm
    (s) system_installed_perl-5.8.6-15.i386.rpm
    (s) system_installed_coreutils-5.2.1-48.i386.rpm
    (s) system_installed_xinetd-2.3.13-6.i386.rpm
    (s) system_installed_glibc-2.3.5-10.3.i686.rpm
    (s) system_installed_openssl-0.9.7f-7.10.i686.rpm
    (s) system_installed_db4-4.3.27-5.fc4.i386.rpm
    (s) system_installed_sed-4.1.4-1.i386.rpm
    Installing the package courier-imap-3.0.8-fc4.build82070706.15.i586
    Execute command rpm -U --test /root/swsoft/PSA_8.2.0/dist-rpm-FedoraCore-4-i386/base/courier-imap-3.0.8-fc4.build82070706.15.i586.rpm
    Execute command rpm -U /root/swsoft/PSA_8.2.0/dist-rpm-FedoraCore-4-i386/base/courier-imap-3.0.8-fc4.build82070706.15.i586.rpm
    Stopping Courier-IMAP server:
    Stopping imap [ OK ]
    Stopping imap-ssl [ OK ]
    Stopping pop3 [ OK ]
    Stopping pop3-ssl [ OK ]

    error: unpacking of archive failed on file /usr/sbin: cpio: chown failed - Operation not permitted
    Filefetcher: get file PSA_8.2.0/plesk-8.2.0-fc4-i386.inf3
    ERROR: An error occurred during installation of packages.
    Attention! Your software might be inoperable.
    Please, contact product technical support.
    Execute command getenforce

    ----

    Please help!
     
  2. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Try and turn off SELinux

    setenforce 0
     
  3. eugenevdm

    eugenevdm Silver Pleskian

    30
    68%
    Joined:
    Nov 11, 2003
    Messages:
    611
    Likes Received:
    0
    As I recall I fixed this problem by running:

    chattr -ais filename multiple times when I got the CPIO error. My suspicion is the problem is a symptom of a hacked box.
     
  4. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    yeah that could be an LKM rootkit, what are the immutable settings on /usr/sbin set to? (lsattr /usr |grep sbin). The default setting should just be +I (indexed)
     
  5. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    also if you run things like LES on the box it adds +i to a lot of files and directories.
     
  6. eugenevdm

    eugenevdm Silver Pleskian

    30
    68%
    Joined:
    Nov 11, 2003
    Messages:
    611
    Likes Received:
    0
    Everything was like this:
    Code:
    suS-iadAc---- ./filename
    Time for a re-install.
     
  7. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Ouch. Thats ugly... that means that the when the file is deleted (s flag) its blocks are zeroed.. but with 'u' set the data is saved. Not sure how you even managed that, its for undelete support.

    'S' means sync to the disk whenever it changes, 'i' is immutable, which is probably whats breaking cpio, same with 'a', that means append only (good for logs!). 'd' I had to look up, thats a tag used by the backup command dump, which means "dont back me up". 'A' means dont set atime (access time, when you read a file this changes. +A is good for performance), which leads to 'c', which means "compress"... which is bad for performance, but good for saving space.

    Quite the schizophrenic configuration youve got there!
     
Loading...