Symptoms
EasyApache is unable to add or remove packages, and you receive an error in the WHM interface:
YUM encountered errors outside of EasyApache 4. Log into the system via SSH to
resolve them, or you can click the “Refresh” button to rebuild the system‘s cache.
Description
This error occurs when the package manager on the server is unable to successfully build its local cache. The error will need to be addressed through the tools provided by your package management software.
Workaround
To find the reason why the error occurs, you will need to clear and remake the cache in your package manager. The error may occur when clearing or rebuilding the cache, depending on the reason.
- Connect to your server using SSH or "Terminal" as the root user.
- Run the following command to clean the package manager cache. A successful run will look like this:
[root@server ~]# yum clean all
89 files removed - Run the following command to rebuild the cache. A successful build will look like this:
[root@server ~]# yum makecache
EA4 ( EasyApache 4 - c8 ) 1.6 MB/s | 3.8 MB 00:02
cPanel Addons Production Feed 58 kB/s | 10 kB 00:00
cPanel Plugins project 941 kB/s | 388 kB 00:00
... [truncated for brevity] ...
Metadata cache created. - If you do not receive any errors from the package manager, then EasyApache should be fully operational. Otherwise, you should review any errors provided with your system administrator to resolve the issue.