[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh with x11 forwarding and rhel5



Thank you Doug, I've filed Bug 58110 [https://bugzilla.zimbra.com/show_bug.cgi?id=58110] to see if we could correct/overwrite the DISPLAY environment variable in ~zimbra/.bashrc.

Sincerely,
-thom



From: "Doug Curtis" <doug.curtis@oit.gatech.edu>
To: "zimbra-hied-admins" <zimbra-hied-admins@sfu.ca>
Sent: Friday, March 18, 2011 9:12:54 AM
Subject: ssh with x11 forwarding and rhel5

We ran into an issue this week that I wanted to pass along to you all.

We run Zimbra 6 on RHEL5 64-bit and had restarted mailboxd on one of the mailstores.  The service came up, zmcrontrol status showed everything running and ps showed the java process.  However, when someone on that mailstore tried logging in to the web client, they would get a blank page and the http error code was 500.

The stacktrace in the mailbox.log showed this error:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color

It took us some time but we finally tracked it down to java picking up on the DISPLAY environment variable being set.  If you ssh into the machine with x11 forwarding enabled (ssh -X), the DISPLAY environment variable gets set.  This is normal and shouldn't be an issue but there appears to be an issue with the zimbra java on RHEL5.  Java recognizes the variable being set and tries to load the x11 libXtst shared library. If the library isn't installed,  you will see this error in the logs too:

javax.servlet.ServletException: java.lang.UnsatisfiedLinkError: /opt/zimbra/jdk1.6.0_22/jre/lib/amd64/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

I spoke to zimbra on the phone and they tried duplicating this with their Ubuntu test environment but it worked fine.  I tried it in our test environment (which is also RHEL5) and I was able to duplicate the issue there too.

Thanks,

Doug

--
Doug Curtis
doug.curtis@oit.gatech.edu
Georgia Tech OIT/A&I
404.385.0390