cancel
Showing results for 
Search instead for 
Did you mean: 

Connection to P4 port of managed system failed

Former Member
0 Kudos

Hi All,

I get the following error message during managed system configuration in SMD. Can anybody help with this?

Regards,

Masoud

Failed to connect, P4 port=50104 User=J2EE_Admin SID=PSE Instance Number=01

Connection error to SAP System sid [PSE/01], more details about the error in agent 'dbciPSE' log file (SMDAgentApplication.X.log).; nested exception is:

com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.(cause=com.sap.engine.services.security.exceptions.BaseLoginException Exception in creating new RemoteLoginContext instance.)

Exceptions

com.sap.smdagent.plugins.connectors.p4.exceptions.P4ConnectionException: Connection error to SAP System sid [PSE/01], more details about the error in agent 'dbciPSE' log file (SMDAgentApplication.X.log).; nested exception is:

com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.prepareP4Exception(P4ConnectionService.java:116)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:72)

at com.sap.smd.agent.plugins.remotesetup.SetupManager.newP4ctx(SetupManager.java:120)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService._setup(RemoteSetupService.java:125)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService.setup(RemoteSetupService.java:86)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupServicep4_Skel.dispatch(RemoteSetupServicep4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:716)

at java.lang.Thread.run(Thread.java:534)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.engine.services.security.remote.login.RemoteLoginContextExt.<init>(RemoteLoginContextExt.java:34)

at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:81)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:355)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

at javax.naming.InitialContext.init(InitialContext.java:219)

at javax.naming.InitialContext.<init>(InitialContext.java:195)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:57)

... 8 more

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:173)

at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:395)

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I had the same problem on our system. We have SMD on Solman and the managed system is Portals. Our systems are on AIX

1) The connection to P4 error was resolved after shutting down the smdagent, kill all the related processes and then do a cleanipc ## remove. Then restart the smdagent and then retry the agent setup. For me it went green. I tried many things before I did this.

2) There were other errors also when I was running th setup wizard. On the smd setup> diagnostics setup> upgrade agents. This resolves most of the errors.

Manmath

Former Member
0 Kudos

Hi,

I had the same problem on our system. We have SMD on Solman and the managed system is Portals. Our systems are on AIX

1) The connection to P4 error was resolved after shutting down the smdagent, kill all the related processes and then do a cleanipc ## remove. Then restart the smdagent and then retry the agent setup. For me it went green. I tried many things before I did this.

2) There were other errors also when I was running th setup wizard. On the smd setup> diagnostics setup> upgrade agents. This resolves most of the errors.

Manmath

raguraman_c
Active Contributor
0 Kudos

Hi,

Please post SMDAgentApplication.X.log here.

Feel free to revert back.

-=-Ragu

Former Member
0 Kudos

Hi,

The log is very large. I'm coping the part which I think is relevant.

Masoud

-


Jun 15, 2009 4:32:29 PM [Thread[Thread-638,5,main]] Error FilesystemService_h:7027ea7b: Invalid root folder [/usr/sap/SMD]; System error message is: [Filesystem] File [/usr/sap/SMD] doesn't exist; canonical path is [/usr/sap/SMD]

Jun 15, 2009 4:32:39 PM [Thread[Thread-638,5,main]] Error P4 connection error to SAP system [PSE/01]

[EXCEPTION]

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during getInitialContext operation. No server is running. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.]

at com.sap.engine.services.jndi.InitialContextFactoryImpl.handleConnectionPropblem(InitialContextFactoryImpl.java:494)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:363)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

at javax.naming.InitialContext.init(InitialContext.java:219)

at javax.naming.InitialContext.<init>(InitialContext.java:195)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:57)

at com.sap.smd.agent.plugins.remotesetup.SetupManager.newP4ctx(SetupManager.java:120)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService._setup(RemoteSetupService.java:125)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService.setup(RemoteSetupService.java:86)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupServicep4_Skel.dispatch(RemoteSetupServicep4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:716)

at java.lang.Thread.run(Thread.java:534)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.engine.services.security.remote.login.RemoteLoginContextExt.<init>(RemoteLoginContextExt.java:34)

at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:81)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:355)

... 13 more

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:173)

at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:395)

... 1 more

Jun 15, 2009 4:32:39 PM [Thread[Thread-638,5,main]] Error [Setup]Connection to P4 port of managed system failed

[EXCEPTION]

