How can we install Java Console on rhel 6.2
Environment
OS = rhel6.2
Java console version = 6.0 SP1
Problem
I am able to install the java console but getting error when running the hagui.
How do I installed. See below for reference:
rpm -ivh /home/zahid/Desktop/VCS_Cluster_Manager_Java_Console_6.0.SP1_for_Linux.rpm
Preparing... ########################################### [100%]
1:VRTScscm ########################################### [100%]
Error when running hagui :
Java Console is installed on the cluster Node (Single cluster but took ssh session to run the hagui)
[root@cluster-pri ~]# /opt/VRTSvcs/bin/hagui
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getColorModel(Unknown Source)
at VCSGui.getImage(VCSGui.java:59)
at VCSGui.main(VCSGui.java:92)
Java Console is installed on the cluster Node (Single cluster Node and running hagui on the Desktop of Single Cluster Node)
[root@cluster-dr ~]# /opt/VRTSvcs/bin/hagui
VCS Single Cluster Manager (Java Console) is no longer packaged with VCS. Symantec recommends use of the Veritas Operations Manager (VOM) to manage, monitor and report on multi-cluster environments. You can download VOM at http://go.symantec.com/vom . If you wish to continue using the VCS Single Cluster Manager, you can get it at no charge at the http://go.symantec.com/vcsm_download website.
Comments 27 Comments • Jump to latest comment
Hi Zahid,
As the error mentions, did you try setting up the DISPLAY variable pointing out to where should be console go ?
I understand you are running the hagui directly on server ... you need to redirect the console to some display machine
If you want the console to appear on your desktop or laptop, you have to use a X software like Xming or X manager & make it to listen to display requests ..
then on server, you need to set DISPLAY variable like DISPLAY=<IP_ADDRESS_OF_LAPTOP>,0.0
check out the display port what it is listening with your X software (it should appear in systray) ..
Once display is set, then re-trigger ... it should throw theGUI on laptop or desktop ...
G
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
Zahid,
You also want to make sure that your putty session (or other SSH Client) has the "X11 Forwarding" option selected. See the attached screen capture from putty.
Joe D
Thanks Jdangelo and Gaur
@ Jdangelo yes I already the same but :(
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
Why are you trying to run hagui on the cluster nodes. The normal reasons for this, is you are logging on to the PHYSICAL VGA console (which is pretty rare these days as you mainly ssh to server remotely) or you do not have permissions to install client on you client computer. If the reason is either of these, then you need to set DISPLAY variable. However, it is better to install java console on your client (less network traffic between server and client so it is quicker and you can manage both clusters from the same client). Normally the client is Windows so you can download this or install the rpm you already have on you client if it is a Linux client with rpm package management - both of these can be downloaded from http://go.symantec.com/vom as the DR nodes tells you on which presumebly you have not installed the Java console.
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
If you use the VOM link in Mike's post, click on 'Other Resources', then
'Download: Veritas Cluster Server Java Console, Veritas Cluster Server Simulator, Veritas Enterprise Administrator Console
Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links
@ Marianne I dont know what are you trying to say please. I have already downloaded this and installed but not able to run the hagui
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
Download the Java GUI for your Windows desktop.
Much easier than trying to install and manage on cluster nodes....
Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links
I can install on windows machine and I feel that its much easier but the person who will administer the Cluster is a Linux OS person. This is actually the prob...
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
OK, so you say you already did the same as we recommended above ..
1. X11 forwarding enabled
2. DISPLAY variable set correctly ..
3. X manager software installed
Do u see any GUI on laptop or not at all see anything ? any network security softwares in between which prevents X from coming ?
To eliminate the problem, can u simply try runnig xclock on your linux server with same display & X 11 forwarding enabled ? if there is an issue between network , you should NOT see the x clock also ...
atleast you would know where to go from here ..
G
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
No Gaurav The reply was specific to the words on Marianne. Doing the same which you suggessted but busy is some other things thats why late. I hope share with you today the update. Thanks all for kind follow-up ;)
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
@ gaurav
This problem also got fixed as per the below settings (Just for checking not parmament).
un hash the lines below and also replace no with yes under /etc/ssh/ssh_config and /etc/ssh/sshd_config file
X11Forwarding yes
ForwardX11 yes
ForwardX11Trusted yes
ForwardAgent yes
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
You said "the person who will administer the Cluster is a Linux OS person" - this does not necessarily mean you should use Linux hagui, especially not on the cluster node - as in an earlier post, you should ONLY use hagui on the cluster node itself if:
If neither of these appy, then the GUI you should use, should be for the client you use, so if your Linux OS person uses a Linux client, then they should use Linux hagui on their computer, not the cluster nodes`, but if the Linux client does not use rpm package management, then they will need to convert rpm to say debian if using Ubuntu.
I am a Linux guy, but unfortunately I still have to use Windows clients, so I have a dual boot and I use both Linux and Windows GUIs in my Linux and Windows partitions.
If you Linux OS person is using a Windows client, then I would not use hagui to X display back to X manager software on Windows as this is not very efficient and the Windows and Linux GUIs look the same, so there is no point doing this unless you already have X display software and have no permissions to install additional software
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
@ Gaurav
I can run other applications (after executing the command ssh -X user@IP) like gedit, system-config-network or system-config-users but when I run /opt/VRTSvcs/bin/hagui I faced the below messages
On a centos machine/User Machine
# /opt/VRTSvcs/bin/hagui
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/VRTSvcs/gui/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at VCSGui.main(VCSGui.java:92)
One more thing : On the Cluster Node when I ran the hagui I have to run it but got the below error. I think first I have to run the hagui on the cluster Node itself.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/VRTSvcs/gui/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at VCSGui.main(VCSGui.java:92)
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
libXext.so.6 should be in package libXext-1.1-3 - is this installed?
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
libXext.so.6 should be in package libXext-1.1-3 - is this installed?
How could I verify the existance of libXext.so.6 in the package libXext-1.1-3. Although I have the package libXext-1.1-3 is already installed.
# rpm -qa |grep libXext
libXext-1.1-3.el6.x86_64
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
On my ubuntu client the file is in /usr/lib and /usr/lib32 and is a link to another file:
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
# pwd
/usr/lib64
[root@cluster lib64]# ls -l libXext*
lrwxrwxrwx. 1 root root 16 Apr 27 22:49 libXext.so.6 -> libXext.so.6.4.0
-rwxr-xr-x. 1 root root 76848 Jul 19 2010 libXext.so.6.4.0
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
This should also exist in /usr/lib. The java GUI is a 32-bit program so will be looking in /usr/lib (or maybe /usr/lib32). You probably need to install the 32bit package so probably named libXext-1.1-3.el6.i686
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
]# pwd
/usr/lib
[root@cluster-pri lib]# ls -l /usr/lib/libXext*
lrwxrwxrwx 1 root root 16 Jul 20 03:35 /usr/lib/libXext.so.6 -> libXext.so.6.4.0
-rwxr-xr-x 1 root root 68588 Nov 23 2010 /usr/lib/libXext.so.6.4.0
Huffffffff:
Now the result is changed
# /opt/VRTSvcs/bin/hagui
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/VRTSvcs/gui/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
The java GUI is a 32-bit program so will be looking in /usr/lib
Any way to know about he application is 32bit or 64bit ? (you may send the reply as private message as this current problem is solved)
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
The java GUI is intended for clients, not servers and I would say most clients are 32 bit and this client is java so ported between Windows and LInux and for Windows, even if you 64bit hardware, for clients you often have 32bit O/S, especially XP. Also VCS is 32bit, it is only SF that is 64bit - you can see this in UNIX guides where you see System requirements for VCS.
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
thanks Mike :)
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
Need to install libXtst-1.0.99.2-3.el6.i686.rpm now and then run hagui again to find out the next missing library :)
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Doing the same I feel this may be not last :(
... at this time I am missing Microsoft Windows just click next next to install java console :)
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
Finally Done. Few below i686 libraries also required which I did installed. Now Thanks to all with plenty of help and bundle of thanks. Every post by every person helped my alot and need +thumb. But I dont understand whom marked as Solution as every post is helpful.
libXtst
libXi.so.6
libxcb.so.1
libXau.so.6
http://rpm.pbone.net
I also attached the packages for anyone's help as this tease me alot so these packages may saves anyones time.
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
Good to know its solved .... I would say solution would go to Mike, he the man for this solution .... sorry to got discontinued on this post in last two days ..
G
PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
No problem gaurav. but still thanks for your kind comments and last suggestion. I am marking the mike post as solution.
@ Mike ;)
Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb
zahidhaseeb.wordpress.com
Would you like to reply?
Login or Register to post your comment.