VMware Cloud Community
geeko71
Enthusiast
Enthusiast
Jump to solution

VMware.Cafe.HtmlResponseException: Unauthorized (401)

Hi

After walk trouhg a lot of issues i'm still trying a successful installation of vCAC 6.0.1... after the known cleaning procedure im still stuck at 2 errors.

1st: prerequisite check sais: MSSQLSERVER TCP/IP Protocol is disabled or invalid database instance.

but i think this is an "cosmetic" warning because i use SQLExpress and the instance name is not "MSSQLSERVER". Listners are OK, setup routine creates the table > so i think this is OK

2nd: the installation aborts after a few minutes with the folling log entries:

Info : 2014-06-06 01 00 06 339  :Finished installing ASP.NET (4.0.30319.17929).

Info : 2014-06-06 01 00 06 402  :Executing C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe  -ga "DOMAIN\user"

Info : 2014-06-06 01 00 06 417  :Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929

Info : 2014-06-06 01 00 06 417  :Administration utility to install and uninstall ASP.NET on the local machine.

Info : 2014-06-06 01 00 06 417  :Copyright (C) Microsoft Corporation.  All rights reserved.

Info : 2014-06-06 01 00 06 417  :Start granting DOMAIN\user access to the IIS configuration and other directories used by ASP.NET.

Info : 2014-06-06 01 00 06 417  :Finished granting DOMAIN\user access to the IIS configuration and other directories used by ASP.NET.

Info : 2014-06-06 01 00 06 433  :Creating IIS application pool RepositoryAppPool is completed.

Info : 2014-06-06 01 00 06 542  :Creating IIS virtual application Repository is completed.

Info : 2014-06-06 01 00 06 558  :Updated configuration file C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Web\Web.config successfully.

Info : 2014-06-06 01 00 06 558  :Executing C:\Program Files (x86)\VMware\vCAC\Server\ConfigTool\EncryptionKeyTool\DynamicOps.Tools.EncryptionKeyTool.exe Key-Generate -pp "******" -s "vCAC" -vd -cs "Data Source=serverfqdn\SQLEXPRESS;Initial Catalog=vCAC;Integrated Security=true;" -uc "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Web\Web.config" -v

Info : 2014-06-06 01 00 06 558  :Key-Generate -pp "********" -s "vCAC" -vd -cs "Data Source=serverfqdn\SQLEXPRESS;Initial Catalog=vCAC;Integrated Security=true;" -uc "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Web\Web.config" -v

Info : 2014-06-06 01 00 06 745  :Info:  Encrypting passphrase is completed.

Info : 2014-06-06 01 00 06 760  :Executing C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe  -pa VCACKeyContainer "DOMAIN\user"

Info : 2014-06-06 01 00 06 760  :Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929

Info : 2014-06-06 01 00 06 760  :Administration utility to install and uninstall ASP.NET on the local machine.

Info : 2014-06-06 01 00 06 760  :Copyright (C) Microsoft Corporation.  All rights reserved.

Info : 2014-06-06 01 00 06 760  :Adding ACL for access to the RSA Key container...

Info : 2014-06-06 01 00 06 792  :Succeeded!

Info : 2014-06-06 01 00 06 792  :Updated configuration file C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\RepoUtil.exe.config successfully.

Info : 2014-06-06 01 00 06 792  :Updated configuration file C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe.config successfully.

Info : 2014-06-06 01 00 06 792  :Executing C:\Program Files (x86)\VMware\vCAC\Server\ConfigTool\EncryptionKeyTool\DynamicOps.Tools.EncryptionKeyTool.exe Key-Generate -pp "******" -s "vCAC" -vd -cs "Data Source=serverfqdn\SQLEXPRESS;Initial Catalog=vCAC;Integrated Security=true;" -uc "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe.config" -v

Info : 2014-06-06 01 00 06 792  :Key-Generate -pp "********" -s "vCAC" -vd -cs "Data Source=serverfqdn\SQLEXPRESS;Initial Catalog=vCAC;Integrated Security=true;" -uc "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe.config" -v

Info : 2014-06-06 01 00 06 963  :Info:  Encrypting passphrase is completed.

Info : 2014-06-06 01 00 06 994  :Executing C:\Windows\Microsoft.NET\Framework\v4.0.30319\MsBuild.exe "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml" /t:InitializeRepo /p:RepoUtilDir="C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data";AssemblyDir="C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data" /p:DBServer="serverfqdn\SQLEXPRESS";DBName="vCAC" /p:DBConnectParam="" /p:AuthStoreParam=" --store \"https://172.16.24.230/\"" /p:InstallType="Install" /p:VmwareVcacVaHost="172.16.24.230" /p:tenant="vsphere.local" /p:SSOAdminUser="DOMAIN\user" /p:SSOAdminPassword=******

