Thursday, June 11, 2009

Cannot start Java Web Console (smcwebserver)

I deployed Sun Cluster for MySQL HA two weeks ago for a defense customer. Everything runs fine and they are able to manage the cluster via CLI (command line interface).

Now, they request for Sun Cluster Manager which was introduced to them during their course. Frankly speaking, I'm trained in Sun Cluster but I have never seen the GUI version before. I did not know of its existence. :)

Upon their request, I made some research and realized it's accessible  via Java Web Console. Now, I know a lot about Java Web Console! I'hv deployed numerous Sun Java System Directory Manager 6.x. Managing directory configuration/data can be made via Java Web Console.

Well, to start Java Web Console is trivial.

1. Ensure Cacao is running
    $ cacaoadm status
2. Ensure SMC Web Server is running
    $ smcwebserver status
3. If it is not running, start it
    $ smcwebserver start

Today, I'm not lucky. I kept getting this error while starting Java Web Console.

$ smcwebserver start
Starting Sun Java(TM) Web Console Version 3.1 ...
Cannot determine if console service is running.
Check log file: /var/svc/log/system-webconsole:console.log
Run "svcs system/webconsole:console" to determine its status.

Finally, the issue was resolved.

$ /usr/share/webconsole/private/bin/wcremove -i console
$ svcadm clear system/webconsole:console

Restart of the server is required. We need to be careful as we are in cluster mode.

On node 1,
$ clnode evacuate 
$ init 6

Upon node 1 reboot, few things happen:
1. Node 1 rejoins the cluster
2. cacao and smcwebserver daemon start automatically
3. Able to access https://localhost:6789

On node 2,
$ clnode evacuate 
$ init 6

The same happens to node 2 upon reboot.

*Phew*




No comments:

Post a Comment