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:
-
The Centralized Monitoring service is not fully configured.
-
The token file at
/etc/sysconfig/rhn/jwt.tokenis missing or corrupted. -
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:
-
Run License Check:
rhn_check -
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.


