无法重新安装 Service Fabric

问题描述 投票:0回答:1

我在服务结构方面遇到了一些问题(虽然它安装在我的机器上并且我之前使用过它,但突然它停止工作了。我已经忘记了我所面临的确切问题。但是在堆栈溢出的某个地方建议重新安装.) 所以我重新安装了服务结构。我尝试从以下位置下载最新的运行时和 sdk: https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started

尝试使用

.\ServiceFabricRuntimeWhateverName.exe /accepteula
安装,但我在 C:/Program Files 中名为“Microsoft Service Fabric”的文件夹中遇到 ktlLogger.sys 仍在运行,因此安装被卡住了。我试图删除它但失败了。作为解决方法,我将 Microsoft Service Fabric 文件夹的名称更改为随机名称。然后我再次尝试运行安装命令。我得到这个盒子: error

我点击确定。

然后出现如下日志:

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

所以现在当我尝试运行 service fabric sdk 安装程序时,我仍然收到错误“This product Service Fabric Runtime to be installed”

接下来我尝试在 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

我就这样卡了两天了。请帮忙。不确定这是否是发帖的正确论坛。在超级用户中没有找到任何与 Service Fabric 相关的标签。因为这是我在安装 Service Fabric 时面临的问题,所以我想我可以把它贴在这里。

powershell installation azure-service-fabric
1个回答
0
投票

您能否按照以下步骤检查是否有帮助?

第一步: 请确保您使用的是受支持的 Windows 平台版本。 看这里.

第二步: 打开 regedit 并导航到注册表路径 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Service Fabric SDK 并确认 FabricSDKVersion 项是否存在且其值为 6.1.1583.9590See here

第三步: 如果 FabricSDKVersion 的值与上述版本不同,请删除完整的 Service Fabric SDK 密钥并尝试再次安装 SF SDK 并检查是否有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.