com.sap.smdagent.plugins.connectors.p4.exceptions.P4ConnectionException: Connection error to SAP System sid [PSE/01], more details about the error in agent 'dbciPSE' log file (SMDAgentApplication.X.log).; nested exception is:

com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.prepareP4Exception(P4ConnectionService.java:116)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:72)

at com.sap.smd.agent.plugins.remotesetup.SetupManager.newP4ctx(SetupManager.java:120)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService._setup(RemoteSetupService.java:125)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService.setup(RemoteSetupService.java:86)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupServicep4_Skel.dispatch(RemoteSetupServicep4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:716)

at java.lang.Thread.run(Thread.java:534)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.engine.services.security.remote.login.RemoteLoginContextExt.<init>(RemoteLoginContextExt.java:34)

at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:81)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:355)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

at javax.naming.InitialContext.init(InitialContext.java:219)

at javax.naming.InitialContext.<init>(InitialContext.java:195)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:57)

... 8 more

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:173)

at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:395)

... 1 more

Jun 15, 2009 4:32:40 PM [Thread[Thread-638,5,main]] Error FilesystemService_h:7027ea7b: Invalid root folder [/usr/sap/SMD]; System error message is: [Filesystem] File [/usr/sap/SMD] doesn't exist; canonical path is [/usr/sap/SMD]

Jun 15, 2009 4:32:41 PM [Thread[Thread-638,5,main]] Error FilesystemService_h:7027ea7b: Invalid root folder [/usr/sap/SMD]; System error message is: [Filesystem] File [/usr/sap/SMD] doesn't exist; canonical path is [/usr/sap/SMD]

Jun 15, 2009 4:33:51 PM [Thread[Thread-694,5,main]] Error FilesystemService_h:7027ea7b: Invalid root folder [/usr/sap/SMD]; System error message is: [Filesystem] File [/usr/sap/SMD] doesn't exist; canonical path is [/usr/sap/SMD]

Jun 15, 2009 4:34:14 PM [Thread[Thread-638,5,main]] Error P4 connection error to SAP system [PSE/01]

[EXCEPTION]

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during getInitialContext operation. No server is running. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.]

at com.sap.engine.services.jndi.InitialContextFactoryImpl.handleConnectionPropblem(InitialContextFactoryImpl.java:494)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:363)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

at javax.naming.InitialContext.init(InitialContext.java:219)

at javax.naming.InitialContext.<init>(InitialContext.java:195)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:57)

at com.sap.smd.agent.plugins.remotesetup.SetupManager.newP4ctx(SetupManager.java:120)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService._setup(RemoteSetupService.java:125)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService.setup(RemoteSetupService.java:86)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupServicep4_Skel.dispatch(RemoteSetupServicep4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:716)

at java.lang.Thread.run(Thread.java:534)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.engine.services.security.remote.login.RemoteLoginContextExt.<init>(RemoteLoginContextExt.java:34)

at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:81)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:355)

... 13 more

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:173)

at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:395)

... 1 more

Jun 15, 2009 4:34:14 PM [Thread[Thread-638,5,main]] Error [Setup]Connection to P4 port of managed system failed

[EXCEPTION]

com.sap.smdagent.plugins.connectors.p4.exceptions.P4ConnectionException: Connection error to SAP System sid [PSE/01], more details about the error in agent 'dbciPSE' log file (SMDAgentApplication.X.log).; nested exception is:

com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.prepareP4Exception(P4ConnectionService.java:116)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:72)

at com.sap.smd.agent.plugins.remotesetup.SetupManager.newP4ctx(SetupManager.java:120)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService._setup(RemoteSetupService.java:125)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService.setup(RemoteSetupService.java:86)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupServicep4_Skel.dispatch(RemoteSetupServicep4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:716)

at java.lang.Thread.run(Thread.java:534)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Exception in creating new RemoteLoginContext instance.

at com.sap.engine.services.security.remote.login.RemoteLoginContextExt.<init>(RemoteLoginContextExt.java:34)

at com.sap.engine.services.jndi.implclient.LoginHelper.clientSideLogin(LoginHelper.java:81)

at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:355)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)

at javax.naming.InitialContext.init(InitialContext.java:219)

at javax.naming.InitialContext.<init>(InitialContext.java:195)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:57)

... 8 more

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:173)

at com.sap.engine.services.rmi_p4.Connection.run(Connection.java:395)

... 1 more

Jun 15, 2009 4:34:14 PM [Thread[Thread-694,5,main]] Error FilesystemService_h:7027ea7b: Invalid root folder [/usr/sap/SMD]; System error message is: [Filesystem] File [/usr/sap/SMD] doesn't exist; canonical path is [/usr/sap/SMD]

