dalcowboys
Contributor
Contributor

cloudclient vra detail list authentication error

I am working with CloudClient 3.2 on RHEL 7. When I run: vra cloudclient detail --id  PaymentCard-CAP-Base_QA it fails with authentication error below:

*************************************************************************************************************************************************************************************************************************

CloudClient>vra catalog detail --id PaymentCard-FP-Base_QA

Error: A JSONObject text must begin with '{' at character 1 of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><title>401 - Unauthorized: Access is denied due to invalid credentials.</title><style type="text/css"><!--body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}fieldset{padding:0 15px 10px 15px;} h1{font-size:2.4em;margin:0;color:#FFF;}h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;background-color:#555555;}#content{margin:0 0 0 2%;position:relative;}.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}--></style></head><body><div id="header"><h1>Server Error</h1></div><div id="content"> <div class="content-container"><fieldset>  <h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3> </fieldset></div></div></body></html>

This is in cloudclient-trace.log -->

2017-06-23 09:11:05,968 cc: [priority="DEBUG" thread="Spring Shell"] com.vmware.cloudclient.plugins.utils.RestHelper.SSOHttpClient:50 - Request=> GET:https://vraServer/WAPI/api/Blueprints/33571369-5b18-4b2c-9ede-adcf2e5fcc87

2017-06-23 09:11:06,194 cc: [priority="ERROR" thread="Spring Shell"] com.vmware.cloudclient.core.authentication.BaseAuthentication.afterThrowingInvocation:348 - A JSONObject text must begin with '{' at character 1 of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><title>401 - Unauthorized: Access is denied due to invalid credentials.</title><style type="text/css"><!--body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}fieldset{padding:0 15px 10px 15px;} h1{font-size:2.4em;margin:0;color:#FFF;}h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;background-color:#555555;}#content{margin:0 0 0 2%;position:relative;}.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}--></style></head><body><div id="header"><h1>Server Error</h1></div><div id="content"> <div class="content-container"><fieldset>  <h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3> </fieldset></div></div></body></html>

net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><title>401 - Unauthorized: Access is denied due to invalid credentials.</title><style type="text/css"><!--body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}fieldset{padding:0 15px 10px 15px;} h1{font-size:2.4em;margin:0;color:#FFF;}h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;background-color:#555555;}#content{margin:0 0 0 2%;position:relative;}.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}--></style></head><body><div id="header"><h1>Server Error</h1></div><div id="content"> <div class="content-container"><fieldset>  <h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3> </fieldset></div></div></body></html>

*************************************************************************************************************************************************************************************************************************

When I run vra login isauthenticated all or vra catalog list these are successful as shown below:

*************************************************************************************************************************************************************************************************************************

CloudClient>vra catalog list

+--------------------------------------+-----------------------------+--------------------------------------+--------------------------+--------------------------+-----------+

| id                                   | organization.subtenantLabel | organization.subtenantRef            | name                     | catalogItemTypeRef.label | status    |

+--------------------------------------+-----------------------------+--------------------------------------+--------------------------+--------------------------+-----------+

| f225224c-c5df-412b-b7f7-a075131c5c9f | BG_SIMS                     | 5d29644d-4863-420c-9139-c2dbf7415e62 | SIMS_STORE_BASE_TEST     | Virtual Machine          | PUBLISHED |

| e810fefd-4d0c-459a-8072-a857a1aa3052 | BG_PaymentCard              | 27e7d6de-15b7-463e-b815-a7ba20884820 | PaymentCard-RTS-Base     | Virtual Machine          | PUBLISHED |

| a16fa187-06de-4739-ab8e-5d39fb39b22b | BG_PaymentCard_QA           | ef0a12dc-2bde-43df-a90b-73286ff86030 | PaymentCard-RTS-Base_QA  | Virtual Machine          | PUBLISHED |

| fa66c88e-3af5-4a21-8683-1c336d28707a | BG_PaymentCard              | 27e7d6de-15b7-463e-b815-a7ba20884820 | PaymentCard-ADMIN-Base   | Virtual Machine          | PUBLISHED |

| 65840213-3fdf-49aa-b62f-03601f7e838e | BG_PaymentCard              | 27e7d6de-15b7-463e-b815-a7ba20884820 | PaymentCard-FP-Base2     | Virtual Machine          | PUBLISHED |

| 06733370-3328-442e-8a36-4e2689e772f5 | BG_Prod-1                   | c5d5c4a7-83ef-4551-bead-feff19a6c51b | RHEL6-BASE-MD            | Virtual Machine          | PUBLISHED |

| 45ed7829-3314-4c73-b936-a49240eda6b0 | BG_PaymentCard_QA           | ef0a12dc-2bde-43df-a90b-73286ff86030 | PaymentCard-CAP-Base_QA  | Virtual Machine          | PUBLISHED |

| 7add7b24-a350-4402-9d98-5eb8e3ca7114 | BG_PaymentCard              | 27e7d6de-15b7-463e-b815-a7ba20884820 | PaymentCard-CAP-Base     | Virtual Machine          | PUBLISHED |

| f4a4f285-3dad-4fb1-a47e-4e07067e0cb2 | BG_PaymentCard              | 27e7d6de-15b7-463e-b815-a7ba20884820 | PaymentCard-API-Base     | Virtual Machine          | PUBLISHED |

| af573c9c-3be9-4626-81d1-2dbd748754ae | BG_Prod-1                   | c5d5c4a7-83ef-4551-bead-feff19a6c51b | RHEL6-BASE-LG            | Virtual Machine          | PUBLISHED |

| 81fc76c1-a01c-4ec3-b320-33cfc59f72b9 | BG_PaymentCard_QA           | ef0a12dc-2bde-43df-a90b-73286ff86030 | PaymentCard-FP-Base_QA   | Virtual Machine          | PUBLISHED |

| f9047c7b-6cbb-431a-b828-26a52979262f | BG_SIMS                     | 5d29644d-4863-420c-9139-c2dbf7415e62 | SIMS-PRINT-BASE          | Virtual Machine          | PUBLISHED |

| 94323495-9545-4364-a4b6-82fb76daa947 | BG_SIMS                     | 5d29644d-4863-420c-9139-c2dbf7415e62 | SIMS-STORE-BASE          | Virtual Machine          | PUBLISHED |

| 84ffeed7-ed4e-4c9f-9522-f819206cf0a8 | BG_Prod-1                   | c5d5c4a7-83ef-4551-bead-feff19a6c51b | RHEL6-BASE-SM            | Virtual Machine          | PUBLISHED |

| 7f601698-bdc5-412c-80a7-c031ffa9f977 | BG_PaymentCard              | 27e7d6de-15b7-463e-b815-a7ba20884820 | TEST-SecureFP-Base-Image | Virtual Machine          | PUBLISHED |

+--------------------------------------+-----------------------------+--------------------------------------+--------------------------+--------------------------+-----------+

Showing results for [page=1 of 1] [pageSize=25].

CloudClient>vra login isauthenticated all

vRA SSO login: [ACTIVE], session: [ACTIVE], sessionKey=[default], user=[_svc_devops_autom@rac.raccorp.corp], server=[https://10.250.35.52], tenant=[vsphere.local]

IaaS Model Manager login: [INACTIVE], session: [ACTIVE], sessionKey=[default]

CloudClient>

*************************************************************************************************************************************************************************************************************************

Has anyone run into this issue? Are there more detail logs where I can see the credentials that are being passed?

0 Kudos
1 Reply
mhampto
VMware Employee
VMware Employee

Hello,

What version of vRA are you working with?  Also, are you able to try one of the newer versions of CloudClient?

0 Kudos