Microsoft Service Fabric Host Service (FabricHostSvc) Hangs on Start

后端 未结 5 773
自闭症患者
自闭症患者 2020-12-30 11:46

I\'ve been working with Microsoft Service Fabric since November 2015 and have encountered many issues but now Service Fabric has become completely non-functional on my devel

5条回答
  •  星月不相逢
    2020-12-30 12:17

    For the benefit of searchers, this is the Powershell script I use to fix my local cluster. It was adapted from this issue fix on github.

    #
    # WARNING: YOU MUST STOP 'SERVICE FABRIC HOST SERVICE' IN SERVICES FIRST
    #          IF THE APPLICATION IS STUCK IN 'STARTING', RESTART YOUR MACHINE
    # 
    # This script will completely reset the local cluster
    # 
    
    Remove-Item 'C:\SfDevCluster' -Recurse -Force -ErrorAction Stop 
    
    New-Item -ItemType directory -Path 'C:\SfDevCluster'
    
    Set-Location 'C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup'
    
    ./DevClusterSetup.ps1 -PathToClusterDataRoot 'C:\SfDevCluster\Data' -PathToClusterLogRoot 'C:\SfDevCluster\Log'
    

提交回复
热议问题