CloudLinux - CloudLinux Blog - Systemd issue on CL7

Systemd issue on CL7

Systemd issue on CL7

If you have updated systemd to the latest 219-19 version, then your CL7 server may be affected by the latest bug related to systemd. CageFS requires system reboot after update of systemd in order to function properly. We will provide solution that does not require server reboot soon.

This issue breaks CageFS, typical symptoms are:

  • You may have seen error messages in the log files like the following:

Apr  7 07:24:08 localhost pam_lve[20441]: Error Entering into CageFS -1 Error while executing /usr/sbin/lve_root_setup (65280)

Apr  7 07:24:11 localhost su: (to ttt2) root on pts/1

Apr  7 07:24:11 localhost pam_lve[20443]: Error Entering into CageFS -1 Unable to mount /home/ttt2 -> /usr/share/cagefs-skeleton/home/ttt2: No such file or directory

  • Websites start showing errors and users are not able to enter cagefs via ssh, cron ….

Even with systemd updated, you may not see the issue. The issue can be triggered later by:

  • Commands like “cagefsctl --remount-all”, “cagefsctl --enable-all”.

  • CageFS package update.

  • Alt-php packages update.

In order to fix it, please follow the steps:

  1. Ensure that you have updated lve-utils to 1.5-2.8 version or later.

  2. Reboot the server (systemd update requires OS reboot).

If value of “Additional Home Directories” option in cPanel WHM is “home”, then cPanel can create home directories for newly created accounts in incorrect location, such as /usr/share/cagefs-skeleton/home/user, so we suggest you to check the users’ home directories location:

  • Run the CLI command:
     # grep cagefs-skeleton /etc/passwd

    The output should be empty, If not, the server is affected by the issue, and you should move user’s home directories from /usr/share/cagefs-skeleton/home/user to proper location (for example /home/user).

  • Run the script attached to move users’ home directories to correct destination.
    The script writes logs  to /root/move_home_dirs.log

The script:

KernelCare supports many distributions, but does i...
Debian 7 & 8 kernels patched to latest with Kernel...


No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Monday, 30 March 2020

Captcha Image