"Failed to remove existing service provider registration" when logging in to the vSphere Web Client
search cancel

"Failed to remove existing service provider registration" when logging in to the vSphere Web Client

book

Article ID: 313893

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Increasing the database size limit in the registry resolves the issue.

Symptoms:
  • Logging in to the vSphere Web Client fails.
  • You see the error:

    [500]SSO error: Failed to import TenantConfiguration for [vsphere.local]: Failed to remove existing service provider registration.
     
  • In the %ALLUSERSPROFILE%\VMWare\vCenterServer\logs\sso\vmware-sts-idmd.log file, you see entries similar to:

    [2016-05-25T10:33:38.102-04:00 vsphere.local 8f828994-5c0a-4233-9bea-4cef7743c3de ERROR] [ServerUtils] Exception 'com.vmware.identity.interop.ldap.OperationsErrorLdapException: Operations Error LDAP error [code: 1]'
     
  • In the %ALLUSERSPROFILE%\VMware\vCenterServer\logs\vmdird\vmdir.log file, you see entries similar to:

    2016-05-25T14:22:15.912Z:t@74550624:ERROR: VmDirSendLdapResult: Request (74), Error (1), Message (txn commit (9700)(MDB_MAP_FULL: Environment mapsize limit reached)), (0) socket ([2056] [::1]:389<-[::1]:60946)

    Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.


Environment

VMware vCenter Server 6.0.x

Cause

This issue occurs when the VMware Directory (VMDir) database reaches the default size limit of 1024MB.

Resolution

To resolve this issue, increase the size limit of the VMware Directory(VMDir) database in the registry.

VMDir growth is usually caused by tombstone accumulation.  To address tombstones, please see Troubleshooting and addressing accumulation of tombstones in a Platform Services Controller
 
Note: This procedure modifies the Windows registry. Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article 136393.
 
To increase the database size limit in the registry:
  1. Add this DWORD parameter in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VMwareDirectoryService\Parameters:

    MaximumDbSizeMb
     
  2. Set the value of the MaximumDbSizeMb parameter greater than 1024.
  3. Restart the VMware Directory Service. For more information, See Stopping, starting, or restarting VMware vCenter Server 6.0 services (2109881)


Additional Information

How to stop, start, or restart vCenter Server 6.x services
登录到 vSphere Web Client 失败,并出现错误:无法移除现有服务提供商注册 (Failed to remove existing service provider registration)
"Object has already been deleted or has not been completely created" error