Symptoms
A cPanel installation may fail to complete due to similar errors:
[2020-11-20 13:36:55 +0900] [4562] (ERROR): Could not install default EA4 profile
[2020-11-20 13:36:55 +0900] [4562] (FATAL): Failed to install EA4
[2020-11-20 13:36:55 +0900] [4563] ( INFO): Waiting for ([EA4 to be installed]).
[2020-11-20 13:36:55 +0900] [4120] (FATAL): The background process aEA4 Installa failed with a fatal error: The subprocess reported error number 1 when it ended.
Description
Specifically, it may fail at this stage:
/usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/cpanel/default.json
Some of the failures will be due to packages unable to complete installation due to missing dependencies:
[2020-11-20 13:36:40 +0900] [4562] ( INFO): Retrying execution of “/usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/cpanel/default.json”
[2020-11-20 13:36:40 +0900] [4562] (DEBUG): - ssystem [BEGIN]: /usr/local/bin/ea_install_profile --install /etc/cpanel/ea4/profiles/cpanel/default.json
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-apache24-mod_security2-2.9.3-9.9.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: yajl
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php73-php-gd-7.3.24-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp.so.4()(64bit)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-apache24-mod_security2-2.9.3-9.9.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libyajl.so.2()(64bit)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php73-php-gd-7.3.24-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp(x86-64)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php72-php-gd-7.2.34-2.2.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp.so.4()(64bit)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php72-php-gd-7.2.34-2.2.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp(x86-64)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php72-php-devel-7.2.34-2.2.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: automake
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php74-php-gd-7.4.12-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp.so.4()(64bit)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php72-php-devel-7.2.34-2.2.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: automake
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php74-php-gd-7.4.12-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp.so.4()(64bit)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-apache24-config-runtime-1.0-166.166.3.cpanel.noarch (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: perl-libwww-perl
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php72-php-devel-7.2.34-2.2.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: pcre-devel(x86-64) >= 8.20
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-apache24-2.4.46-2.4.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: elinks
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php74-php-devel-7.4.12-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: automake
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php73-php-devel-7.3.24-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: autoconf
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php74-php-devel-7.4.12-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: autoconf
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php72-php-devel-7.2.34-2.2.1.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: autoconf
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php73-php-devel-7.3.24-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: automake
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Error: Package: ea-php74-php-gd-7.4.12-1.1.2.cpanel.x86_64 (EA4)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Requires: libwebp(x86-64)
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): The entire output was logged to: /usr/local/cpanel/logs/packman/errors/2020-11-20_13:36:47-1
[2020-11-20 13:36:47 +0900] [4562] (DEBUG): Loading profile …
Workaround
This failure is reported when the cPanel packages are unable to install due to unresolved dependencies.
This can indicate either an issue with resolving, or locating the dependencies from the appropriate repository.
Most of these system libraries will be downloaded from the base CentOS repository so ensuring a stable connection to that repository can address this.
While it is possible to re-install the "centos-release" RPM which contains these repositories, we recommend that you install a CentOS image that provides these already.