• Welcome to Web Hosting Forum - A Web Hosting Community for Webmasters.
 

Recommended Providers

WordPress

Forum Membership

Forum Membership

EasyApache 4 on EL9: AttributeError: 'NoneType' object has no attribute version

Started by Kailash, August 07, 2025, 07:52:52 PM


Hosting Offer


Kailash

Issue:

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`
This is preventing the use of EasyApache 4 on existing cPanel installations. New installations are prevented from proceeding due to the error.

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
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

WordPress Hosting