Bobcares

All About the KernelCare Extension for Plesk

by | Sep 25, 2024

Learn more about the KernelCare Extension for Plesk. Our Plesk Support team is here to help you with your questions and concerns.

How to Validate and Install the KernelCare Extension for Plesk

Today, we are going to take a walk through the steps to ensure that the KernelCare extension is properly licensed and installed on our Plesk instance. Additionally, we’ll cover troubleshooting common issues that may arise after installation.

An Overview:

  1. Why Use KernelCare for Plesk
  2. Step 1: Validate Plesk Additional License Keys
  3. Step 2: Install the KernelCare Extension
  4. Step 3: Verify the KernelCare Installation
  5. Troubleshooting KernelCare Installation Issues
  6. Issue: KernelCare Extension Hangs After Installation
  7. Issue: Daily Email Notifications for Expired Trial License
  8. Common Errors and Solutions
  9. Best Practices for KernelCare on Plesk
  10. Monitoring and Managing KernelCare Performance

Why Use KernelCare for Plesk

KernelCare offers a crucial advantage for Plesk users by enabling zero-downtime kernel updates. This ensures that our server remains operational during updates without needing reboots. This is handy for businesses requiring high uptime. It also enhances security by quickly applying patches to kernel vulnerabilities, reducing the risk of exploits.

Additionally, it cuts maintenance costs by minimizing server downtime and automating updates. Hence, it is a time-saving tool for administrators. For Plesk users managing multiple sites or services, KernelCare significantly boosts efficiency and security.

Step 1: Validate Plesk Additional License Keys

Before installing the KernelCare extension, let’s ensure our Plesk license includes the required KernelCare extension. Follow these steps to verify:

  1. First, log into Plesk.
  2. Then, go to Tools & Settings.
  3. Next, head to License Management.

Now, check if “ext-kernelcare-plesk” is listed on the License Management page. If it is, our license is properly configured, and we can proceed with the installation.

If we don’t see the KernelCare license key, follow these steps:

  1. Log in to the client area billing account.
  2. Then, go to the VPS or Dedicated Server subscription.
  3. In the left panel, click on Addons under the Overview section.
  4. Next, find the KernelCare addon and copy the Product Key.
  5. After that, return to Plesk, go to Additional License Keys, and insert the copied Product Key.

Step 2: Install the KernelCare Extension

Now that our license is validated, follow these steps to install the KernelCare extension:

  1. Log into Plesk.
  2. Then, click on Extensions from the left sidebar.
  3. Next. search for the KernelCare extension.
  4. Then click Get it free to install the extension.

    How to Validate and Install the KernelCare Extension for Plesk

Step 3: Verify the KernelCare Installation

Once KernelCare is installed, we can verify its functionality by checking the kernel versions:

  1. Open the KernelCare extension.
  2. Also, make sure that the Effective Kernel Version is higher than the Real Kernel Version. This indicates that KernelCare is properly applied and functioning.

Troubleshooting KernelCare Installation Issues

Issue: KernelCare Extension Hangs After Installation

If we are unable to access KernelCare after installation and the following message is displayed indefinitely, there might be an issue on KernelCare’s side.

The KernelCare extension has been successfully installed. Please allow up to 5 minutes for all components to be fully configured.

Fix:

  1. Log into the server via SSH.
  2. Then, remove the following lock files:

    rm /opt/psa/var/modules/kernelcare-plesk/installing.lock
    rm /usr/local/psa/var/modules/kernelcare-plesk/installing.lock

  3. Re-install the KernelCare extension with the following commands:

    plesk bin extension -u kernelcare-plesk
    plesk bin extension -i kernelcare-plesk

Issue: Daily Email Notifications for Expired Trial License

In some cases, we will get daily email notifications from KernelCare’s cron task stating:

The IP 203.0.113.2 was already used for trialing.

This occurs when the KernelCare trial license has expired, or the extension was removed but the cron task persists.

Fix:

  1. If we have a valid KernelCare license, update it in Tools & Settings > License Management > Retrieve Keys.
  2. If we no longer need KernelCare, we can remove the extension:
    • To remove KernelCare via Plesk:
        1. Log into Plesk.
        2. Go to Extensions > My Extensions > KernelCare.
        3. Click Remove.
    • To remove KernelCare via command-line:
      1. Connect to the server via SSH.
      2. Remove the KernelCare extension:
        plesk bin extension -u kernelcare-plesk

 

  • Remove the KernelCare package:
    • For CentOS/RHEL-based distributions:

      rpm -e kernelcare

    • For Debian/Ubuntu-based distributions:

      apt purge kernelcare

 

Common Errors and Solutions

Even though KernelCare is generally reliable, here are some common issues:

  • If the KernelCare key is missing in Plesk, retrieve it from our billing account and apply it in License Management.
  • If the installation seems stuck, remove the lock files via SSH and reinstall the extension using the command line.
  • If we receive trial license expiry emails, update our license in License Management or remove the extension if no longer needed.

Best Practices for KernelCare on Plesk

To optimize KernelCare:

  • Ensure KernelCare auto-updates are enabled in Extensions to maintain security without manual intervention.
  • Regularly check the kernel status in Extensions to verify that updates are applied correctly.
  • Furthermore, periodically review KernelCare logs in `/var/log/kcare/` to detect issues early.
  • Always maintain regular server backups to prevent data loss in case of failures.
  • Additionally, complement KernelCare with other Plesk security tools like ImunifyAV for full protection.

Monitoring and Managing KernelCare Performance

To keep KernelCare functioning optimally:

  • Use the Plesk interface or run `kcarectl –info` via SSH to check KernelCare’s status.
  • Regularly review logs in `/var/log/kcare/` for insights into kernel updates and potential issues.
  • Additionally, configure email notifications in **Tools & Settings** to stay informed about important updates.
  • Perform periodic audits using Plesk tools and external monitoring solutions to ensure updates aren’t causing issues.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

By following the above steps, we can ensure that the KernelCare extension is properly licensed, installed, and configured on our Plesk instance.

Additionally, we now have the tools to troubleshoot common issues that might arise after installation, ensuring our server’s kernel stays up-to-date and secure without reboots.

In brief, our Support Experts introduced us to the KernelCare Extension for Plesk.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.