question

senglory-6433 avatar image
0 Votes"
senglory-6433 asked ·

Why doesn't my App Service Fabric work?

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?








service-fabric-standalone
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you figure this out - I have the same problem?

0 Votes 0 ·

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

0 Votes 0 ·

1 Answer

ManuPhilip avatar image
1 Vote"
ManuPhilip answered ·

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

· 4 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks. I used that ok. Latest problem is an issue retrieving the manifest. In the service fabric explorer this manifests as a 503 error.

PS C:\Program Files\Microsoft SDKs\Service Fabric\StandAlonePackage> Get-ServiceFabricClusterManifest
Get-ServiceFabricClusterManifest : Operation canceled.
At line:1 char:1
+ Get-ServiceFabricClusterManifest
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [Get-ServiceFabricClusterManifest], FabricTransientException
+ FullyQualifiedErrorId : GetClusterManifestErrorId,Microsoft.ServiceFabric.Powershell.GetClusterManifest

0 Votes 0 ·

Hello @moidy-6809,
Looks like there are ports blocked by firewall. Check the following ports are allowed. These are mandatory ports for Azure service fabric

ClientConnectionEndpoint:19000
HttpGatewayEndpoint:19080
HttpApplicationGatewayEndpoint:19081

Similar way, check the cluster configuration and see if there are other ports also used. If so, unblock those too

Thanks,
Manu

1 Vote 1 ·

Thanks, got working in the end. A lot of uninstall/reinstall - not sure what the problem was but working now.

0 Votes 0 ·
Show more comments