on 01-06-2014 8:48 AM
Hello,
I have installed diagnostic agents on a MSCS cluster. When I enable Agent on the fly within Solution Manager the agent restarts every 2 minutes. In the log file I get the message :
Error [AgentNodeControllerHelper] Cannot add agent node grndbxxxx.
[EXCEPTION]
com.sap.smd.nodes.controller.NodesMaintenanceException: Command executed: D:\usr\sap\DAA\SMDA97\script\smdsetup.bat installer addagent virtualhost:grndbxxxx servername:grndbxxxx keep:connection sid:DAA inr:97 / command returned: Access is denied.
When I run the command in a dos box it works, but with a failover he wants to uninstall and I get the same error.
I have given the group everyone full control on the folder SMDA97 but it didn't work.
When I disable agent on the fly every thing works just fine.
Who can help me ?
Thank you,
Stefan
Hi,
This is probably a permission issue at OS level. When you enable the agents on the fly, the application needs to exdecute the script to create the agent node. This script needs to create files and folders within the SMDAgent folder. Ensure that the SMDAgent OS user has enoguh permission to execute this actions.
Also, you may change the file SMDAgentApplication to debug mode, this will provide you more details about the error. You should find the root cause in debug mode.
BR,
Allam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI s.Van,
pls refer below links,
Diagnostics Agents - SAP Solution Manager Setup - SCN Wiki
Regards
Nayeem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
servername:grndbxxxx keep:connection sid:DAA inr:97 / command returned: Access is denied.
what is your diagnostic agent version? sometime you get triggered these errors due to version mismatch? Refer the sap SAP Note 1365123 for the Diagnostics Agent installation strategy and version details.
Thanks
Jansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Yes As the jansi says it a related to version mismatch follow the note
1900839 - SMD Agent trace returns "SMD Agent connection requires some Security Roles: administrators... |
For the same you have to uninstall and install the latest one .
Rableen
Hello Jansi,
I have installed the diagnostic agent again using note 1365123. The problem still exist. When I disable the agent on the fly feature al works well. My version is 7.30. I will post the log with the error.
The problem is when the smdagent tries to create an agent for the logical hostname of the node.
<!--LOGHEADER[START]/-->
<!--HELP[Manual modification of the header may cause parsing problem!]/-->
<!--LOGGINGVERSION[1.5.3.7185 - 630]/-->
<!--NAME[com.sap.smd.nodescontroller_destination]/-->
<!--PATTERN[nodescontroller.log]/-->
<!--FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%t] %10s %m)]/-->
<!--ENCODING[Cp1252]/-->
<!--FILESET[0, 3, 3000000]/-->
<!--PREVIOUSFILE[nodescontroller.2.log]/-->
<!--NEXTFILE[nodescontroller.1.log]/-->
<!--LOGHEADER[END]/-->
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Error [AgentNodeControllerHelper.addNode] Cannot add the agent node.
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Error [AgentNodeControllerHelper.addNode] command failed , std err :Access is denied.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/smd/setup/SetupMaintenance
Caused by: java.lang.ClassNotFoundException: com.sap.smd.setup.SetupMaintenance
at java.net.URLClassLoader$1.run(URLClassLoader.java:255)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
Could not find the main class: com.sap.smd.setup.SetupMaintenance. Program will exit.
Access is denied.
.
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Error [AgentNodeControllerHelper.addNode] command failed , std out : _________________________________________________________________________
SAP Solution Manager - Diagnostics Agent - Copyright (c) 2010 SAP AG
_________________________________________________________________________
.
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Error [AgentNodeControllerHelper] Cannot add agent node grndb002v02.
[EXCEPTION]
com.sap.smd.nodes.controller.NodesMaintenanceException: Command executed: D:\usr\sap\DAA\SMDA98\script\smdsetup.bat installer addagent virtualhost:grndb002v02 servername:grndb002v02 keep:connection sid:DAA inr:98 / command returned: Access is denied.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/smd/setup/SetupMaintenance
Caused by: java.lang.ClassNotFoundException: com.sap.smd.setup.SetupMaintenance
at java.net.URLClassLoader$1.run(URLClassLoader.java:255)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
Could not find the main class: com.sap.smd.setup.SetupMaintenance. Program will exit.
Access is denied.
at com.sap.smd.nodes.controller.AgentNodeControllerHelper.addNode(AgentNodeControllerHelper.java:313)
at com.sap.smd.nodes.controller.NodesControllerJob.run(NodesControllerJob.java:222)
at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)
at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:781)
at java.lang.Thread.run(Thread.java:743)
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Warning [AgentNodeControllerHelper.addNode] command std err :Access is denied.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/smd/setup/SetupMaintenance
Caused by: java.lang.ClassNotFoundException: com.sap.smd.setup.SetupMaintenance
at java.net.URLClassLoader$1.run(URLClassLoader.java:255)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
Could not find the main class: com.sap.smd.setup.SetupMaintenance. Program will exit.
Access is denied.
.
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Warning [AgentNodeControllerHelper.addNode] command std out : _________________________________________________________________________
SAP Solution Manager - Diagnostics Agent - Copyright (c) 2010 SAP AG
_________________________________________________________________________
.
Jan 6, 2014 1:40:25 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Error [NodesControllerJob.step5] Diagnostics agent node on host grndb002v02 cannot be added due to an error.
[EXCEPTION]
com.sap.smd.nodes.controller.NodesMaintenanceException: Command executed: D:\usr\sap\DAA\SMDA98\script\smdsetup.bat installer addagent virtualhost:grndb002v02 servername:grndb002v02 keep:connection sid:DAA inr:98 / command returned: Access is denied.
Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/smd/setup/SetupMaintenance
Caused by: java.lang.ClassNotFoundException: com.sap.smd.setup.SetupMaintenance
at java.net.URLClassLoader$1.run(URLClassLoader.java:255)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
Could not find the main class: com.sap.smd.setup.SetupMaintenance. Program will exit.
Access is denied.
at com.sap.smd.nodes.controller.AgentNodeControllerHelper.addNode(AgentNodeControllerHelper.java:326)
at com.sap.smd.nodes.controller.NodesControllerJob.run(NodesControllerJob.java:222)
at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)
at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:781)
at java.lang.Thread.run(Thread.java:743)
Jan 6, 2014 1:40:26 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Warning [AgentNodeControllerHelper.checkController] Node controller fixed, restarting...
Jan 6, 2014 1:40:26 PM [Thread[ExRun:agent.nodes.controller_1,5,agent.nodes.controller:ExecTG]] Warning [NodesControllerJob] Node controller identified as corrupted but fixed.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.