cohesity_monitor probe fails: java.lang.IllegalAccessError: Cannot generate token with provided credentials
search cancel

cohesity_monitor probe fails: java.lang.IllegalAccessError: Cannot generate token with provided credentials

book

Article ID: 370517

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

We have set up the cohesity_monitor probe and even though the validation of the username and credential succeeds, we are seeing the following exception in the log: 

java.lang.IllegalAccessError: Cannot generate token with provided credentials.

Environment

  • Release: DX UIM 20.4.* / 23.4.* 
  • cohesity_monitor v1.03 (GA)

Cause

  • This error is generated the when the probe is calling the URL shown below, when the credentials are not correct.
    • https://<cohesity_instance_hostname>:443/irisservices/api/v1/public/accessTokens

Resolution

Verify the credentials, and double-check the user permissions.

A simple way to verify if the cohesity instance is reachable is connecting to it using a Rest Client such as POSTMAN. If the rest client connection is failing with the same error, it confirms that the problem is with the credentials. When this problem is resolved, both the REST client connection and the probe connection will succeed.