When I try to connect to a couple of our ESXi servers with my vSphere client I get the following error message:
"vSphere Client could not connect to "IP Address". An unknown connection error occurred. (The client could not send a complete request to the server. (The underlying connection was closed: An unexpected error occurred on a send.))
I'm thinking this may have something to do with a version incompatibility but I'm not sure. Can somebody shed some light?
This error troubled me for quite a while, and since this thread is still the first google result, here is my solution.
It is quite simple actually, just "Restart the Management agents". As mentioned by VMWare knowledge base all you have to do is run:
from shell.
Test the network by pointing your web browser at the address of the server. It should give you a web page and a link to download the client and a link to login to the Web UI.
If the page displays correctly then login to the web ui to test your logon/pw
If vSphere client is installed to Windows XP or 2003 then it could be a known problem with ciphers. A solution described here and here boils down to
Enabling SSH access from ESXi console:
F2 → Troubleshooting Options → Enable SSH
From SSH session edit
/etc/vmware/rhttpproxy/config.xml
and insert<cipherList>ALL</cipherList>
into/config/vmacore/ssl
section./etc/init.d/rhttpproxy restart
This helped me to access _VMware ESXi 6.0.0 from vSphere Client 6.0.0 on Windows XP.
I realize I'm coming back to this question much later than when it was posted, but I had forgotten that I posted this question and when I saw it, I wanted to share the solution with others.
It turned out the problem was my monitoring solution of all things. I had a check setup for the system to check the https page for the host every 5 minutes which for some reason would eventually cause the system to respond to everything, to the point where vSphere clients couldn't even connect anymore.
I disabled this check (relying instead on pings) and this problem hasn't returned for almost a year now.
I'm guessing there is a security setting somewhere under the hood of ESXi 4.x that tells the system to stop responding after a specified number of requests, but I wasn't able to locate that.
When the issue would start occurring, the VMs would stay up, however you couldn't connect to anything at the hypervisor level until completely rebooting the system (even restarting the management services would not fix it).
I tried updating to the most recent versions of ESXi but that did not resolve the issue.
Start VMware Services
Just ensure that the 1-VMware VirtualCenter Management Webservices and 2-VMware VirtualCenter Server services are both 'Started' and you are good to go.