Cannot start Service Fabric local cluster

怎甘沉沦 提交于 2020-04-18 03:51:36

问题


I am having an issue where the local cluster is not starting. This issue just started today because yesterday I was able to run my local cluster with no problems.

Scenario 1

I can run the Service Fabric Local Cluster Manager without issues. (I have run this both as Admin and as non-elevated user and I get the same output). After I run this, I go to my system tray and click Setup Local Cluster > 1 Node After a while I get an error message that tells me that something failed and to take a look at C:\SfDevCluster\Log\DevClusterSetup.log. Opening that file renders the following error message:

TerminatingError(Test-ServiceFabricClusterManifest): "Could not find file ServiceFabricServiceModel.xsd in Fabric code path"

However, the file is present under the path correctly C:\Program Files\Microsoft SDKs\Service Fabric\schemas\ServiceFabricServiceModel.xsd.

The same thing happens if I manually run the cluster creation shell scripts located in C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup by opening Admin PS window and running .\DevClusterSetup.ps1 -CreateOneNodeCluster

Scenario 2

I have a service fabric application that used to run. If I go to VS2019 as Administrator and try to run this application I get the following error:

Test-ServiceFabricClusterManifest : Could not find file ServiceFabricServiceModel.xsd in Fabric code >path At 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 : Could not validate cluster manifest 'C:\Users\myuser\AppData\Local\Temp\MY-MACHINE-NAME-Server-ScaleMin.xml' At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:840 char:21 + ... ifestFile = PrepareClusterManifest $manifestFileTemplate $imageStoreC ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,PrepareClusterManifest

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

Finished executing script 'Set-LocalClusterReady'.

Scenario 3

If I manually run the cluster creation shell scripts located in C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup by opening Admin PS window and running ``

Scenario 4 - Might be unrelated

I also noticed that my application stopped publishing to the Azure cluster. It looks like somehow the Azure Active Directory prompt is no longer working from PowerShell. Running the following doesnt prompt for Azure Credentials

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

My Setup

  1. I have VS2019 Professional installed along with the Azure Development workload
  2. I have Microsoft Azure Service Fabric SDK v4.0.470.9590

What I have tried

  1. Reinstalled Service Fabric SDK
  2. Uninstalled VS from VS Installer, reboot then reinstall again
  3. Repair VS

Do you know what else can I do? This just stopped working today...

来源:https://stackoverflow.com/questions/60859912/cannot-start-service-fabric-local-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!