Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Unable to connect to vCenter Inventory Service (2032356)

Details

Immediately after logging in to the vSphere Web Client, you see the error:

Unable to connect to vCenter Inventory Service running at https://server-address:server-port

In the vSphere Web Client, there is a limit of 60 simultaneous sessions per user. If you encounter this error, you might have exceeded the session limit.

To verify that this is the cause of the error, check the ds.log log file located at:
  • Server on which the Inventory service is installed – ProgramData\VMware\Infrastructure\Inventory Service\Logs\
  • vCenter Server Appliance – /var/log/vmware/vpx/inventoryservice/

Look for entries similar to:

[2012-06-08 09:59:49,138 pool-10-thread-1 ERROR com.vmware.vim.vcauthenticate.servlets.AuthenticationHelper] Authentication error: com.vmware.vim.vcauthenticate.exception.VimAuthenticateException: com.vmware.vim.query.server.authorization.exception.AuthorizationException: Too many sessions for user: username

Solution

To resolve this issue, increase the number of allowed sessions per user.
 
To increase the number of allowed sessions per user:
  1. Open the security-config.xml file using a text editor. This file is located at:
    • vCenter Server on Windows – Inventory service install location/lib/server/config/
    • vCenter Server Appliance – /usr/lib/vmware-vpx/inventoryservice/lib/server/config/

  2. Insert the following entry as line 79:

    <property name="maxUsagePerPrincipal" value="max" />

    Where max is the maximum number of sessions per user.

    For example, to increase the per-user session limit to 200, change the following section of the file:

    76: <bean id="authorizationManager" class="com.vmware.cis.authorization.impl.AuthorizationManagerImpl"
    77: init-method="init">
    78: <property name="dataProvider" ref="authProvider" />
    79: </bean>


    To:
    76: <bean id="authorizationManager" class="com.vmware.cis.authorization.impl.AuthorizationManagerImpl"
    77: init-method="init">
    78: <property name="dataProvider" ref="authProvider" />
    79: <property name="maxUsagePerPrincipal" value="200" />
    80: </bean>


For related information, see Reset the vCenter Server Inventory Service database 5.1 (2042200).

Update History

03/28/2013 - Added link to article 2042200

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 10 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 10 Ratings
Actions
KB: