microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.02k stars 399 forks source link

No cluster endpoint is reachable #745

Open felipecruz91 opened 6 years ago

felipecruz91 commented 6 years ago

Environment information OS: Windows 10 Pro Version: 10.0.16299 Build 16299 Microsoft Azure Service Fabric: 6.2.301.9494 Microsoft Azure Service Fabric SDK: 3.1.301.9494

When running C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\DevClusterSetup.ps1 on my local machine, I get the following error:

image

raunakpandya commented 6 years ago

Can you try running Connect-ServiceFabricCluster from a new powershell window? Also while the cluster is being brought up, do you see Fabric.exe and FabricGateway.exe process running in taskmgr?

jecaestevez commented 6 years ago

It happens the same to me!

felipecruz91 commented 6 years ago

@raunakpandya Running that from a new PS window didn't work. I don't see neither Fabric.exe nor FabricGateway.exe in the Task Manager. It only appears FabricHost.

raunakpandya commented 6 years ago

Can you please share the traces which will be under "FabricLogRoot" in the output of this command? reg query "HKLM\SOFTWARE\Microsoft\ServiceFabric" By default it should be here C:\SfDevCluster\Log\Traces

felipecruz91 commented 6 years ago

@raunakpandya

Traces.zip

P.S: the Fabric.exe process runs for 1 or 2 seconds at the very beginning when I run .\DevClusterSetup.ps1 and then exits immediately.

felipecruz91 commented 6 years ago

@raunakpandya

image

image

felipecruz91 commented 6 years ago

Following https://github.com/Azure/service-fabric-issues/issues/936#issuecomment-392726150, if I stop the Internet Connection Sharing (ICS) service, then I can run the SF cluster locally...

felipecruz91 commented 6 years ago

However, the DNS Service does not seem to work correctly because it doesn't resolve my computer name into localhost:

image

masnider commented 6 years ago

@felipecruz91 can you also see if the workaround mentioned here works to resolve the issue? Let's separate out the DNS issue for now, if we can, and work on making sure the cluster setup works correctly first. (Edit: Ah, I see you already have: https://github.com/Azure/service-fabric-issues/issues/1144 Thanks! )

felipecruz91 commented 6 years ago

@masnider As per the workaround you mentioned, adding the line:

{ "name": "FabricContainerAppsEnabled", "value": "false" }

to the C:\Program Files\Microsoft SDKs\Service Fabric\ClusterSetup\NonSecure\OneNode\ClusterManifestTemplate.json file and stopping the Internet Connection Sharing (ICS) service seems to solve the original problem (for now).

SoftwareWizard commented 6 years ago

@felipecruz91 Your workaround works fine. But be aware of modifing the right file as there are two separate folders for the ClusterManifestTemplate.json. One for the NonSecure Cluster (mentioned in your comment) And one for the Secure Cluster. I always just copied the path from your comment without regarding, that there is another file for the Secure Cluster, which I am using in my case.