[i]Not so simple...
I am trying to setup a simple cluster: two nodes, one hosting the DAS.
I have two machines running linux OS: as1 & as2. They are both registered in the DNS.
I use GlassFish v2 b58c on a 1.6.0_01-b06 JDK.
I first install the DAS, start domain & create cluster from GUI. All is OK.
I create the first agent, on the same host as the DAS & start it: Everything is OK.
But, an error occurs on the second machine, when I start the node agent...
The output is:[/i]
$ ./bin/asadmin start-node-agent
Please enter the admin user name>admin
Please enter the admin password>adminadmin
Please enter the master password [Enter to accept the default]:>changeit
Redirecting output to /home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/logs/server.log
Redirecting application output to /home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/logs/server.log
Node Agent cluster1-node2-agent failed to startup. Please check the server log for more details.
CLI137 Command start-node-agent failed.
[i]The content of /home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/logs/server.log is:[/i]
Sep 4, 2007 7:44:13 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
/home/sun/jdk1.6.0_01/jre/../bin/java
-Dcom.sun.aas.instanceRoot=/home/sun/glassfish/nodeagents/cluster1-node2-agent/agent
-Dcom.sun.aas.configRoot=/home/sun/glassfish/config
-Dcom.sun.aas.defaultLogFile=/home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/logs/server.log
-Dcom.sun.aas.instanceName=cluster1-node2-agent
-Dcom.sun.aas.isNodeAgent=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.appserv.admin.pluggable.features=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
-Dcom.sun.appserv.nss.db=/home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/config
-Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl
-Djava.endorsed.dirs=/home/sun/glassfish/lib/endorsed
-Djava.library.path=/home/sun/glassfish/lib:/home/sun/glassfish/lib:/home/sun/glassfish/lib
-Djava.security.auth.login.config=/home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/config/login.conf
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djmx.invoke.getters=true
-XX:+UnlockDiagnosticVMOptions
-XX:LogFile=/home/sun/glassfish/nodeagents/cluster1-node2-agent/agent/logs/jvm.log
-XX:+LogVMOutput
-cp
/home/sun/glassfish/lib/appserv-launch.jar:/home/sun/glassfish/lib/appserv-ext.jar:/home/sun/glassfish/lib/appserv-ee.jar:/home/sun/glassfish/lib/javaee.jar:/home/sun/glassfish/lib/appserv-se.jar:/home/sun/glassfish/lib/appserv-rt.jar:/home/sun/glassfish/lib/appserv-admin.jar
com.sun.enterprise.ee.nodeagent.NodeAgentMain
start
startInstancesOverride=NOTSET
syncInstances=false
[#|2007-09-04T19:44:13.367+0200|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|IdentityManager Data: User:admin|#]
[#|2007-09-04T19:44:13.467+0200|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0004:Starting Node Agent...|#]
[#|2007-09-04T19:44:13.481+0200|CONFIG|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|DAS url = service:jmx:rmi:///jndi/rmi://as1:8686/management/rmi-jmx-connector|#]
[#|2007-09-04T19:44:13.552+0200|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0025:The node agent could not configure logging levels. Default logging level will be used.|#]
[#|2007-09-04T19:44:13.552+0200|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0038:Executing Synchronization for node-agent With DAS|#]
[#|2007-09-04T19:44:22.677+0200|INFO|sun-appserver9.1|javax.ee.enterprise.system.tools.synchronization|_ThreadID=10;_ThreadName=main;|SYNC001: Unable to communicate with Domain Administration Server. Skipping synchronization.|#]
[#|2007-09-04T19:44:22.678+0200|SEVERE|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0035:The NodeAgent failed to complete the intial synchronization with the DAS. Please make sure the DAS is running and is accessible from the NodeAgents server|#]
[#|2007-09-04T19:44:24.681+0200|WARNING|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping Node Agent...|#]
[i]Twice agents are displayed in the node agents list of the DAS admin GUI, but the second is marked as not started...
Could you please give me a tip ?
Thank you.
Mike[/i]
[Message sent by forum member 'mike_aski' (mike_aski)]
http://forums.java.net/jive/thread.jspa?messageID=233889