Skip to main content
Print

How to Fix CloudLinux JWT Token Error in WHM/cPanel

What is the CloudLinux JWT Token Error?

CloudLinux utilizes a JSON Web Token (JWT) to authenticate your server with its Centralized Monitoring system. This system allows you to track server statistics and LVE usage remotely.

When the automated diagnostic tool (cldiag) runs its cron checks, it may report a FAILED: JWT token format error. This typically happens if:

  1. The Centralized Monitoring service is not fully configured.

  2. The token file at /etc/sysconfig/rhn/jwt.token is missing or corrupted.

  3. The server is unable to sync with CloudLinux licensing servers.

If you do not use CloudLinux Centralized Monitoring, this error is harmless but can be annoying as it sends daily email alerts.


How to Resolve the jwt-token Error via SSH

The most direct way to stop these alerts is to disable the specific diagnostic checker responsible for the JWT token.

Step 1: Log in to your Server

Access your server via SSH as the root user using PuTTY or your preferred terminal.

Step 2: Run the Fix Command

To stop the cron job from checking the JWT token and sending error emails, execute the following command:

cldiag --disable-cron-checkers check-jwt-token

Step 3: Why this works

  • Objective: This command tells the CloudLinux diagnostic utility (cldiag) to skip the JWT token validation during its routine background checks.

  • Benefit: It immediately stops the “1 errors found” email notifications. It is the ideal solution for administrators who do not require Centralized Monitoring features.


Alternative: How to Regenerate the Token (If Needed)

If you actually want to use Centralized Monitoring and prefer to fix the token rather than disable the check, you should try to refresh your server’s license link:

  1. Run License Check:

    rhn_check
    
  2. Verify Token Creation: Check if a new token has been generated:

    ls -l /etc/sysconfig/rhn/jwt.token
    

Conclusion

The “JWT Token Format Error” is a common occurrence on CloudLinux servers where the Plus features or Centralized Monitoring are not actively used. By running the cldiag disable command, you clean up your daily diagnostic reports and ensure you only receive alerts for critical system issues.

Keep your server running at peak performance with Managed VPS Hosting India and enterprise-grade Cloud Hosting from myglobalHOST.

Table of Contents
Close
Get 75% + extra 10% Discount on web Hosting Plans by myglobalHOST

Extra 10% OFF

Coupon Code

EXTRA10

Applicable on

FLAT Rs 100 OFF

Coupon Code

FLAT100

Applicable on

How to Avail: Simply browse the most appropriate hosting plan for you and avail extra discount on all orders.

Expert Advice

+91-79862-84663

11AM to 6PM

Live Chat : 11AM to 6PM