Hello Everyone,
I am trying to connect to vCloud Director using PowerCLI which i recently installed.
I get below error.
PowerCLI C:\> Connect-CIServer 10.XXXXXXX
Connect-CIServer : 23-02-2018 15:04:36 Connect-CIServer Unable to connect to the remote server
At line:1 char:1
+ Connect-CIServer 10.XXXXXXX
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-CIServer], CIException
+ FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer
PowerCLI C:\> $error[0] | fl * -Force
writeErrorStream : True
PSMessageDetails :
Exception : VMware.VimAutomation.Cloud.Types.V1.CIException: 23-02-2018 15:04:36 Connect-CIServer Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to
respond 10.XXXXXXX:443
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at Spring.Http.Client.WebClientHttpRequest.Execute()
at Spring.Rest.Client.RestTemplate.DoExecute[T](Uri uri, HttpMethod method, IRequestCallback requestCallback, IResponseExtractor`1 responseExtractor)
at Spring.Rest.Client.RestTemplate.GetForObject[T](String url, Object[] uriVariables)
at VMware.VimAutomation.Cloud.Views.Connectivity.VersionHelper.GetSupportedVersionsFromServer()
at VMware.VimAutomation.Cloud.Views.Connectivity.VersionHelper..ctor(CloudClient client)
at VMware.VimAutomation.Cloud.Views.CloudClient.EstablishVersionAndLoginUri()
at VMware.VimAutomation.Cloud.Views.CloudClient.Connect(String serverUrl, String organization, String username, String password)
at VMware.VimAutomation.Cloud.Impl.V1.Service.ConnectivityServiceImpl.ConnectCloudServer(String serverName, String protocol, Int32 port, String organization, String username, String password,
RemoteCertificateValidationCallback certificateValidationCallback)
--- End of inner exception stack trace ---
at VMware.VimAutomation.Cloud.Impl.V1.Service.ConnectivityServiceImpl.ConnectCloudServer(String serverName, String protocol, Int32 port, String organization, String username, String password,
RemoteCertificateValidationCallback certificateValidationCallback)
at VMware.VimAutomation.Cloud.Impl.V1.Service.ClientManagerImpl.ConnectCloudServer(String serverUrl, String protocol, Int32 port, String organization, String username, String password,
RemoteCertificateValidationCallback certificateValidationCallback)
at VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer.ProcessRecordErrorHandled()
TargetObject :
CategoryInfo : NotSpecified: (:) [Connect-CIServer], CIException
FullyQualifiedErrorId : Cloud_ConnectivityServiceImpl_ConnectCloudServer_ConnectError,VMware.VimAutomation.Cloud.Commands.Cmdlets.ConnectCIServer
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
This looks like a network related problem. Is there a firewall between the system running PowerCLI and the vCloud Director server that blocks the traffic? Can you open the vCloud Director console in a browser from the same system?
I have turned off the firewall but it is still same. Yes, I am able to browse the vCD console from my browser.