You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Service Fabric本地集群安装连接失败求助

Troubleshooting Local Azure Service Fabric Cluster Connection Timeout

Hey there, sorry to hear you're stuck with this local Service Fabric cluster issue—let's work through it step by step. First, let's recap the error you're hitting to make sure we're aligned:

Connect-ServiceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue.
At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:620 char:12

  • [void](Connect-ServiceFabricCluster @connParams)
  • CategoryInfo : InvalidOperation: (:) [Connect-ServiceFabricCluster], FabricException
  • FullyQualifiedErrorId : TestClusterConnectionErrorId,Microsoft.ServiceFabric.Powershell.ConnectCluster

Since you've already tried common fixes from Stack Overflow and MSDN, let's dive into some targeted troubleshooting steps:

  • Verify critical port availability
    Service Fabric local cluster relies on ports like 19000 (client connection), 19080 (HTTP management), and 19001 (cluster communication). Run this command in an elevated PowerShell to check if these ports are in use:

    netstat -ano | findstr ":19000 :19080 :19001"
    

    If you see a PID listed, find the corresponding process in Task Manager and terminate it—then restart the Service Fabric cluster.

  • Reset your local cluster
    Corrupted cluster state is a common culprit. Open the Service Fabric Local Cluster Manager from your system tray, select Reset Cluster, and confirm. This will wipe existing cluster data and rebuild it from scratch (back up any important test data first if needed).

  • Check the Service FabricHostSvc service
    Ensure the core service is running correctly:

    1. Press Win + R, type services.msc, and hit Enter.
    2. Locate Service Fabric Host Service (ServiceFabricHostSvc).
    3. If it's stopped, start it; if running, right-click and select Restart.
    4. Set its startup type to Automatic to avoid issues on reboot.
  • Test manual cluster connection
    Run this elevated PowerShell command to connect directly and get more detailed error context:

    Connect-ServiceFabricCluster -ConnectionEndpoint localhost:19000 -KeepAliveIntervalInSec 10
    

    If this fails, note any additional error messages—they might point to specific issues like certificate problems or DNS resolution failures.

  • Validate localhost DNS resolution
    Make sure localhost resolves correctly to 127.0.0.1:

    1. Open Command Prompt and run ping localhost.
    2. Check your hosts file (located at C:\Windows\System32\drivers\etc\hosts) to ensure there are no rogue entries overriding localhost's resolution.
  • Inspect cluster configuration files
    Navigate to C:\SfDevCluster\Data and look for the ClusterManifest.xml file. Verify that the node endpoints are configured to use localhost or 127.0.0.1 (not a specific external IP address that might not be available on your dev machine).

  • Reinstall the Service Fabric runtime (with compatibility in mind)
    Since you're using VS 2017, make sure you install a runtime version that's compatible with it (newer versions may drop support for older VS editions). Uninstall the current runtime via Programs and Features, download a compatible version, and run the installer as Administrator.

Let me know if any of these steps resolve your issue, or if you get more specific error messages we can dig into further!

内容的提问来源于stack exchange,提问作者gtestasker

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 06:40:23