Service Fabric重装失败求助:Runtime与SDK安装异常
关于Service Fabric重装后的安装故障求助
- 此前已安装并使用过Service Fabric,突然无法正常工作,参考建议尝试重装,下载了最新Runtime和SDK。
- 执行命令
.\ServiceFabricRuntimeWhateverName.exe /accepteula时,因C:/Program Files/Microsoft Service Fabric文件夹中的ktlLogger.sys仍在运行,安装卡住且无法删除文件。将该文件夹重命名后再次执行安装命令,弹出错误窗口,点击确定后日志显示Runtime安装成功:
16-03-2023 05:40:00,Info,Legacy Fabric Uninstalled using CleanFabric.ps1! 16-03-2023 05:40:04,Info,Successfully extracted cab file to C:\Program Files\Microsoft Service Fabric.mqtpr1dp.4ci 16-03-2023 05:40:04,Info,Moving FabricRoot files from 'C:\Program Files\Microsoft Service Fabric.mqtpr1dp.4ci' to 'C:\Program Files\Microsoft Service Fabric'. 16-03-2023 05:40:05,Info,Moved FabricRoot files 'C:\Program Files\Microsoft Service Fabric' successfully. 16-03-2023 05:40:05,Info,Installing Service Fabric Runtime... Logs written to: C:\WINDOWS\TEMP\FabricSetupLog_638145617961023082.log 16-03-2023 05:40:05,Info,Executing powershell.exe with parameters: -NoProfile -Command & 'C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\InstallFabric.ps1' -FabricRootIsPreInstalled -AcceptEULA -LogPath C:\WINDOWS\TEMP\FabricSetupLog_638145617961023082.log 16-03-2023 05:40:05,Info,16-03-2023 11:10:05 Running Process: powershell.exe -NoProfile -Command & 'C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\InstallFabric.ps1' -FabricRootIsPreInstalled -AcceptEULA -LogPath C:\WINDOWS\TEMP\FabricSetupLog_638145617961023082.log with timeout 00:10:00 16-03-2023 05:40:05,Info,Successfully installed Service Fabric Runtime
- 但运行SDK安装程序时仍提示此产品需要安装Service Fabric Runtime。随后在PowerShell 7(x64)中再次执行
.\ServiceFabricRuntimeWhateverName.exe /accepteula,日志显示以下错误:
16-03-2023 05:45:51,Info,Installing Service Fabric Runtime. Logs written to C:\WINDOWS\TEMP\InstallFabricRuntime_638145621510218506.log 16-03-2023 05:45:51,Error,Service Fabric product installed, but cannot validate runtime & SDK compatibility due to inability to read product version from registry key 'SOFTWARE\Microsoft\Service Fabric SDK', value 'FabricSDKVersion'. Consider reinstalling. 16-03-2023 05:45:54,Info,Running extract in parallel. 16-03-2023 05:45:54,Info,16-03-2023 11:15:54 Running Process: powershell.exe -NoProfile -Command Get-ExecutionPolicy -Scope CurrentUser with timeout 00:01:00 16-03-2023 05:45:54,Info,Unpackaging autoextractor... 16-03-2023 05:45:55,Info,Creating temporary runtime directory C:\Program Files\Microsoft Service Fabric.kabnoc3z.lnq. 16-03-2023 05:45:55,Info,Extracting runtime cab to C:\Program Files\Microsoft Service Fabric.kabnoc3z.lnq... 16-03-2023 05:45:55,Info,16-03-2023 11:15:55 Running Process: C:\WINDOWS\TEMP\MicrosoftServiceFabricAutoextractor.exe /L "C:\Program Files\Microsoft Service Fabric.kabnoc3z.lnq" /E /Y with timeout 01:00:00 16-03-2023 05:45:55,Info,Current Powershell Execution Policy: Get-ExecutionPolicy : The 'Get-ExecutionPolicy' command was found in the module 'Microsoft.PowerShell.Security', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'. At line:1 char:1 + Get-ExecutionPolicy -Scope CurrentUser + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-ExecutionPolicy:String) [], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule 16-03-2023 05:45:55,Error,Unable to get Powershell ExecutionPolicy. ExitCode: 1 16-03-2023 05:45:55,Info,Cleaning temporary directory C:\Program Files\Microsoft Service Fabric.kabnoc3z.lnq
- 已被困两天,运行Runtime安装程序后Program Files中重新生成了Microsoft Service Fabric文件夹,但错误仍未解决,恳请协助。
内容的提问来源于stack exchange,提问作者MChak
相关产品推荐
相关产品推荐

