发布到Azure Service Fabric群集时出错

时间:2018-10-17 11:16:16

标签: azure azure-service-fabric

当我尝试将服务结构应用程序发布到Azure群集时,出现错误消息。

这是因为我在公司环境中工作以来,由于防火墙问题而引起的。如果是防火墙问题,则需要打开哪个端口来解决此问题?还是这是由于其他问题造成的?

WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service...
    Get-ServiceFabricClusterManifest : Operation canceled.
    At C:\Program Files\Microsoft SDKs\Service 
    Fabric\Tools\PSModule\ServiceFabricSDK\Publish-NewServiceFabricApplication.ps1:159 char:28
    +     $clusterManifestText = Get-ServiceFabricClusterManifest
    +                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [Get-ServiceFabricClusterManifest], FabricTransientException
    + FullyQualifiedErrorId : GetClusterManifestErrorId,Microsoft.ServiceFabric.Powershell.GetClusterManifest     
    Finished executing script 'Deploy-FabricApplication.ps1'.
    Time elapsed: 00:00:47.5709554
    The PowerShell script failed to execute.  

1 个答案:

答案 0 :(得分:1)

如果问题仅是防火墙,则打开端口可能会解决问题,然后尝试打开,如果不能解决问题,请返回此处:

servce架构使用的主要端口是:

  • ClientConnectionEndpoint:19000
  • HttpGatewayEndpoint:19080
  • HttpApplicationGatewayEndpoint:19081

如果查看群集配置,则会找到正在使用的端口列表,如下所示:

  <Endpoints>
    <ClientConnectionEndpoint Port="19000" />
    <LeaseDriverEndpoint Port="19001" />
    <ClusterConnectionEndpoint Port="19002" />
    <HttpGatewayEndpoint Port="19080" Protocol="http" />
    <HttpApplicationGatewayEndpoint Port="19081" Protocol="http" />
    <ServiceConnectionEndpoint Port="19006" />
    <ApplicationEndpoints StartPort="30001" EndPort="31000" />
  </Endpoints>