Info : 2014-06-06 01 00 07 010  :Microsoft (R) Build Engine version 4.0.30319.17929

Info : 2014-06-06 01 00 07 010  :[Microsoft .NET Framework, version 4.0.30319.17929]

Info : 2014-06-06 01 00 07 010  :Copyright (C) Microsoft Corporation. All rights reserved.

Info : 2014-06-06 01 00 07 026  :Build started 06.06.2014 13:00:07.

Info : 2014-06-06 01 00 07 072  :Project "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml" on node 1 (InitializeRepo target(s)).

Info : 2014-06-06 01 00 07 072  :InitializeRepo:

Info : 2014-06-06 01 00 07 072  :  ##InitializeRepo Registering solution user in the VA, initializing Repository MetaModel and Authorization

Info : 2014-06-06 01 00 07 072  :  "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe" RegisterSolutionUser -url https://172.16.24.230 --Tenant "vsphere.local" -cu "DOMAIN\user" -cp ******  --FileName "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.data" -v

Info : 2014-06-06 01 00 12 610  :  VMware.Cafe.HtmlResponseException: Unauthorized (401)

Info : 2014-06-06 01 00 12 610  :     at VMware.Cafe.JsonRestClient.<HandleErrorResponse>d__8d`1.MoveNext()

Info : 2014-06-06 01 00 12 610  :  --- End of stack trace from previous location where exception was thrown ---

Info : 2014-06-06 01 00 12 610  :     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

Info : 2014-06-06 01 00 12 610  :     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Info : 2014-06-06 01 00 12 626  :     at VMware.Cafe.JsonRestClient.<CreateResource>d__2d`1.MoveNext()

Info : 2014-06-06 01 00 12 626  :  --- End of stack trace from previous location where exception was thrown ---

Info : 2014-06-06 01 00 12 626  :     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

Info : 2014-06-06 01 00 12 626  :     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Info : 2014-06-06 01 00 12 626  :     at VMware.Cafe.ComponentRegistryClient.<CreateSolutionUserAsync>d__5.MoveNext()

Info : 2014-06-06 01 00 12 626  :  Http response:

Info : 2014-06-06 01 00 12 626  :  StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:

Info : 2014-06-06 01 00 12 626  :  {

Info : 2014-06-06 01 00 12 626  :    Vary: Accept-Encoding

Info : 2014-06-06 01 00 12 626  :    Vary: User-Agent

Info : 2014-06-06 01 00 12 626  :    Date: Fri, 06 Jun 2014 11:00:09 GMT

Info : 2014-06-06 01 00 12 626  :    Content-Length: 1007

Info : 2014-06-06 01 00 12 626  :    Content-Type: text/html; charset=utf-8

Info : 2014-06-06 01 00 12 626  :  }

Info : 2014-06-06 01 00 12 626  :  Warning: Non-zero return code. Command failed.

Info : 2014-06-06 01 00 12 642  :C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml(556,5): error MSB3073: The command ""C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe" RegisterSolutionUser -url https://172.16.24.230 --Tenant "vsphere.local" -cu "DOMAIN\user" -cp ******  --FileName "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.data" -v" exited with code 1.

Info : 2014-06-06 01 00 12 642  :Done Building Project "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml" (InitializeRepo target(s)) -- FAILED.

Info : 2014-06-06 01 00 12 642  :Build FAILED.

Info : 2014-06-06 01 00 12 642  :"C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml" (InitializeRepo target) (1) ->

Info : 2014-06-06 01 00 12 642  :(InitializeRepo target) ->

Info : 2014-06-06 01 00 12 642  :  C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml(556,5): error MSB3073: The command ""C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe" RegisterSolutionUser -url https://172.16.24.230 --Tenant "vsphere.local" -cu "DOMAIN\user" -cp ******  --FileName "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.data" -v" exited with code 1.

Info : 2014-06-06 01 00 12 642  :    0 Warning(s)

Info : 2014-06-06 01 00 12 642  :    1 Error(s)

Info : 2014-06-06 01 00 12 642  :Time Elapsed 00:00:05.61

All ideas welcome...

Reply
0 Kudos
1 Solution

Accepted Solutions
geeko71
Enthusiast
Enthusiast
Jump to solution

got it... i used the wrong user.... DOMAIN\user is not correct as SSO Admin. Since 5.5 the SSO Admin account is Administrator@vsphere.local....

View solution in original post

Reply
0 Kudos
1 Reply
geeko71
Enthusiast
Enthusiast
Jump to solution

got it... i used the wrong user.... DOMAIN\user is not correct as SSO Admin. Since 5.5 the SSO Admin account is Administrator@vsphere.local....

Reply
0 Kudos