简体   繁体   English

Microsoft Service Fabric状态服务将无法启动

[英]Microsoft Service Fabric Stateful Service will not start

All of a sudden my local Service Fabric is unable to start Stateful services. 我的本地Service Fabric突然无法启动有状态服务。 I've tried to uninstall the SDK's, but with no luck. 我尝试卸载SDK,但没有运气。 The same service run fine on the Azure cluster. 相同的服务在Azure群集上运行良好。

Even the quickstart service in visual studio won't start 即使是Visual Studio中的快速启动服务也无法启动

Service Status: fabric:/testapp/Stateful1 is not ready, 1 partitions remaining. 服务状态:结构:/ testapp / Stateful1尚未准备好,剩余1个分区。

Service Status: fabric:/testapp/Stateful1 is not ready, 1 partitions remaining. 服务状态:结构:/ testapp / Stateful1尚未准备好,剩余1个分区。

Something is taking too long, the application is still not ready. 花费的时间太长,应用程序仍未准备就绪。 Finished executing script 'Get-ServiceFabricApplicationStatus'. 完成执行脚本“ Get-ServiceFabricApplicationStatus”。 Time elapsed: 00:01:41.7659838 经过的时间:00:01:41.7659838


Error from Service Fabric Explorer: Error event: SourceId='System.FM', Property='State'. 来自Service Fabric资源管理器的错误:错误事件: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. 如果收到有关群集本身和fabric:/System/FaultAnalysisService ,请查看此线程 ,您的问题可能与磁盘空间不足有关。

Assuming you have local cluster setup with default values you can use PowerShell as well to get information about cluster health: 假设您具有使用默认值的本地集群设置,则还可以使用PowerShell来获取有关集群运行状况的信息:

# 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. 我建议使用PowerShell与群集进行交互。

Try to disable the symbol server for remote debuging in visual studio. 尝试禁用符号服务器以在Visual Studio中进行远程调试。

Options > Debugging > Symbols > Disable Microsoft Symbol servers 选项>调试>符号>禁用Microsoft符号服务器

Had the same issue, it turned out that the symbol server returned a 404 when visual studio tried to get the symbols. 遇到同样的问题,事实证明,当Visual Studio尝试获取符号时,符号服务器返回了404。 That slowed down the whole application, so the script thought it failed. 这减慢了整个应用程序的速度,因此脚本认为它失败了。

屏幕截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM