Symptoms
On EL9 servers, EasyApache 4 reports the following error:
Error: API failure: “/usr/bin/python3” reported error code “1” when it ended: Traceback (most recent call last): File "/usr/local/cpanel/bin/packman_get_multiinfo_json", line 74, in packman.get_info_for_packages_and_prefixes( File "/usr/local/cpanel/bin/packman_lib/dnf_impl.py", line 203, in get_info_for_packages_and_prefixes _load_package_info_into_cache_for_packages_and_prefixes(pkglist, prefixes) File "/usr/local/cpanel/bin/packman_lib/dnf_impl.py", line 73, in _load_package_info_into_cache_for_packages_and_prefixes _create_pkg_map_and_package_name_to_possible_objs( File "/usr/local/cpanel/bin/packman_lib/dnf_impl.py", line 118, in _create_pkg_map_and_package_name_to_possible_objs cache_NewestByName[package_name].version AttributeError: 'NoneType' object has no attribute 'version' w/ /usr/local/cpanel/bin/packman_get_multiinfo_json --populate-provides --disable-excludes --prefix ea- Often errors like this can be resolved by running `dnf makecache`
Description
This is preventing the use of EasyApache 4 on existing cPanel installations. New installations are prevented from proceeding due to the error.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-48561. Follow this article to receive an email notification when a solution is published in the product.
Workaround
If the above error has occurred the dnf/yum cache needs to be cleared with:
dnf clean all
Then remove this file
rm -f /etc/cpanel/ea4/is_ea4
and then execute
/scripts/ea4_fresh_install
Then
dnf install ea-profiles-cpanel -y
On CloudLinux servers run
dnf install ea-profiles-cloudlinux -y
New installs will not be impacted.
Please Note: If the previous workaround, disabling the EA4 repo was used, please be sure to enable the repo again.
dnf config-manager --set-enabled EA4