Jun 15, 2009 4:34:16 PM [Thread[Thread-694,5,main]] Error FilesystemService_h:7027ea7b: Invalid root folder [/usr/sap/SMD]; System error message is: [Filesystem] File [/usr/sap/SMD] doesn't exist; canonical path is [/usr/sap/SMD]

Jun 15, 2009 4:35:48 PM [Thread[PSE AbapSystem/300,5,main]] Error com.sap.smd.wily.hostagent.metric.MetricArea - internalSetValue(): invalid timestamp for metric PSE|RFC|tRFC|State SENDED|Total:Youngest entry: 1211747031000

Jun 15, 2009 4:35:48 PM [Thread[PSE AbapSystem/300,5,main]] Error com.sap.smd.wily.hostagent.metric.MetricArea - internalSetValue(): invalid timestamp for metric PSE|RFC|tRFC|State SENDED|Dest PSECLNT480|RSAR_TRFC_DATA_RECEIVED:Youngest entry: 1208634656000

Jun 15, 2009 4:35:48 PM [Thread[PSE AbapSystem/300,5,main]] Error com.sap.smd.wily.hostagent.metric.MetricArea - internalSetValue(): invalid timestamp for metric PSE|RFC|tRFC|State SENDED|Dest NONE|SPERS_SET_DISTRIBUTION_DATA:Youngest entry: 1211747031000

Jun 15, 2009 4:35:48 PM [Thread[PSE AbapSystem/300,5,main]] Error com.sap.smd.wily.hostagent.metric.MetricArea - internalSetValue(): invalid timestamp for metric PSE|RFC|tRFC|State EXECUTED|Total:Youngest entry: 1143256740000

Jun 15, 2009 4:35:48 PM [Thread[PSE AbapSystem/300,5,main]] Error com.sap.smd.wily.hostagent.metric.MetricArea - internalSetValue(): invalid timestamp for metric

Edited by: Masoud Ahanchian on Jun 15, 2009 6:16 PM

julian_krtten
Explorer
0 Kudos

Hello, I have exactly the same Problem, when I try to run the Setup Wizard in the Diagnostics Setup.

Does anyone have a solution? ........................................................................................................................................................................................................................................................................

Here's my log:

Failed to connect, P4 port=50004 User=J2EE_ADMIN SID=B61 Instance Number=00

Access is denied to SAP System sid [B61/00]: check the connection credentials.More details about the error in agent 'bitb61' log file (SMDAgentApplication.X.log).; nested exception is:

com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.(cause=com.sap.engine.services.security.exceptions.BaseLoginException Cannot authenticate the user.)

Exceptions

com.sap.smdagent.plugins.connectors.p4.exceptions.P4AuthorizationException: Access is denied to SAP System sid [B61/00]: check the connection credentials.More details about the error in agent 'bitb61' log file (SMDAgentApplication.X.log).; nested exception is:

com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.prepareP4AcessDeniedException(P4ConnectionService.java:138)

at com.sap.smd.agent.plugin.connectors.p4.P4ConnectionService.getP4Connection(P4ConnectionService.java:76)

at com.sap.smd.agent.plugins.remotesetup.SetupManager.newP4ctx(SetupManager.java:120)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService._setup(RemoteSetupService.java:125)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupService.setup(RemoteSetupService.java:86)

at com.sap.smd.agent.plugins.remotesetup.RemoteSetupServicep4_Skel.dispatch(RemoteSetupServicep4_Skel.java:112)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.DispatchImpl.run(DispatchImpl.java:716)

at java.lang.Thread.run(Thread.java:534)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.

at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:178)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.services.security.login.FastLoginContext.login(FastLoginContext.java:181)

at com.sap.engine.services.security.remoteimpl.login.RemoteLoginContextHelperImpl.login(RemoteLoginContextHelperImpl.java:72)

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:319)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

Caused by: com.sap.engine.services.security.exceptions.BaseLoginException: Authentication did not succeed.

at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:175)

... 13 more

Former Member
0 Kudos

I have not been able to resolve the problem. Very disappointing

julian_krtten
Explorer
0 Kudos

I selected the Checkbox with the CUA and it worked!

Former Member
0 Kudos

Hi;

I had same problem with wily introscope. After uninstalling the SMD agent, re-installing it and setting up wily the issue has been disappeared

Regards

Edited by: Christoph Ernst on Jan 29, 2010 1:06 PM