Search the VMware Knowledge Base (KB)
View by Article ID

Error "Logon failure: the user has not been granted the requested logon type at this computer" (2148054)

  • 4 Ratings


  • vCenter Server 6.5 Windows services under VMware Service life cycle Manager (vmon) fails to start.
  • Running the Service-control --start --all command times out.
  • In the vMon logs, you see this entry indicating the service start failure:

    Logon failure: the user has not been granted the requested logon type at this computer.
  • In the Security Event Viewer, you see an entry for audit failure for the respective users and below properties:

    Logon failure: the user has not been granted the requested logon type at this computer
    Log on type : 4

  • In the svcs.log, you see entries similar to,

    .cis.core.kv.impl.Exception.KVInternalException: Error creating VCDBProviderFactory: at com.vmware.cis.core.kv.impl.VCDBKVManagerImpl.init( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at ... 84 more Caused by: com.vmware.cis.core.kv.impl.Exception.KVExecutionException: SQL Error: at com.vmware.cis.core.kv.impl.KVUtil.createAndLogExecutionException( at com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory.getConnection( at com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory.<init>( at com.vmware.cis.core.kv.impl.VCDBKVManagerImpl.init( ... 91 more Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory( at org.apache.commons.dbcp.BasicDataSource.createDataSource( at org.apache.commons.dbcp.BasicDataSource.getConnection( at com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory.getConnection( ... 93 more Caused by: org.postgresql.util.PSQLException: Connection refused. Check that


The purpose of this article is to resolve error- Logon failure: the user has not been granted the requested logon type at this computer.


This issue occurs when vCenter Server 6.5 uses multiple service accounts to initialize services under VMware Service life cycle Manager (vmon). These accounts are added to local security policy Log on as a batch job policy. Any group policy overriding this settings can cause these symptoms.


To resolve this issue,

  1. Identify the Group policy which is overriding the local policy using the rsop.msc tool.
  2. Add these accounts to the Log on as a batch job policy of effective GPO. To add the accounts, navigate to Computer Configuration > Windows Settings >Security Settings >Local Policies > User Rights Assignment > Log on as a batch job
     Add the account without the browse option.
    • cm
    • content-library
    • eam
    • imagebuilder
    • mbcs
    • netdumper
    • perfcharts
    • rbd
    • vapiEndpoint
    • vmware-vpostgres
    • vsan-health
    • vsm
    • vsphere-client
    • vsphere-ui

See Also

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.


  • 4 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)

Please enter the Captcha code before clicking Submit.
  • 4 Ratings