我使用 Service Fabric 已经有一段时间了,成功构建、部署和测试了几个服务,但是我刚刚完成构建的服务在部署时失败(请参阅下面的错误)。在诊断中,我尝试使用 VS 模板创建和部署一个全新的服务(没有代码更改),但也不会部署 - 同样的错误。但是,计算器 SDK 示例部署得很好。
我收到以下错误,它无法构建分区之一:
Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.
Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.
Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.
Service Status:
fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.
Service Status:,fabric:/DataFabricServiceApplication/DataFabricService is not ready, 1 partitions remaining.
Something is taking too long, the application is still not ready.
Finished executing script 'Get-FabricApplicationStatus.ps1'.
Time elapsed: 00:01:48.0681346
The thread 0x37fc has exited with code 0 (0x0).
The thread 0x4fe4 has exited with code 0 (0x0).
获取服务的运行状况提供以下内容:
PS C:\WINDOWS\system32> Get-ServiceFabricServiceHealth -ServiceName fabric:/DataFabricServiceApplication/DataFabricService
ServiceName : fabric:/DataFabricServiceApplication/DataFabricService
AggregatedHealthState : Error
UnhealthyEvaluations :
Unhealthy partitions: 100% (1/1), MaxPercentUnhealthyPartitionsPerService=0%.
Unhealthy partition: PartitionId='3eebd943-097d-4568-ad7e-d37c621a888b', AggregatedHealthState='Error'.
Error event: SourceId='System.FM', Property='State'.
PartitionHealthStates :
PartitionId : 3eebd943-097d-4568-ad7e-d37c621a888b
AggregatedHealthState : Error
HealthEvents :
SourceId : System.FM
Property : State
HealthState : Ok
SequenceNumber : 10
SentAt : 11/11/2015 07:16:02
ReceivedAt : 11/11/2015 07:16:03
TTL : Infinite
Description : Service has been created.
RemoveWhenExpired : False
IsExpired : False
Transitions : Warning->Ok = 11/11/2015 07:16:03, LastError = 01/01/0001 00:00:00
有谁知道为什么这不会部署/我如何才能深入了解?我见过其他人有同样的错误,但没有找到任何解决办法。