License issues
Troubleshoot license issues in the on-prem Harness Self-Managed Enterprise Edition.
License issues can occur even after you apply the license via a Helm values file. Use the following processes to identify and troubleshoot license issues.
Check for a NextGen license
Follow these steps to confirm that your Harness installation includes a NextGen license:
Retrieve the MongoDB password:
kubectl get secret -n <namespace> mongodb-replicaset-chart -o jsonpath={.data.mongodb-root-password} | base64 --decode | awk '{print $1}'Open an interactive Shell session in the MongoDB container:
kubectl exec -it mongodb-replicaset-chart-0 -n <namespace> -- /bin/shConnect to the MongoDB instance:
mongoAuthenticate to the database in the
adminrole:use admin db.auth('admin', <password>)Set the context to Harness NextGen and locate the license:
use ng-harness db.moduleLicenses.find({})If the licenses are present, proceed with refreshing the license.
Refresh a NextGen license
Use the following strategies to refresh a NextGen license.
Discard the Redis cache for the NextGen license
Retrieve the Redis master host:
Find the Redis master service:
Copy the service name from the result.
Delete license keys:
Reload the UI.
If this does not refresh the license:
Repeat the process a second time.
Wait 5 minutes before you reload the UI.
Additional troubleshooting for "Failed to Retrieve License Information"
Step 1: Rule Out Browser Cache Issues
Try logging in through Incognito Mode or a different browser:
If this resolves the issue, proceed to clear the browser cache.
Hard refresh the page:
Press
Cmd+Shift+R(Mac) orCtrl+Shift+R(Windows/Linux) to perform a hard refresh.
Clear browser cache and cookies:
Go to your browser settings and clear the cache and cookies for the affected webpage.
Step 2: Verify services status
Check all services:
Run the following command to ensure all services are running correctly:
If any services are in an unhealthy state, it might cause missing data in the database.
Step 3: Delete license cache
You can delete the license keys:
Step 4: Restart services
Restart
ng-manager:Restart
harness-manager:
Step 5: Reload the UI
Try loading the UI again to check if the issue is resolved.
Step 6: Contact Support
If the issue persists, generate a support bundle and send it to Harness Support. For more information, go to Support Bundle Utility.
Last updated
Was this helpful?