SAP Knowledge Base Article - Preview

2444182 - Error: " Cannot honor virtual user request, there is an existing persistent user with the same logon ID" when connecting a Diagnostics Agent to Solution Manager 7.2

Symptom

  • Error:
    "
    Jan 31, 2017 4:00:13 PM [Thread[Connector,5,main] ] Error Could not create transientInitialContext with authentication: will now try again without authentication:
    [EXCEPTION]
    javax.naming.NoPermissionException: Exception during getInitialContext operation. Wrong security principal/credentials. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot honor virtual user request, there is an existing persistent user with the same logon ID.]
    at com.sap.engine.services.jndi.InitialContextFactoryImpl.handleUserProblem(InitialContextFactoryImpl.java:427)
    at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:341)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at com.sap.smd.agent.connection.SMDConnectionTask.getNewSMDInitialContext(SMDConnectionTask.java:367)
    at com.sap.smd.agent.connection.SMDConnectionTask.getTransientInitialContext(SMDConnectionTask.java:902)
    at com.sap.smd.agent.connection.SMDConnectionTask.internalAttemptConnection(SMDConnectionTask.java:520)
    at com.sap.smd.agent.connection.SMDConnectionTask$1.run(SMDConnectionTask.java:111)
    at com.sap.smd.agent.connection.P4JNDIContextHelper.executeInSecurityContext(P4JNDIContextHelper.java:146)
    at com.sap.smd.agent.connection.SMDConnectionTask.attemptConnection(SMDConnectionTask.java:106)
    at com.sap.smd.agent.connection.SMDConnectionTask.run(SMDConnectionTask.java:1460)
    at java.lang.Thread.run(Thread.java:763)
    Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Cannot honor virtual user request, there is an existing persistent user with the same logon ID.
    at com.sap.engine.services.security.login.FastLoginContext.login(FastLoginContext.java:380)
    at com.sap.engine.services.security.remoteimpl.login.RemoteLoginContextHelperImpl.login(RemoteLoginContextHelperImpl.java:221)
    at com.sap.engine.services.security.remoteimpl.login.RemoteLoginContextHelperImplp4_Skel.dispatch(RemoteLoginContextHelperImplp4_Skel.java:64)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:482)
    at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:81)
    at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:72)
    at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:43)
    at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:1055)
    at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:59)
    at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:55)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    "

    in the Diagnostics Agent's SMDSystem.x.log and the smdagent_trace.0.trc

  • Error:
    "
    Cannot connect to Managing system with P4: Cannot honor virtual user request, there is an existing persistent user with the same logon ID.
    WARNING: Open issue
    Cause : Cannot establish a P4 connection with Managing system: an authorization problem occurred.
    Resolution: Check that the Managing System user is member of SAP_RCA_AGT_CONN, that user is not locked and password is still valid. Re-execute smdsetup script to update the credentials settings of Managing system.
    "

    in the AgentSupportToolReport.log

  • Diagnostics Agent is in the "Non-Authenticated Agents" tab in the Agent Administration

    The message in the Error column is: "log-on denied"
    The details of the error are:
    "Exception during getInitialContext operation. Wrong security principal/credentials. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot honor virtual user request, there is an existing persistent user with the same logon ID.]"


Read more...

Environment

  • Solution Manager 7.2
  • Connecting the Diagnostics Agent to the Solution Manager

Product

SAP Solution Manager 7.2

Keywords

KBA , SV-SMG-DIA-SRV-AGT , Agent Framework , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.