Solved

Issues connecting to api explorer

  • 1 November 2021
  • 5 replies
  • 208 views

Badge +4

Hello

 

So I am trying to access the api explorer.

I have tried clicking the link in the command center however all I get is a certificate error and a white screen.

I can however access the sandbox just fine.

Any ideas as to what the issue may be?

 

And could this be why I am unable to get a authentication token from the api?

When running the python script for authentication it returns with login failed.

I am master and system admin so there should not be any permissions missing regarding my user.

 

Hopefully someone has any ideas

Thanks.

icon

Best answer by Noobvault 4 November 2021, 14:05

View original

5 replies

Userlevel 7
Badge +23

Hi @Noobvault !  Can you share the certificate error you are seeing?

This is likely all connected.  We’ll just need to see some logs and errors and we can figure it out.

webserver.log might have something for this event as well.

Let me know what you are seeing and we’ll go from there!

Badge +4

Hey @Mike Struening 

 

That’s what I thought, here’s some more information.

The certificate error I encounter is just the standard “unrtrusted Certificate” in Internet explorere.

Looks like this, as you can see the windows dosen’t load.

Using the https://hostname/webconsole/sandbox/apiexplorer/ path that the command center url points to.

 

I don’t really see to much in the logs besides a WARN in the webconsole log and a IDP SSO is disabled.

The webserver log does show a mismatched csrf token.

 

Webserver.log

Requested path : /TFAStatus.do
 INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
 INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : null
 INFO  StatelessCookieFilter:doFilterInternal:197 - mismatched csrf token. expected: {null} received: {-230912939jdn1} path: {/webconsole/TFAStatus.do}

 

Webconsole.log

 

INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /TFAStatus.do
    INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
    INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
    INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /TFAStatus.do
    INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
    INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
    INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /doLogin.do
    INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
    INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
    INFO  LoginHandler:buildRequestObject:1360 - Attempting login for user: USER.
    INFO  LoginHandler:handleLoginResp:463 - User: USER logged in successfully.
    WARN  ClientManager:getUserClientListCacheContext:899 - User name not found for ClientList cache context
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /loadApps.do
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
  WebConsole INFO  SurveyUtils:checkMetricsPackageInstalled:278 - Metrics Package was NOT installed.
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /common/customTheme.do
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /getQueuedTasks.do
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /getLandingPage.do
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : /webconsole/sandbox/apiexplorer/
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:84 - Requested path : /sandbox/apiexplorer/index.jsp
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:85 - exclude urls : [/initOpenIdAuthFlow.do, /samlAcsCallback.do, /openIdConnectCallback.do, /appstore/appStoreLoginService.do, /consoleError.do, /cvAccountsLoginCallBack.do, /emailrecall/endUserSearchEnabled.do, /sandbox/make_request.jsp, /addAction, /reports/setFetchLicenseTask.do, /idpSSOLoginCallBackHandler.do, /samlAcsIdpInitCallback.do, /addVisitor, /isSessionAlive.do, /SAMLSingleLogout, /forms/preview, /httplogupload.do, /metrics/metricsUpload.do, /remoteSAMLIDPLogout.do, /mobileLogin.do, /auditLog.do, /appstore/storeconfig.do, /remoteSAMLAcsIdpInitCallback.do]
  WebConsole INFO  StatelessCookieFilter:doFilterInternal:86 - landing remote url stateless : null
  INFO  IDPSSOUtils:setIsIDPSSOEnabledFlag:166 - IDP SSO is disabled!

 

 

Hope this information is usable.

Userlevel 7
Badge +23

I checked our database for mismatched csrf token, and there are numerous varied causes, most of them fixed via updates.

What version are you running on this WebServer?

Badge +4

Figured it out apparently it can only be open in Microsoft Edge.

Userlevel 6
Badge +18

Figured it out apparently it can only be open in Microsoft Edge.


I also opened my API Sandbox using Chrome, Firefox and Opera.

What is your CV version?  Starting in FR24, IE is no longer supported.

https://documentation.commvault.com/11.24/essential/138148_changes_in_feature_release_1124.html

“Microsoft Internet Explorer is not supported anymore as a web browser for accessing the Command Center and the Web Console.”

Thanks,
Scott
 

Reply