VMware Cloud Community
StephenSagayara
Contributor
Contributor

vsphere client Not accessing my Server

this my is log details

[    :startup :W: 1] 2017-11-30 15:57:29.193  Log for vSphere Client Launcher, pid=5512, version=6.0.0, build=build-3249451, option=release
[    :Error   :W: 1] 2017-11-30 15:57:29.333  System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at VpxClient.Program.RegisterClientMimeExtension()

[    :Failed t:P: 3] 2017-11-30 15:57:49.483  System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.

Server stack trace:

   at System.Net.HttpWebRequest.GetResponse()

Exception rethrown at [0]:

...

   at System.Net.HttpWebRequest.GetResponse()

   at VirtualInfrastructure.Utils.WebDownload.GetResponse()

System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

...

   at System.Net.ConnectStream.WriteHeaders(Boolean async)

   --- End of inner exception stack trace ---

[    :Error   :P: 3] 2017-11-30 15:57:49.530  possible failure processing clients.xml

System.Net.WebException: The client could not send a complete request to the server. (The underlying connection was closed: An unexpected error occurred on a send.)

   at VirtualInfrastructure.Utils.WebQuery.LocalizeWebException(WebException exception)

   at VirtualInfrastructure.Utils.WebQuery.Request(String url, Nullable`1 timeoutSecs)

   at VirtualInfrastructure.Utils.ClientsXml.ParseXml(Int32 timeoutSecs)

   at VpxClient.Login.ClientsXmlLoader.TrySinglePort(ClientsXml clientXml, Exception& activeError)

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.

Server stack trace:

   at System.Net.HttpWebRequest.GetResponse()

Exception rethrown at [0]:

...

   at System.Net.HttpWebRequest.GetResponse()

   at VirtualInfrastructure.Utils.WebDownload.GetResponse()

   at VirtualInfrastructure.Utils.WebDownload.get_ResponseStream()

   at VirtualInfrastructure.Utils.WebQuery.Request(String url, Nullable`1 timeoutSecs)

System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

...

   at System.Net.ConnectStream.WriteHeaders(Boolean async)

   --- End of inner exception stack trace ---

   --- End of inner exception stack trace ---

[    :Error   :M: 1] 2017-11-30 15:57:50.046  Error retrieving clients.xml

Exception already logged, summary: System.Net.WebException:The client could not send a complete request to the server. (The underlying connection was closed: An unexpected error occurred on a send.)

Reply
0 Kudos
1 Reply
jasnyder
Hot Shot
Hot Shot

So I can't say from experience why this is happening, but from examining the log you posted:

[    :Error   :W: 1] 2017-11-30 15:57:29.333  System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)

   at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)

   at VpxClient.Program.RegisterClientMimeExtension()

System.UnauthorizedAccessException = user did not have permission to perform this task.  From the stack trace, it was trying to set a value in the registry.  Try running the vSphere Client as admin and see if this error goes away (i.e. right-click --> Run as Administrator)

[    :Failed t:P: 3] 2017-11-30 15:57:49.483  System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.

Server stack trace:

   at System.Net.HttpWebRequest.GetResponse()

Exception rethrown at [0]:

...

   at System.Net.HttpWebRequest.GetResponse()

   at VirtualInfrastructure.Utils.WebDownload.GetResponse()

System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

...

   at System.Net.ConnectStream.WriteHeaders(Boolean async)

This error was thrown as the code was trying to send the HTTP request to the vCenter server.  It is reporting that the vCenter server closed the connection unexpectedly.

[    :Error   :P: 3] 2017-11-30 15:57:49.530  possible failure processing clients.xml

System.Net.WebException: The client could not send a complete request to the server. (The underlying connection was closed: An unexpected error occurred on a send.)

   at VirtualInfrastructure.Utils.WebQuery.LocalizeWebException(WebException exception)

   at VirtualInfrastructure.Utils.WebQuery.Request(String url, Nullable`1 timeoutSecs)

   at VirtualInfrastructure.Utils.ClientsXml.ParseXml(Int32 timeoutSecs)

   at VpxClient.Login.ClientsXmlLoader.TrySinglePort(ClientsXml clientXml, Exception& activeError)

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.

Server stack trace:

   at System.Net.HttpWebRequest.GetResponse()

Exception rethrown at [0]:

...

   at System.Net.HttpWebRequest.GetResponse()

   at VirtualInfrastructure.Utils.WebDownload.GetResponse()

   at VirtualInfrastructure.Utils.WebDownload.get_ResponseStream()

   at VirtualInfrastructure.Utils.WebQuery.Request(String url, Nullable`1 timeoutSecs)

System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

...

   at System.Net.ConnectStream.WriteHeaders(Boolean async)

   --- End of inner exception stack trace ---

   --- End of inner exception stack trace ---

[    :Error   :M: 1] 2017-11-30 15:57:50.046  Error retrieving clients.xml

Exception already logged, summary: System.Net.WebException:The client could not send a complete request to the server. (The underlying connection was closed: An unexpected error occurred on a send.)

These are very similar if not the same to the one before - the connection is getting shutdown while the client is trying to send the HTTP request (it is trying to write HTTP headers to the TCP stream when the connection is getting closed)

So it appears you have something shutting the connection down.  You could be connecting to the wrong server, the services might not be started on the vCenter server (can you connect to web client)?

Your client version is 6.0.0 is you vCenter version also 6.0.0? 

Do you have any firewalls or firewall software in between the client and the vCenter server?  These could be shutting the connection down.

Do you run McAffee ePO or a similar tool that might be blocking the client from making an outbound connection from your machine?

One decent test to help troubleshoot this is to try to remote into another server that is as adjacent to the vCenter server as possible (i.e. same datacenter/VLAN/subnet) and see if using the client from there allows you to connect.  If so, then the problem is either client software/policy or network gear between the client computer and the server.

If vCenter is running on windows - check the windows firewall status of the vCenter server.

Reply
0 Kudos