• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Error while installation on CentOS 7, language problem

vospy

New Pleskian
My setup: Plesk Onyx 17.0.17 with install type “Recommended” on CentOS 7 amd64. I can’t install because there is always an error message and installation canceled. I’m not sure, if this is a bug in Plesk or a bug in Yum. I can install different applications with Yum without any problem, but while Plesk installs installation crashes.

I found a workaround after a long time analyzing this error, but problem is already present and reproducible.

The final error message: “ERROR: Failed to run the Yum utility. The Yum utility failed to install the required packages.” An other error some steps earlier: “UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 0: ordinal not in range(128)”. The full log you can find bottom.

The problem occurs if LANGUAGE variable is set, in my case, to “de_DE.UTF-8”. LANG and LC_* variables are uninteresting in this procedure and not relevant for this problem, only LANGUAGE.

Your situation could looks like following (LANG and LC_* are en_US, LANGUAGE is de_DE) and error occurs.
Code:
[root@localhost ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[root@localhost ~]# echo $LANGUAGE
de_DE.UTF-8


But if your situation is like following (LANG and LC_* are de_DE, LANGUAGE is empty), the hole install process finished with success.
Code:
[root@localhost ~]# locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
[root@localhost ~]# echo $LANGUAGE



The install log:
Preparing Your System for Product Installation
===============================================================================

There are 159 packages required for the product to function properly which
were not found in your system.

There are 0 packages that need to be upgraded
in order to install the product.


Available actions:
(F) Go forward
(B) Go back
(Q) Cancel installation
(S) Show the list of packages

Select an action [F/b/q/s]:
Installing packages
Geladene Plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.softaculous.com
* extras: mirror.softaculous.com
* updates: mirror.softaculous.com
libc-client-2007f-4.el7.1.x86_64.rpm | 559 kB 00:00
libjpeg-turbo-1.2.90-5.el7.x86_64.rpm | 134 kB 00:00
libmcrypt-2.5.8-13.el7.x86_64.rpm | 99 kB 00:00
libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm | 49 kB 00:00
libpng-1.5.13-7.el7_2.x86_64.rpm | 213 kB 00:00
libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00
perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00
perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00
perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00
perl-DBD-MySQL-4.023-5.el7.x86_64.rpm | 140 kB 00:00
perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:03
perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00
libicu-50.1.2-15.el7.x86_64.rpm | 6.9 MB 00:06
perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00
perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00
perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00
perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00
perl-Getopt-Long-2.40-2.el7.noarch.rpm | 56 kB 00:00
perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00
perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00
perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00
perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00
perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00
perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:03
perl-Pod-Escapes-1.04-291.el7.noarch.rpm | 51 kB 00:00
perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00
perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00
perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00
perl-Socket-2.010-4.el7.x86_64.rpm | 49 kB 00:00
perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00
perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00
perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:00
perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00
perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00
perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00
perl-libs-5.16.3-291.el7.x86_64.rpm | 688 kB 00:01
perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00
perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00
perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00
perl-5.16.3-291.el7.x86_64.rpm | 8.0 MB 00:10
perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00
perl-macros-5.16.3-291.el7.x86_64.rpm | 43 kB 00:01
plesk-mysql-server-17.0.17-cos7.build1700161028.14.x86_6 | 1.9 kB 00:00
postgresql-libs-9.2.18-1.el7.x86_64.rpm | 232 kB 00:00
pp17.0.17-bootstrapper-17.0.17-cos7.build1700161117.16.x | 292 kB 00:00
sw-libboost-date-time1.55.0-1.55.0-centos7.14070415.x86_ | 17 kB 00:00
sw-libboost-filesystem1.55.0-1.55.0-centos7.14070415.x86 | 34 kB 00:00
sw-libboost-system1.55.0-1.55.0-centos7.14070415.x86_64. | 6.3 kB 00:00
xmlrpc-c-c++-1.32.5-1905.svn2451.el7.x86_64.rpm | 86 kB 00:00
xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64.rpm | 130 kB 00:00
sw-engine-cli-2.20-2.20.2-centos7.201612081611.x86_64.rp | 3.3 MB 00:02
mariadb-server-5.5.52-1.el7.x86_64.rpm | 11 MB 00:14
mariadb-5.5.52-1.el7.x86_64.rpm | 8.7 MB 00:23
Transaktionsüberprüfung wird ausgeführt
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 0: ordinal not in range(128)
Installieren: xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 [1/53]
Installieren: sw-libboost-system1.55.0-1.55.0-centos7.14070415.x86_64 [2/53]
Installieren: sw-libboost-filesystem1.55.0-1.55.0-centos7.14070415.x86_64 [3/53]
Installieren: xmlrpc-c-c++-1.32.5-1905.svn2451.el7.x86_64 [4/53]
Installieren: 1:perl-parent-0.225-244.el7.noarch [5/53]
Installieren: perl-HTTP-Tiny-0.033-3.el7.noarch [6/53]
Installieren: perl-podlators-2.5.1-3.el7.noarch [7/53]
Installieren: perl-Pod-Perldoc-3.20-4.el7.noarch [8/53]
Installieren: 1:perl-Pod-Escapes-1.04-291.el7.noarch [9/53]
Installieren: perl-Encode-2.51-7.el7.x86_64 [10/53]
Installieren: perl-Text-ParseWords-3.29-4.el7.noarch [11/53]
Installieren: perl-Pod-Usage-1.63-3.el7.noarch [12/53]
Installieren: 4:perl-macros-5.16.3-291.el7.x86_64 [13/53]
Installieren: perl-threads-1.87-4.el7.x86_64 [14/53]
Installieren: 4:perl-Time-HiRes-1.9725-3.el7.x86_64 [15/53]
Installieren: perl-Exporter-5.68-3.el7.noarch [16/53]
Installieren: perl-constant-1.27-2.el7.noarch [17/53]
Installieren: perl-Carp-1.26-244.el7.noarch [18/53]
Installieren: perl-Time-Local-1.2300-2.el7.noarch [19/53]
Installieren: perl-Socket-2.010-4.el7.x86_64 [20/53]
Installieren: perl-Storable-2.45-3.el7.x86_64 [21/53]
Installieren: perl-threads-shared-1.43-6.el7.x86_64 [22/53]
Installieren: perl-PathTools-3.40-5.el7.x86_64 [23/53]
Installieren: perl-Scalar-List-Utils-1.27-248.el7.x86_64 [24/53]
Installieren: 4:perl-libs-5.16.3-291.el7.x86_64 [25/53]
Installieren: 1:perl-Pod-Simple-3.28-4.el7.noarch [26/53]
Installieren: perl-File-Temp-0.23.01-3.el7.noarch [27/53]
Installieren: perl-File-Path-2.09-2.el7.noarch [28/53]
Installieren: perl-Filter-1.49-3.el7.x86_64 [29/53]
Installieren: perl-Getopt-Long-2.40-2.el7.noarch [30/53]
Installieren: 4:perl-5.16.3-291.el7.x86_64 [31/53]
Installieren: perl-Data-Dumper-2.145-3.el7.x86_64 [32/53]
Installieren: perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 [33/53]
Installieren: perl-Net-Daemon-0.48-5.el7.noarch [34/53]
Installieren: 1:mariadb-5.5.52-1.el7.x86_64 [35/53]
Installieren: 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 [36/53]
Installieren: perl-IO-Compress-2.061-2.el7.noarch [37/53]
Installieren: perl-PlRPC-0.2020-14.el7.noarch [38/53]
Installieren: perl-DBI-1.627-4.el7.x86_64 [39/53]
Installieren: perl-DBD-MySQL-4.023-5.el7.x86_64 [40/53]
Installieren: 1:mariadb-server-5.5.52-1.el7.x86_64 [41/53]
Installieren: plesk-mysql-server-17.0.17-cos7.build1700161028.14.x86_64 [42/53]
Installieren: postgresql-libs-9.2.18-1.el7.x86_64 [43/53]
Installieren: libicu-50.1.2-15.el7.x86_64 [44/53]
Installieren: libxslt-1.1.28-5.el7.x86_64 [45/53]
Installieren: libtool-ltdl-2.4.2-21.el7_2.x86_64 [46/53]
Installieren: libc-client-2007f-4.el7.1.x86_64 [47/53]
Installieren: sw-libboost-date-time1.55.0-1.55.0-centos7.14070415.x86_64 [48/53]
Installieren: libmcrypt-2.5.8-13.el7.x86_64 [49/53]
Installieren: 2:libpng-1.5.13-7.el7_2.x86_64 [50/53]
Installieren: libjpeg-turbo-1.2.90-5.el7.x86_64 [51/53]
Installieren: sw-engine-cli-2.20-2.20.2-centos7.201612081611.x86_64 [52/53]
Installieren: pp17.0.17-bootstrapper-17.0.17-cos7.build1700161117.16.x86_64 [53/53]

ERROR: Failed to run the Yum utility.
The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Please contact product technical support.
 
Try to set locale with

# export LC_ALL="en_US.UTF-8"

and repeat Onyx installation.
 
This problem is unaffected with the LANG and LC_* variables and LC_ALL, too. In the past I’ve tested many combinations of lang variables. The problem only occurs with “wrong” LANGUAGE variable. But I think it’s not only a problem with German language, rather languages which have non-ascii letters.

Ok, I’ve tested now: LANG and LC_* are en_US.UTF-8, LANGUAGE is ru_RU.UTF-8. The same error occurs, installation crashes.

For me, I have a solution, but I posted this within different points:
  • another one who have the same problem can find a workaround,
  • you’re closer with Plesk matter, so you can find out easier if it’s a Plesk or Yum bug and fix it or create bug report for Yum project.
Edit: my os version, I've tested with: CentOS Linux release 7.3.1611 (Core); image file: CentOS-7-x86_64-Minimal-1611.iso
 
Back
Top