我正在尝试在 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(和里面的命令)手动完成,我得到了什么:
我有未定义的 CurrentUser。怎么会这样。。?
UPD3
完全重新部署 VM 对我有用。不幸的是,问题对我来说仍然是一个猜测。