Failed to open web console from vSphere H5 Client with "Unable to create or login to VC" error
search cancel

Failed to open web console from vSphere H5 Client with "Unable to create or login to VC" error

book

Article ID: 336259

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Failed to open Web Console from vSphere H5 Client with "Unable to create or login to VC" error.
  • Web Console from Web Client (Flash) is available to use
  • Remote Console using vmrc is available to use
  • vCenter Server version is 6.5 and vCenter is configured to use custom port for HTTPS .
  • In vsphere_client_virgo.log, you see entries similar to:
[yyyy-mm-ddThh:mm:ss.xxxZ] [INFO ] -0:0:0:0:0:0:0:1-5090-exec-8 70000906 100071 200005 com.vmware.vise.vim.commons.vcservice.impl.VcServiceImpl          Initializing vmomi for vc - https://vc.example.com/sdk at VMODL version com.vmware.vim.binding.vim.version.internal.version11 
[yyyy-mm-ddThh:mm:ss.xxxZ] [ERROR] -0:0:0:0:0:0:0:1-5090-exec-8 70000906 100071 200005 com.vmware.vise.vim.commons.mks.util.TicketRetriever              Error enabling remote console com.vmware.vim.vmomi.client.exception.ConnectionException: org.apache.http.conn.HttpHostConnectException: Connect to vc.example.com:443 [vc.example.com/x.x.x.x] failed: Connection refused: connect
...
[yyyy-mm-ddThh:mm:ss.xxxZ] [ERROR] -0:0:0:0:0:0:0:1-5090-exec-8  o.a.c.core.ContainerBase.[Catalina].[localhost].[/ui].[jsp]       Servlet.service() for servlet [jsp] in context with path [/ui] threw exception [An exception occurred processing JSP page /webconsole.html at line 8] with root cause java.lang.IllegalStateException: Unable to create or login to VC
    at com.vmware.vise.vim.commons.mks.util.TicketRetriever.retrieveTicket(TicketRetriever.java:50)
    at org.apache.jsp.webconsole_html._jspService(webconsole_html.java:89)
    ...

 


Environment

VMware vCenter Server 6.5.x

Cause

vCenter will fail to connect to the custom port when web console is launched because the port number is not given to host parameter in URL.

Resolution

VMware is aware of this issue and working to resolve this in a future release.

Workaround:
Use Web Client (Flash) or Remote Console.

OR

Provide the correct port number to host parameter manually after launching web console from H5 client
  • Click [Launch Web Console] , this opens a new window with URL similar to : https://VCFQDN:PORT/ui/webconsole.html?...&host=VCFQDN&... 
  • Provide the correct port number in the URL like https://VCFQDN:PORT/ui/webconsole.html?...&host=VCFQDN:PORT&....