Cannot connect to Service Fabric cluster

Raf 6 Reputation points
2020-11-11T02:19:26.437+00:00

I'm following this quickstart guide here: https://learn.microsoft.com/en-au/azure/service-fabric/service-fabric-quickstart-containers-linux#create-a-service-fabric-cluster

I'm at the step when it comes to connecting to my cluster trying to run this command on my local machine's PowerShell:
sfctl cluster select --endpoint https://<my end point found in my cluster resource> --pem <name of the pem file>.pem --no-verify
I'm running this command from the same directory the pem file is in. However, it keeps failing to connect with this error:

error:ConnectionError(e, request=request) msrest.exceptions.ClientRequestError: Error occurred in request., ConnectionError: HTTPSConnectionPool(host='fteservercluster.australiaeast.cloudapp.azure.com', port=19000): Max retries exceeded with url: / (Caused by ProtocolError('Connection aborted.', OSError(0, 'Error')))

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

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,906 Reputation points Microsoft Employee
    2020-11-11T14:16:42.55+00:00

    @Anonymous Apologies for the delay in response and all the inconvenience caused because of the issue.

    There is a possibility that you are using the wrong port. sfctl uses Service Fabric's HTTP API, which is typically port 19080 on your cluster. Port 19000 on your cluster is typically the binary connection port. Can you please confirm on same?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.