All of a sudden my local Service Fabric is unable to start Stateful services. I've tried to uninstall the SDK's, but with no luck. The same service run fine on the Azure cluster.
Even the quickstart service in visual studio won't start
Service Status: fabric:/testapp/Stateful1 is not ready, 1 partitions remaining.
Service Status: fabric:/testapp/Stateful1 is not ready, 1 partitions remaining.
Something is taking too long, the application is still not ready. Finished executing script 'Get-ServiceFabricApplicationStatus'. Time elapsed: 00:01:41.7659838
Error from Service Fabric Explorer: Error event: SourceId='System.FM', Property='State'. Partition is below target replica or instance count.
If you are receiving errors about cluster itself and fabric:/System/FaultAnalysisService
, please look at this thread, your issue might be related to lack of disk space.
Assuming you have local cluster setup with default values you can use PowerShell as well to get information about cluster health:
# connect to cluster
Connect-ServiceFabricCluster -ConnectionEndpoint "localhost:19000"
# import commandlets
Import-Module "$ENV:ProgramFiles\Microsoft SDKs\Service Fabric\Tools\PSModule\ServiceFabricSDK\ServiceFabricSDK.psm1"
# get cluster status
Get-ServiceFabricClusterHealth
I'd recommend using PowerShell to interact with cluster.