This has happened to me on several occasions so I wanted to document this.
When you use the VMware vSphere client to login to a vSphere server (in my case a vSphere 5 server) you are unable to login and you get a dialogue box that has a title of Connection Error, and a message that reads:
The server {the server you're trying to login to} could not interpret the client's request. (The remote server returned an error: (503) Server Unavailable.)
Then below that it gives an error stack message:
Call "ServiceInstance.RetrieveContent" for object "ServiceInstance" on Server "{the server you're trying to login to}"
What appears to be happening is that the SSL encryption service on the vSphere server isn't running and the client cannot talk to the vSphere server using SSL.
What is frustrating is that you know the virtual machines are running, but since you cannot login with the client there is no graceful way to go into Maintenance Mode and/or to reboot the server.
The trick to fix it is to get the various services to restart including the one that handles SSL encryption.
So download Putty to a workstation, and connect to the server using SSH. This assumes you have already enabled SSH on the vSphere Server.
Once logged in with Putty issue to the following command in the terminal window:
/sbin/services.sh restart
You will begin to see several services restart. Once complete you should be able to login again using the vSphere client. The above command works on vSphere version 5 (ESXi 5), but I have not tested this on ESXi 4.x.
In my case this situation tends to occur when I place the server in Maintenance Mode and try to reboot it, but it doesn't reboot and you suddenly loose your connection to it with your vSphere Client and can't login again.
Followup
July 19, 2012 - I found a faster and easier way to deal with this issue. Please read my new post called: VmWare vSphere Client Error 503
Top tip! Thanks for that, it had been driving me crazy. Worked just fine on ESXi 4.
ReplyDeleteThanks alot. Saved me with esx5. Greets
ReplyDeleteSuccessfully tested on my ESXi 4.1 Update 2. Thanks.
ReplyDeleteThanks- this worked for me perfectly!
ReplyDeleteWe have had this issue for awhile. The problem is that restarting the services works great for an undetermined amount of time. Today for instance it worked for 2 hours and crashed again. Some days it works all day or more. Im curious as to what the root cause is.
ReplyDeletefollow this link. It really works.
ReplyDeletehttp://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=2033822&sliceId=1&docTypeID=DT_KB_1_1&dialogID=747936630&stateId=1%200%20747960269
thanks for the tip; i've been hard rebooting my box when this happens. your solution is much better.
ReplyDeleteThank you! I've been looking for a solution for the host being disconnected in vCenter. Restarting these mgmt agents must do more than the hostd and vpxa restart. Running this corrected my issue and now the host is reporting back to vCenter!
ReplyDeleteWorked like a charm, thanks. Saved me a restart with all the related work...
ReplyDeleteThanks a lot ..!!!!
ReplyDeleteThanks, you saved my life
ReplyDeleteGreat Post ! This saved my time !!
ReplyDeleteThanks,
Didn't work. I entered the command, and it lists a bunch of services, stopping each one, then it hangs on "Exclusive access granted." It does not recognize anything else I type as a command. I also tried the other option (dcui) and when I press F2, all I get is the main screen again, with no menu options. Nothing else I press does a thing.
ReplyDeleteIt works !
ReplyDeleteThanks guy.
What if SSH not enabled! like in my case please any hope?
ReplyDeleteSSH would be required. Therefore you would have to be physically in front of the console to login and enable SSH.
DeleteHi! I understand this is sort of off-topic however I had to ask.
ReplyDeleteDoes building a well-established website such as yours take a
large amount of work? I am completely new to operating a blog but
I do write in my journal on a daily basis. I'd like to
start a blog so I will be able to share my experience and thoughts online.
Please let me know if you have any suggestions or tips for brand new aspiring blog owners.
Thankyou!
Every Google account also has a Google Blogger account. Go here to get started: https://www.blogger.com
Delete