users@glassfish.java.net

Glassfish v2.1.1 remote node agent cannot synchronize with DAS

From: Sandor Nemeth <sandor.nemeth.1986_at_gmail.com>
Date: Tue, 04 May 2010 15:48:28 +0200

Hi,

I'm setting up a 2 node Glassfish v2.1.1 cluster. My configuration is as
follows:
- cluster1 running DAS and nodeagent1
- cluster2 running nodeagent2

I've set up Glassfish with ant -f setup-cluster.xml.

Started the DAS with:
cluster1# asadmin start-domain domain1
Output was:
Domain domain1 started.
Domain [domain1] is running [Sun GlassFish Enterprise Server v2.1.1
((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)] with its
configuration and logs at: [/opt/server/glassfish/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://cluster1:8686/jmxrmi] for domain
management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].
Domain supports application server clusters and other standalone instances.

I've successfully created the nodeagents with:
cluster1# asadmin create-node-agent --host cluster1 --port 4848 nodeagent1
cluster2# asadmin create-node-agent --host cluster1 --port 4848 nodeagent2

When I'm starting the node agents I get:
cluster1# asadmin start-node-agent nodeagent1 - Start is OK, running.

cluster2# asadmin start-node-agent nodeagent2
Output:
Redirecting output to
/opt/server/glassfish/nodeagents/nodeagent2/agent/logs/server.log
Redirecting application output to
/opt/server/glassfish/nodeagents/nodeagent2/agent/logs/server.log
Node Agent nodeagent2 failed to startup. Please check the server log for
more details

Server log contains:

[#|2010-05-04T15:26:08.651+0200|INFO|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0004:Starting
Node Agent...|#]

[#|2010-05-04T15:26:08.731+0200|CONFIG|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|DAS
url =
service:jmx:rmi:///jndi/rmi://cluster1:8686/management/rmi-jmx-connector|#]

[#|2010-05-04T15:26:08.739+0200|CONFIG|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NodeAgent
url = service:jmx:rmi_jrmp://0.0.0.0:54132|#]

[#|2010-05-04T15:26:08.870+0200|INFO|sun-appserver2.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.|#]

[#|2010-05-04T15:26:08.871+0200|INFO|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0038:Executing
Synchronization for node-agent With DAS|#]

[#|2010-05-04T15:26:27.452+0200|SEVERE|sun-appserver2.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|#]

[#|2010-05-04T15:26:31.228+0200|WARNING|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping
Node Agent...|#]


/etc/hosts are configured properly to resolve the hostnames cluster1 and
cluster2 good.

Does anyone have any idea what's the problem with my configuration?

Best regards,
Sandor Nemeth