Issue
The error "Unable to determine realpath of /home/XXX (No such file or directory)" is displayed when performing certain actions, usually related to updating/creating files in a user's home directory.
Environment
- CloudLinux OS
- CageFS
Solution
1. The error is indicative of an incorrect configuration within CageFS. It can be caused, for example, if the user's home directory was recently updated.
2. To correct the situation, check that the path displayed in the error message is in the /etc/passwd file as the home directory of that user, and run the following command:
/usr/sbin/cagefsctl --force-update
/usr/sbin/cagefsctl -M
3. If the issue still persists, CageFS needs to be re-initialized:
/usr/sbin/cagefsctl --reinit
4. Please note that with the "reinit" key, cagefsctl will be temporarily disabled and unmounted, and it might take a couple of minutes to be operational again.
Useful links
Comments
0 comments
Please sign in to leave a comment.