Unable to connect to vCenter Inventory Service
search cancel

Unable to connect to vCenter Inventory Service

book

Article ID: 313079

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

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


Environment

VMware vCenter Server 5.5.x
VMware vSphere Web Client 5.1.x
VMware vCenter Server Appliance 5.1.x
VMware vCenter Server 5.1.x
VMware vSphere Web Client 5.5.x

Resolution

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 68:

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

    Where max users 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:

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


    To:

    <bean class="com.vmware.cis.authorization.impl.AuthorizationManagerImpl" id="authorizationManager" init-method="init">
    <property name="dataProvider" ref="authProvider" />
    <property name="maxUsagePerPrincipal" value="200" />
    </bean></bean>

 

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

Additional Information

For translated versions of this article, see:

Additional Information

"Could not connect to one or more vCenter Server Systems: https://vCenterFQDN: 443/sdk" error in the vSphere Web Client (2050273
"invalid credentials LDAP Error Code 49" error when starting Inventory Services in vCenter Server 6.x (2147280)
After configuring vCenter Server Linked Mode, the vSphere Web Client reports the error: Unable to connect to vCenter Inventory Service (2077989)
Logging in to the vCenter Server 5.0 Web Client fails with the error: unable to connect to vCenter Inventory Service (2017750)
Logging in to vCenter Server in linked mode using the vSphere Web Client fails with the error: Unable to connect to vCenter Inventory Service on xxxxxxxx (2019346)
After configuring Linked Mode in vCenter Server, vSphere Web Client reports the error: Failed to Connect to Inventory Service (2047093)
Unable to start vCenter Server Inventory service (2151435)
Unable to re-register vCenter Server to the Inventory Service (2045422)
Unable to start the Inventory Services (2150983)
How to reset Inventory Service database for vCenter Server Appliance 6.0 (2146248)