【问题标题】:No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue无法访问集群端点,请检查是否存在连接/防火墙/DNS 问题
【发布时间】:2016-09-21 09:44:48
【问题描述】:

我目前正在研究云技术。在我当前的一个项目中,我在 Azure 中创建了服务结构集群。然后我尝试通过 Windows PowerShell 连接到集群。我得到了错误

没有可访问的集群端点,请检查是否存在连接/防火墙/DNS 问题。

请告诉我如何解决上述问题。

问候,

普雷迪普

【问题讨论】:

标签: azure microservices azure-service-fabric


【解决方案1】:

经过大量研究,我使用以下链接找到了解决上述问题的方法。

准备你的开发环境

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started

使用 Azure 门户在 Azure 中创建 Service Fabric 群集

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-creation-via-portal

我在使用 PowerShell 连接安全集群时犯的错误是在我编写上述命令之前我忘记启用 PowerShell 脚本执行。

所以,首先我使用以下命令启用了 power shell 脚本执行。

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser

之后我使用以下命令连接到我的安全集群,现在它工作正常。

Connect-serviceFabricCluster

【讨论】:

  • 我在尝试从章鱼部署时收到此错误。我应该在章鱼上运行这些脚本吗
【解决方案2】:

本周早些时候我遇到了这个错误,在与 Microsoft 合作了几个小时后,我们发现我使用的是 $connections 而不是 @connections。

$connections = @{ ConnectionEndpoint='something.eastus.cloudapp.azure.com:19000'; X509Credential=$true; ServerCertThumbprint='4DC09A1212617326E2080EFE7E1022C6554AAEB9'; FindType='FindByThumbprint'; FindValue='71e5d31e7cbb0d10edb9c62e4d1be6e19de22eae'; StoreLocation='CurrentUser'; StoreName='My' }
# Incorrect:
Connect-ServiceFabricCluster $connections
# Correct:
Connect-ServiceFabricCluster @connections

请注意,您传递给 Connect-ServiceFabricCluster cmdlet 的变量应该是 @connections。

【讨论】:

    【解决方案3】:

    我花了一天时间弄清楚出了什么问题。从头开始升级或安装后,我也遇到了这个问题!

    使用以下项目稍微更改此文件 C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\NonSecure\OneNode\ClusterManifestTemplate.json:

    • 如果您尝试在 localhost 上进行调试,请将 iPAddress 更改为 localhost

      { “名称”:“开发集群”, "clusterConfigurationVersion": "1.0.0", "apiVersion": "10-2017", “节点”:[ { "nodeName": "_Node_0", “iPaddress”:“本地主机”, "nodeTypeRef": "NodeType0", “故障域”:“fd:/0”, “升级域”:“0” } ], }

    • 将以下参数添加到 Hosting 部分:-

      "name": "主机", “参数”: [ …… { "name": "FabricContainerAppsEnabled", “价值”:“假” } ]

    【讨论】:

      【解决方案4】:

      No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue


      情况1:

      我在尝试部署到 Azure 时遇到上述错误。当我尝试从 Visual Studio 部署时,连接端点无法解析:

      解决方案 1:

      原来我必须先在 Azure 中打开端口 (19000)!

      详情请见Tutorial: Filter network traffic with a network security group using the Azure Portal


      情况2:

      在尝试部署第二个应用程序之前,我已经停止了本地集群!

      解决方案 2:

      我从托盘菜单重新启动了本地集群。一个相关的解决方案是重置并重新启动本地集群。

      【讨论】:

        猜你喜欢
        • 2018-07-26
        • 2019-06-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-09-10
        • 2015-11-30
        • 2017-08-23
        相关资源
        最近更新 更多