无法启动Service Fabric本地群集

时间:2020-03-26 01:49:25

标签: c# azure powershell azure-service-fabric

我遇到了本地群集无法启动的问题。这个问题今天才开始,因为昨天我可以毫无问题地运行本地集群。

场景1

我可以运行Service Fabric本地群集管理器,而不会出现问题。 (我既以Admin身份又以非提升用户身份运行了此命令,并且得到相同的输出)。运行此命令后,转到系统托盘并单击Setup Local Cluster > 1 Node。一段时间后,我收到一条错误消息,告诉我某些操作失败,然后查看C:\SfDevCluster\Log\DevClusterSetup.log。打开该文件将显示以下错误消息:

TerminatedError(Test-ServiceFabricClusterManifest):“在结构代码路径中找不到文件ServiceFabricServiceModel.xsd”

但是,文件正确位于路径C:\Program Files\Microsoft SDKs\Service Fabric\schemas\ServiceFabricServiceModel.xsd下。

如果我通过打开Admin PS窗口并运行C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup

来手动运行位于.\DevClusterSetup.ps1 -CreateOneNodeCluster中的集群创建shell脚本,也会发生同样的事情。

场景2

我有一个用于运行的Service Fabric应用程序。如果我以管理员身份进入VS2019,并尝试运行此应用程序,则会出现以下错误:

Test-ServiceFabricClusterManifest:在Fabric代码> path中找不到文件ServiceFabricServiceModel.xsd 在C:\ Program Files \ Microsoft SDKs \ Service Fabric \ Tools \ Scripts \ ClusterSetupUtilities.psm1:804 char:5 + Test-ServiceFabricClusterManifest -ClusterManifestPath“ $ manifest ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ + CategoryInfo:ResourceUnavailable:(:) [Test-ServiceFabricClusterManifest],FileNotFoundException + FullyQualifiedErrorId:TestClusterManifestErrorId,Microsoft.ServiceFabric.Powershell.TestClusterManifest

PrepareClusterManifest:无法验证集群清单 'C:\ Users \ myuser \ AppData \ Local \ Temp \ MY-MACHINE-NAME-Server-ScaleMin.xml' 在C:\ Program Files \ Microsoft SDKs \ Service Fabric \ Tools \ Scripts \ ClusterSetupUtilities.psm1:840 char:21 + ... ifestFile = PrepareClusterManifest $ manifestFileTemplate $ imageStoreC ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ + CategoryInfo:未指定:(:) [Write-Error],WriteErrorException + FullyQualifiedErrorId:Microsoft.PowerShell.Commands.WriteErrorException,PrepareClusterManifest

ScriptHalted 在C:\ Program Files \ Microsoft SDKs \ Service Fabric \ Tools \ Scripts \ ClusterSetupUtilities.psm1:808 char:9 +扔 + ~~~~~ + CategoryInfo:OperationStopped:(:) [],RuntimeException + FullyQualifiedErrorId:ScriptHalted

完成执行脚本“ Set-LocalClusterReady”。

场景3

如果我通过打开Admin PS窗口并运行``

来手动运行C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup中的集群创建shell脚本

方案4-可能不相关

我还注意到我的应用程序停止了发布到Azure群集。好像是Azure Active Directory prompt is no longer working from PowerShell。运行以下内容不会提示您输入Azure凭据

PS C:\> $ConnectArgs = @{  ConnectionEndpoint = 'mycluster.cloudapp.net:19000';  AzureActiveDirectory = $True; ServerCertThumbprint = "AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00"   }
PS C:\> Connect-ServiceFabricCluster @ConnectArgs

我的设置

  1. 我已经安装了VS2019 Professional和Azure开发工作负载
  2. 我有Microsoft Azure Service Fabric SDK v4.0.470.9590

我尝试过的

  1. 重新安装的Service Fabric SDK
  2. 从VS Installer中卸载VS,重新启动然后再次重新安装
  3. 修复VS

您知道我还能做什么吗?今天才停止工作...

0 个答案:

没有答案
相关问题