azure-service-fabric - Azure Service Fabric - 部署失败,剩余 1 个分区

标签 azure-service-fabric

我一直在使用 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

有谁知道为什么这不会部署/我如何才能深入了解?我见过其他人有同样的错误,但没有找到任何解决办法。

最佳答案

对服务运行状况的不健康评估向您显示存在问题的分区。您可以继续深入了解该分区的运行状况 ( Get-ServiceFabricPartitionHealth 3eebd943-097d-4568-ad7e-d37c621a888b )。我的猜测是您将看到来自 ErrorSystem.FM 事件,说明分区低于最小副本集大小。

然后,您可以深入了解副本的健康状况 ( Get-ServiceFabricReplica 3eebd943-097d-4568-ad7e-d37c621a888b | Get-ServiceFabricReplicaHealth )。
我见过很多这种情况,因为副本无法打开(因为配置问题或服务副本代码中的错误)。如果是这种情况,您将在副本上看到一个事件,说明它有什么问题(例如,打开需要很长时间或打开失败并显示错误代码等),或者副本将继续回收。

关于azure-service-fabric - Azure Service Fabric - 部署失败,剩余 1 个分区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33657382/

相关文章:

azure-service-fabric - 更多 Service Fabric Actors 单元测试和依赖注入(inject)

azure - 如何在 Azure Service Fabric 中使用 MSMQ

azure-service-fabric - 启动 Service Fabric 群集时出错 (v 1.5.175)

azure-devops - Service Fabric 应用程序部署超时

c# - IReliableQueue 入队序列化错误

azure-service-fabric - Connect-ServiceFabricCluster 无法联系远程 Azure Service Fabric 群集上的命名服务器

azure-service-fabric - 如何设置和配置服务结构集群?

azure - 使用 Service Fabric 模板时出现错误的 dll 文件异常

c# - Service-Fabric 绑定(bind)到多个端点

powershell - 启动服务: Failed to start service 'Microsoft Service Fabric Host Service (FabricHostSvc)'