users@glassfish.java.net

Re: asadmin start-node-agent timesout after 15 mins

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Jan 2009 22:49:19 PST

Ok Satya,
let me retry from scratch and I will be documenting here all the steps I take while I am I doing them, so you can eventually correct me.
First of all, environment is changed a bit I will be using this:
Machine1:
OS: Kubuntu 8.04
java version "1.6.0_07"
Host name: lnobili-kubuntu

Machine2:
Virtualized inside Machine1 using Virtualbox 2.1
OS: kubuntu 8.04
java version "1.6.0_07"
Host name: kubuntu-vbox

Note: the two machines can ping themselves just fine using each other names (dns resolution is ok ...and version 2.1 of Virtualbox rocks!!!)

These are my steps:
      1) Reinstall glassfish on both machines so we have a clean environment
2)run “ant -f setup-cluster.xml” on both machines
3)start DAS on machine1 with command “asadmin start-domain”. DAS started no problem see the message on the command line:
lnobili_at_lnobili-kubuntu:~/apps/glassfish/bin$ ./asadmin start-domain
Starting Domain domain1, please wait.
Log redirected to /home/lnobili/apps/glassfish/domains/domain1/logs/server.log.
Redirecting output to /home/lnobili/apps/glassfish/domains/domain1/logs/server.log
Domain domain1 started.
Domain [domain1] is running [Sun Java System Application Server 9.1_02 (build b04-fcs)] with its configuration and logs at: [/home/lnobili/apps/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://lnobili-kubuntu: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.

4)Create node agent on machine2 with command “asadmin create-node-agent -H lnobili-kubuntu NodeAgent2” (on DAS machine I can see that NodeAgent2 is automagically created and rendezvous occurred. Notice that I do NOT see any other agent including the default node agent that you told me I should see)
5)Start NodeAgent2 on machnie2 with command “asadmin start-node-agent NodeAgent2” user “admin”, password “adminadmin”, master password “changeit”
6)AND IT JUST DOESN'T WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Let's see the logs and do a bit of problem determination:

- Error message on machine 2:
[#|2009-01-15T14:29:14.409+0900|CONFIG|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|DAS url = service:jmx:rmi:///jndi/rmi://lnobili-kubuntu:8686/management/rmi-jmx-connector|#]

[#|2009-01-15T14:29:14.482+0900|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.|#]

[#|2009-01-15T14:29:14.482+0900|INFO|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0038:Executing Synchronization for node-agent With DAS|#]

[#|2009-01-15T14:29:23.553+0900|INFO|sun-appserver9.1|javax.ee.enterprise.system.tools.synchronization|_ThreadID=10;_ThreadName=main;|SYNC001: Unable to communicate with Domain Administration Server. Skipping synchronization.|#]

[#|2009-01-15T14:29:23.555+0900|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|#]

[#|2009-01-15T14:29:25.556+0900|WARNING|sun-appserver9.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping Node Agent...|#]

 - Do I have problems to reach host lnobili-kubuntu on port 8686? Let's see:

lnobili_at_kubuntu-vbox:~/apps/glassfish/bin$ telnet lnobili-kubuntu 8686
Trying 172.21.16.201...
Connected to lnobili-kubuntu.
Escape character is '^]'.

...no I do not have problems, I can telnet that port.

What do I see on machine1 side? Nothing useful, last line of the log was printed when the server started up. There is no mention of the fact that the node agent tried to contact the DAS.

Now I am starting to wonder, how difficult can this be!?!? Am I doing something stupid without realizing? On what environment have you actually seen this really working? Was it with two instances on separate machines or the usual example of two instances on the same machine?

Thanks again for any further help you might be able to give me,
Luca
[Message sent by forum member 'lunobili' (lunobili)]

http://forums.java.net/jive/thread.jspa?messageID=326137