Why doesn't my App Service Fabric work?

senglory 1 Reputation point
2020-04-27T10:14:15.217+00:00

Win2012R2 Standard. I downloaded App Service Fabric from this this MS link, per MS recommendations ran

.\CreateServiceFabricCluster.ps1 -ClusterConfigFilePath .\ClusterConfig.Unsecure.DevCluster.json -AcceptEULA

to create a development cluster, and the script finished working w/o visible errors. However, when I tried to run

Connect-ServiceFabricCluster -ConnectionEndpoint localhost:19000

to see if the cluster fabric is available on my machine I got the following output:

PS C:\Users\adm\Downloads\azc> Connect-ServiceFabricCluster -ConnectionEndpoint localhost:19000
WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service...
WARNING: Failed to contact Failover Manager Service, Attempting to contact FMM...
False
WARNING: No connection could be made because the target machine actively refused it 127.0.0.1:19000
Connect-ServiceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS
issue.
At line:1 char:1

  • Connect-ServiceFabricCluster -ConnectionEndpoint localhost:19000
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidOperation: (:) [Connect-ServiceFabricCluster], FabricException
  • FullyQualifiedErrorId : TestClusterConnectionErrorId,Microsoft.ServiceFabric.Powershell.ConnectCluster

Moreover, the command "netstat -a -n" didn't show me an opened port 19000 at the local machine.

Active Connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1801 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2103 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2105 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2107 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5985 0.0.0.0:0 LISTENING
TCP 0.0.0.0:47001 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49155 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49161 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49162 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49165 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49166 0.0.0.0:0 LISTENING
TCP 0.0.0.0:50094 0.0.0.0:0 LISTENING

I wonder how to connect to the installed cluster and go further with it configure steps. Any ideas?

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
252 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Manu Philip 16,951 Reputation points MVP
    2020-06-08T10:10:36.18+00:00

    Hi,
    It could be the issue for connection in PowerShell secure

    Run below cmdlet to connect correctly:

    Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
    
    Connect-serviceFabricCluster
    

    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion

    Regards,

    Manu

    1 person found this answer helpful.

  2. Sritharini Radhakrishnan 66 Reputation points
    2021-07-12T06:56:58.957+00:00

    Hi I am having the same error, I have the ports open but still i am getting the same error, can you please help me with this? thankyou. @Manu Philip

    0 comments No comments

  3. Manu Philip 16,951 Reputation points MVP
    2021-07-12T08:05:43.217+00:00

    Check, if there is a firewall restricting the ports or the service is not listening on that port. This may be because it is not running at all or because it is listening on a different port. Once you start the process, try netstat -anb (requires admin privileges) to verify that it is running and listening on the expected port.

    0 comments No comments