Expand installation via Autoinstaller fails with "exit status 255" when SELinux runs in Enforcing mode

Article ID: 5616 
Last Review: Dec,26 2008
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Expand 2.x

Symptoms

I use FedoraCore5 or FedoraCore6 and SELinux runs in Enforcing mode. Cannot install Plesk Expand with Autoinstaller.

Cause

The following error is generated when try installation of Plesk Expand via Autoinstaller:
error: %trigger(expand-locale-base-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 20. Installing package checkpolicy
[AI::RPM] 21. Installing package expand-dist-repository
[AI::RPM] 22. Installing package expand-locale-de-DE
error: %post(expand-locale-de-DE-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 23. Installing package expand-locale-es-ES
error: %post(expand-locale-es-ES-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 24. Installing package expand-locale-fr-FR
error: %post(expand-locale-fr-FR-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 25. Installing package expand-locale-ja-JP
error: %post(expand-locale-ja-JP-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 26. Installing package expand-locale-ru-RU
error: %post(expand-locale-ru-RU-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 27. Installing package expand-locale-zh-CN
error: %post(expand-locale-zh-CN-2.3.2-080905.noarch) scriptlet failed, exit status 255
[AI::RPM] 28. Installing package expand-locale-zh-TW
error: %post(expand-locale-zh-TW-2.3.2-080905.noarch) scriptlet failed, exit status 255
error: %pre(expand-selinux-support-2.3.2-8.noarch) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping
expand-selinux-support-2.3.2-8

SELinux runs in Enforcing mode and uses targeted policy.

~# getenforce
Enforcing
~#


The following packages are installed:

selinux-policy-2.2.23-15
selinux-policy-targeted-2.2.23-15


The problem is caused by incorrect SELinux targeted policy set by old package selinux-policy-targeted.

Resolution

In order to install Plesk Expand via Autoinstaller on server with enabled SELinux package selinux-policy-targeted should be upgraded to version 2.4.6 or higher.

Alternatively you may change SELinux mode to Permissive with setenforce 0 or disable it.
To disable SELinux you should change it state in /etc/selinux/conf and reboot the server:

/etc/selinux/conf
....................
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

....................




Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields