Symptoms
Sometimes, you will get a notification from CloudLinux about your JWT token being missing or expired, similar to this:
CONFIG_TEXT: Check existing JWT token:
FAILED: JWT token expired. Please check for JWT token in path "/etc/sysconfig/rhn/jwt.token". Try running "rhn_check" for getting a new token if it is absent. Server can't collect and send statistics to Centralized Monitoring if you don't have a correct JWT token. Link to FAQ and troubleshooting https://docs.cloudlinux.com/cloudlinux-os-plus/#faq-2. Please write to support https://cloudlinux.zendesk.com/ if you can't resolve the issue.
Command for disabling this cron checker: "cldiag --disable-cron-checkers check-jwt-token"
Cause
This can happen when the token set up by CloudLinux has expired and hasn't been updated yet. You can generally remove the token and regenerate it.
Resolution
- Access the server's command line as the 'root' user via SSH or Terminal in WHM.
Move the
jwt.tokenout of the way.# mv -v /etc/sysconfig/rhn/jwt.token{,.$(date +%s)}
Ensure CloudLinux is registered.
# clnreg_ks --force
Generate another token with the
rhn_checkcommand.# rhn_check
Verify that the token has been recreated.
# cat /etc/sysconfig/rhn/jwt.token
Comments
0 comments
Article is closed for comments.