On Wed, 2012-04-18 at 14:02 -0700, Tom Mueller wrote:
> You are running the right command. Generally, the order is:
> - install DAS
> - setup-ssh (or do it manually as you have done)
> - install-node
> - create-node
> - create-cluster
> - create-instance --node ... -cluster ... instance-name
>
> The NullPointerException on the install-node should not be happening.
> Does the server.log file (by default in glassfish/domains/domain1/logs)
> have the stack trace from the exception?
>
> Also, you can try setting AS_DEBUG=true before running the command, i.e.,
>
> AS_DEBUG=true asadmin install-node --installdir
> /usr/share/glassfish-3.1.2 clustertest-node1
>
> to get more output.
Yes, the NPE is what was bothering me. Here's what I get with AS_DEBUG:
glassfish_at_clustertest:~$ AS_DEBUG=true asadmin install-node --installdir /usr/share/glassfish-3.1.2 clustertest-node1
CLASSPATH= /usr/share/glassfish-3.1.2/glassfish/bin/../modules/admin-cli.jar
Commands: [install-node, --installdir, /usr/share/glassfish-3.1.2, clustertest-node1]
asadmin extension directory: /usr/share/glassfish-3.1.2/glassfish/lib/asadmin
Prepare
Process program options
Parsing program options
Parse command options
params: {installdir: [/usr/share/glassfish-3.1.2]
}
operands: [clustertest-node1]
Prevalidate command options
Inject command options
Validate command options
Domain XML file = /usr/share/glassfish-3.1.2/glassfish/domains/clustertest/config/domain.xml
asadmin --host localhost --port 4848 --interactive=true --echo=false --terse=false install-node --sshuser ${user.name} --sshport 22 --installdir /usr/share/glassfish-3.1.2 --create=false --save=false --force=false clustertest-node1
Execute command
SSH info is host=clustertest-node1 port=22 user=glassfish password=null keyFile=/home/glassfish/.ssh/id_rsa keyPassPhrase=null authType=null knownHostFile=/home/glassfish/.ssh/known_hosts
Checking connection...
Successfully connected to glassfish_at_clustertest-node1 using keyfile /home/glassfish/.ssh/id_rsa
Specified key file is /home/glassfish/.ssh/id_rsa
Specified key file exists at /home/glassfish/.ssh/id_rsa
Running command '/usr/share/glassfish-3.1.2/glassfish/bin/asadmin' version --local --terse on host: clustertest-node1
Specified key file is /home/glassfish/.ssh/id_rsa
Specified key file exists at /home/glassfish/.ssh/id_rsa
clustertest-node1:''/usr/share/glassfish-3.1.2/glassfish/bin/asadmin' version --local --terse' failed [bash: /usr/share/glassfish-3.1.2/glassfish/bin/asadmin: No such file or directory
]
Number of files to be zipped = 5017
java.lang.NullPointerException
Command install-node failed.
glassfish_at_clustertest:~$
And this is what's left behind:
-rw-r--r-- 1 glassfish glassfish 0 2012-04-18 16:11 glassfish3065169330278597855.zip
What does it mean towards the end when he says he can't find asadmin, is
he looking for it on the node?
--
____________________________________________________________
Glenn Holmer gholmer_at_weycogroup.com
Software Engineer phone: 414-908-1809
Weyco Group, Inc. fax: 414-908-1601