An --**warning**-- occurred while installing profile “--**warning**--: failed to create directory /home/cPanel_username/.cagefs”.

While updating Easy Apache 3 to Easy Apache 4 on CloudLinux server using below command -

cd ~;
wget https://repo.cloudlinux.com/cloudlinux/sources/cloudlinux_ea3_to_ea4;
sh cloudlinux_ea3_to_ea4 --convert

I'd received below error message -

An --**warning**-- occurred while installing profile “--**warning**--: failed to create directory /home/cPanel_username/.cagefs”.
Please select from the following options:
1) Revert to EasyApache 3
2) Abort.
3) Install the cPanel Default profile.

Solution :-

Please make sure, if you've removed/deleted any user recently from server then there should not be any entry in below files -

1. Please check the user entry in /var/cpanel/users, if the user exist there then remove it.
2. Please check /etc/named.conf and the corresponding .db file from /var/named, there should not be any entry of user.
3. Check entry in /etc/httpd/conf/httpd.conf.
4. Check the entry in /etc/localdomains or /etc/remotedomains. If you'll find any entry then remove it from the file.
5. Remove the cPanel user entry from /etc/passwd

You can remove the entry using -
userdel username

It fixed my issue!
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install cPanel on CentOS 6 or 7?

How to install cPanel on CentOS 6 or 7.  Please note cPanel does not support any other operating...

This webpage is not found - Cannot export database

While exporting the database zip file from cPanel >> phpMyAdmin as well from SSH, I was...

Database connection error (2): Could not connect to MySQL- Joomla Issue

While accessing the Joomla site I was getting the error as "Database connection error (2): Could...

Server connection timed out - Unable to access website and cPanel

I tried accessing the website and cPanel from my system (local network) but I was getting error...

Powered by WHMCompleteSolution