【问题标题】:Error while publishing to Azure service fabric cluster发布到 Azure 服务结构群集时出错
【发布时间】:2019-03-22 01:21:42
【问题描述】:

当我尝试将 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.  

【问题讨论】:

    标签: azure azure-service-fabric


    【解决方案1】:

    如果只是防火墙的问题,打开端口可能会解决问题,然后尝试打开,如果不能解决问题,请回到这里:

    servce fabric 使用的主要端口如下:

    • 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>
    

    【讨论】:

      猜你喜欢
      • 2017-11-07
      • 2016-07-26
      • 2018-09-21
      • 2017-11-08
      • 2017-03-29
      • 2020-06-24
      • 2017-09-06
      • 1970-01-01
      • 2017-03-04
      相关资源
      最近更新 更多