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

Symptoms

  • 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(VCDBKVManagerImpl.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1706) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1645) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ... 84 more Caused by: com.vmware.cis.core.kv.impl.Exception.KVExecutionException: SQL Error: at com.vmware.cis.core.kv.impl.KVUtil.createAndLogExecutionException(KVUtil.java:153) at com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory.getConnection(VCDBProviderFactory.java:122) at com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory.<init>(VCDBProviderFactory.java:83) at com.vmware.cis.core.kv.impl.VCDBKVManagerImpl.init(VCDBKVManagerImpl.java:72) ... 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(BasicDataSource.java:1549) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) at com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory.getConnection(VCDBProviderFactory.java:120) ... 93 more Caused by: org.postgresql.util.PSQLException: Connection refused. Check that


Purpose

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

Cause

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.

Resolution

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
    Note: 
     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.

Feedback

  • 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
Actions
KB: