ServiceFabric SDK安装失败

时间:2017-09-04 11:20:26

标签: azure azure-service-fabric azure-sdk

我正在尝试在Azure VM(Windows Datacenter 2016)上安装ServiceFabric SDK以配置我们的TFS构建代理。但是当我在安装时遇到错误。我试图重新安装VS(我正在使用Community 2017)但它并没有帮助我。 记录Microsoft Installer提供给我的信息:

MSI (s) (98:F0) [11:03:39:170]: Doing action: INSTALL
MSI (s) (98:F0) [11:03:39:170]: Note: 1: 2205 2:  3: ActionText 
Action start 11:03:39: INSTALL.
MSI (s) (98:F0) [11:03:39:171]: Running ExecuteSequence
MSI (s) (98:F0) [11:03:39:171]: Doing action: FindRelatedProducts
MSI (s) (98:F0) [11:03:39:171]: Note: 1: 2205 2:  3: ActionText 
Action start 11:03:39: FindRelatedProducts.
MSI (s) (98:F0) [11:03:39:172]: Doing action: AppSearch
MSI (s) (98:F0) [11:03:39:172]: Note: 1: 2205 2:  3: ActionText 
Action ended 11:03:39: FindRelatedProducts. Return value 1.
Action start 11:03:39: AppSearch.
MSI (s) (98:F0) [11:03:39:173]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (s) (98:F0) [11:03:39:173]: Note: 1: 1402 2:     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Service Fabric 3: 2 
MSI (s) (98:F0) [11:03:39:173]: Doing action: LaunchConditions
MSI (s) (98:F0) [11:03:39:173]: Note: 1: 2205 2:  3: ActionText 
Action ended 11:03:39: AppSearch. Return value 1.
Action start 11:03:39: LaunchConditions.
MSI (s) (98:F0) [11:03:39:173]: Note: 1: 2205 2:  3: Error 
MSI (s) (98:F0) [11:03:39:173]: Note: 1: 2228 2:  3: Error 4: SELECT     `Message` FROM `Error` WHERE `Error` = 1709 
MSI (s) (98:F0) [11:03:39:173]: Product: Microsoft Azure Service Fabric SDK     -- This product requires Service Fabric Runtime version 5.7.198.9494 to be     installed.

Action ended 11:03:39: LaunchConditions. Return value 3.
Action ended 11:03:39: INSTALL. Return value 3.
MSI (s) (98:F0) [11:03:39:175]: Note: 1: 1708 
MSI (s) (98:F0) [11:03:39:175]: Note: 1: 2205 2:  3: Error 
MSI (s) (98:F0) [11:03:39:175]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1708 
MSI (s) (98:F0) [11:03:39:175]: Note: 1: 2205 2:  3: Error 
MSI (s) (98:F0) [11:03:39:175]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
MSI (s) (98:F0) [11:03:39:175]: Product: Microsoft Azure Service Fabric SDK     -- Installation failed.

MSI (s) (98:F0) [11:03:39:175]: Windows Installer installed the product.     Product Name: Microsoft Azure Service Fabric SDK. Product Version: 2.7.198.9494. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.

MSI (s) (98:F0) [11:03:39:177]: Deferring clean up of packages/files, if any exist
MSI (s) (98:F0) [11:03:39:177]: MainEngineThread is returning 1603
MSI (s) (98:E0) [11:03:39:179]: RESTART MANAGER: Session closed.
MSI (s) (98:E0) [11:03:39:179]: No System Restore sequence number for this installation.
=== Logging stopped: 9/4/2017  11:03:39 ===
MSI (s) (98:E0) [11:03:39:180]: User policy value 'DisableRollback' is 0
MSI (s) (98:E0) [11:03:39:180]: Machine policy value 'DisableRollback' is 0
MSI (s) (98:E0) [11:03:39:180]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (98:E0) [11:03:39:182]: Note: 1: 1402 2:     HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (98:E0) [11:03:39:182]: Note: 1: 1402 2:     HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s) (98:E0) [11:03:39:182]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (7C:18) [11:03:39:183]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (7C:18) [11:03:39:184]: MainEngineThread is returning 1603
=== Verbose logging stopped: 9/4/2017  11:03:39 ===

有没有人有任何想法我做错了什么?谢谢。

UPD

这是我尝试安装SF Runtime后得到的日志。

DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Visual C++ 2012 SP1 Redistributable Package (x64)'. Commandline is: 'C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\VC11Redist_x64\ABE47E4996CF0409A794C1844F1FA8404032EDB2\vcredist_x64.exe /q /norestart'. Process Id: 2660
DownloadManager Information: 0 : Install exit code for product 'Microsoft Visual C++ 2012 SP1 Redistributable Package (x64)' is '0'
DownloadManager Information: 0 : Install return code for product 'Microsoft Visual C++ 2012 SP1 Redistributable Package (x64)' is Success
DownloadManager Information: 0 : Product Microsoft Visual C++ 2012 SP1 Redistributable Package (x64) done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '41922560'
DownloadManager Information: 0 : Number of bytes after possible decompression: '41922560'
DownloadManager Information: 0 : Moving downloaded file 'C:\Users\kv-user\AppData\Local\Temp\3\tmp9897.tmp' to: C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzurePowershellGet\1F4FCC5E92035BE0907B4E83AC8661B13C0C2FA6\azure-powershell.4.3.1.msi
DownloadManager Information: 0 : Using cached file at C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceFabricRuntime_5_7\C3ACBAF5C375D7E8834907EB208BA5EA92C507DA\MicrosoftServiceFabric.5.7.198.9494.exe instead of downloading from https://download.microsoft.com/download/2/9/E/29E129A2-5C20-46A6-83EB-A4958097DC2E/MicrosoftServiceFabric.5.7.198.9494.exe
DownloadManager Information: 0 : Starting MSI install for msi 'C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzurePowershellGet\1F4FCC5E92035BE0907B4E83AC8661B13C0C2FA6\azure-powershell.4.3.1.msi', commandline: 'ACTION=INSTALL REBOOT=ReallySuppress'
DownloadManager Information: 0 : Using cached file at C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceFabricSDK_2_7\6ACC7553812DE4F9F48427A124789298BC44E8F4\MicrosoftServiceFabricSDK.2.7.198.msi instead of downloading from https://download.microsoft.com/download/2/9/E/29E129A2-5C20-46A6-83EB-A4958097DC2E/MicrosoftServiceFabricSDK.2.7.198.msi
DownloadManager Information: 0 : MSI install return value for product 'Microsoft Azure PowerShell' is '0'
DownloadManager Information: 0 : Install return code for product 'Microsoft Azure PowerShell' is Success
DownloadManager Information: 0 : Microsoft Azure PowerShell installation log: C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\logs\install\2017-09-04T12.25.32\azure-powershell.4.3.1.txt
DownloadManager Information: 0 : Product Microsoft Azure PowerShell done install completed
DownloadManager Information: 0 : Increasing current install to 3
DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Azure Service Fabric Runtime - 5.7.198'. Commandline is: 'C:\Windows\sysnative\cmd.exe /c wmic product where name="Microsoft Azure Service Fabric" call uninstall'. Process Id: 1256
DownloadManager Information: 0 : Install exit code for product 'Microsoft Azure Service Fabric Runtime - 5.7.198' is '0'
DownloadManager Information: 0 : Ignoring exit code '0' for product 'Microsoft Azure Service Fabric Runtime - 5.7.198'
DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Azure Service Fabric Runtime - 5.7.198'. Commandline is: 'C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceFabricRuntime_5_7\C3ACBAF5C375D7E8834907EB208BA5EA92C507DA\MicrosoftServiceFabric.5.7.198.9494.exe /AcceptEULA'. Process Id: 1816
DownloadManager Information: 0 : Install exit code for product 'Microsoft Azure Service Fabric Runtime - 5.7.198' is '1'
DownloadManager Error: 0 : Install return code for product 'Microsoft Azure Service Fabric Runtime - 5.7.198' is Failure
DownloadManager Information: 0 : Product Microsoft Azure Service Fabric Runtime - 5.7.198 done install completed
DownloadManager Information: 0 : Increasing current install to 4
DownloadManager Warning: 0 : Dependency failed for product 'Microsoft Azure Service Fabric SDK - 2.7.198'. Skipping install
DownloadManager Information: 0 : Product Microsoft Azure Service Fabric SDK - 2.7.198 had a dependency fail. Increasing install product to 5
DownloadManager Warning: 0 : Dependency failed for product 'Microsoft Azure Service Fabric SDK - 2.7.198'. Skipping install
DownloadManager Information: 0 : Product Microsoft Azure Service Fabric SDK - 2.7.198 had a dependency fail. Increasing install product to 6
DownloadManager Information: 0 : Product: VC11Redist_x64, Install Status: InstallCompleted-Success, Install Time: 00:00:01.2656949
DownloadManager Information: 0 : Product: WindowsAzurePowershellGet, Install Status: InstallCompleted-Success, Install Time: 00:00:52.7939372
DownloadManager Information: 0 : Product: ServiceFabricRuntime_5_7, Install Status: InstallCompleted-Failure, Install Time: 00:00:20.0043778
DownloadManager Information: 0 : Product: ServiceFabricSDK_2_7, Install Status: DependencyFailed-None, Install Time: 00:00:00
DownloadManager Information: 0 : Product: MicrosoftAzure-ServiceFabric-CoreSDK, Install Status: DependencyFailed-None, Install Time: 00:00:00

UPD2

这就是我从日志中得到的。:

DownloadManager Information: 0 : Starting EXE command for product 'Microsoft Azure Service Fabric Runtime - 5.7.198'. Commandline is: 'C:\Users\kv-user\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceFabricRuntime_5_7\C3ACBAF5C375D7E8834907EB208BA5EA92C507DA\MicrosoftServiceFabric.5.7.198.9494.exe /AcceptEULA'. Process Id: 3892
DownloadManager Information: 0 : Install exit code for product 'Microsoft Azure Service Fabric Runtime - 5.7.198' is '1'
DownloadManager Error: 0 : Install return code for product 'Microsoft Azure Service Fabric Runtime - 5.7.198' is Failure

然后我尝试使用PS(和里面的命令)手动完成,以及我得到的:

enter image description here

我有未定义的CurrentUser。怎么会发生这种情况......?

UPD3

VM的完全重新部署为我工作。不幸的是,问题仍然是我的猜测。

2 个答案:

答案 0 :(得分:1)

卸载Service Fabric安装的所有组件(如果有),如Azure Service Fabric(运行时),Azure Service Fabric SDK和Visual Studio的Azure Service Fabric工具(例如VS2015)。

在Azure Service Fabric(运行时)的序列中重新安装,为Visual Studio重新安装Azure Service Fabric SDK和Azure Service Fabric工具。它对我有用。

答案 1 :(得分:0)

VM的Clean重新部署适用于我。不幸的是,我无法对发生的问题给出另一个更详细的答案或描述,但是在完全删除和完全新的VM创建后,ServiceFabric SDK成功安装。

谢谢Shridhar R. Kulkarni