Skip to Content
author's profile photo Former Member
Former Member

Solution Manager Agent on the fly

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Jan 06, 2014 at 03:37 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 06, 2014 at 10:03 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Posted on Jan 06, 2014 at 11:02 AM

    Hi S.Van,

    pls refer below note

    1833501



    Diagnostics Agent - Installer Versions




    1858920

    Diagnostics Agent installation with SWPM

    Regards

    Nayeem

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 06, 2014 at 11:11 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.