How to extract a file from Plesk RPM/DEB package?

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:49:43 UTC

Modified:

2016-12-21 19:19:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to extract a file from Plesk RPM/DEB package?

Symptoms

Plesk is unable to execute the backend utility with one of the following messages:

Error: <utility> failed: execve failed for /usr/local/psa/admin/sbin/<utility>: No such file or directory System error 2: No such file or directory

Error: <utility> failed: execve failed for /usr/local/psa/admin/sbin/<utility>: Exec format error System error 8: Exec format error

Cause

Utility is either missing or corrupted.

Resolution

Unpack the missing file from Plesk packages and put it in place of missing/damaged one.

You can do it by either using this script , or following the steps described below.

Extract from RPM

  1. Identify which package file belongs to:

    # rpm -qf /usr/local/psa/admin/sbin/wrapper
    plesk-service-node-utilities-12.5.30-cos6.build1205150826.19.x86_64
  2. Find the package in subdirectories in http://autoinstall.plesk.com/PSA_12.5.30/dist-rpm-CentOS-6-x86_64/ ( Note: replace Plesk version 12.5.30 , OS CentOS-6 and architecture x86_64 with version, OS and architecture of your server. )

  3. Create a temporary directory and download the package there:

    # mkdir -p /tmp/rpm-unpack
    # cd /tmp/rpm-unpack
    # wget http://autoinstall.plesk.com/PSA_12.5.30/dist-rpm-CentOS-6-x86_64/opt/agent/plesk-service-node-utilities-12.5.30-cos6.build1205150826.19.x86_64.rpm
  4. Unpack the package into the directory:

    # rpm2cpio plesk-service-node-utilities-12.5.30-cos6.build1205150826.19.x86_64.rpm | cpio -ivd --no-absolute-filenames
  5. Replace damaged/missing file with the file unpacked from the RPM package:

    # mv ./usr/local/psa/admin/sbin/wrapper /usr/local/psa/admin/sbin/wrapper

Extract from DEB

  1. Identify which package file belongs to:

    # dpkg -S /opt/psa/admin/sbin/wrapper
    plesk-service-node-utilities: /opt/psa/admin/sbin/wrapper

    Note: Use paths with /opt/psa instead of /usr/local/psa .

  2. Find the package in subdirectories in http://autoinstall.plesk.com/PSA_12.5.30/dist-deb-Debian-7.0-x86_64/ ( Note: replace Plesk version 12.5.30 , OS Debian-7.0 and architecture x86_64 with version, OS and architecture of your server. )

  3. Create a temporary directory and download the package there:

    # mkdir -p /tmp/deb-unpack
    # cd /tmp/deb-unpack
    # wget http://autoinstall.plesk.com/PSA_12.5.30/dist-deb-Debian-7.0-x86_64/opt/agent/plesk-service-node-utilities_12.5.30-debian7.0.build1205150826.19_amd64.deb
  4. Unpack the package into the directory:

    # dpkg-deb -x plesk-service-node-utilities_12.5.30-debian7.0.build1205150826.19_amd64.deb .
  5. Replace damaged/missing file with the file unpacked from the RPM package:

    # mv ./opt/psa/admin/sbin/wrapper /opt/psa/admin/sbin/wrapper
Have more questions? Submit a request
Please sign in to leave a comment.