Zimbra Desktop 7.2.7 not loading on Ubuntu 15.04

Zimbra desktop installation on my system was prompting me to upgrade the installation to the latest 7.2.7 version. I downloaded the installer (zdesktop_7_2_7_ga_b12059_20150629062326_linux_i686.tgz) from Zimbra and found that it was not working. For couple of weeks there was no discussion around this on zimbra forums too.

Looking at the logs displayed the following error:

STARTED Jetty ಸೋ ಆ 3 23:03:55 IST 2015
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
STOPPED ಸೋ ಆ 3 23:03:55 IST 2015

This forced me to change the default java version that I’m using on my desktop to and i386 version.

$ sudo update-alternatives –config java
There are 4 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1077 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
* 2 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1070 manual mode
3 /usr/lib/jvm/java-8-oracle/jre/bin/java 1077 manual mode
4 /usr/lib/jvm/java-9-oracle/bin/java 1076 manual mode

Press enter to keep the current choice[*], or type selection number:

This sorted the issue with Zimbra desktop quickly.

Error: Couldn’t load XPCOM Zimbra Desktop

Zimbra desktop installation on a brand new installation of Ubuntu/Linux mint 64 bit release always fails (Tried on Ubuntu 14.04/14.10/Linux Mint 17 etc) due to the lack of 32 bit architecture support.

I confirmed it by running Zimbra desktop with ia32-libs added to the distribution and manually running zdclient as follows:

$ /opt/zimbra/zdesktop/linux/prism/zdclient -webapp “/home/techfiz/zdesktop/zdesktop.webapp” -override “/home/techfiz/zdesktop/zdesktop.webapp/override.ini” -profile “/home/techfiz/zdesktop/profile”
Couldn’t load XPCOM.

This is mainly because the way 32 architecture support used to be enabled on the distro’s. Earlier installing ia32-libs package was quire easier via apt-get. Now the best way to install 32 bit architecture support is as follows:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs

Now try opening Zimbra desktop, it works like a charm.

Fix Zimbra stats graph/cron jobs

If your zimbra scheduled tasks are not running or if you don’t see your stats graphs on admin panel, the first thing that you should check if zimbra’s cronjobs. When you reinstall/move your zimbra installation we normally tend to miss cron job setups required for zimbra.

To fix this, find the Zimbra crontabs directory at /opt/zimbra/zimbramon/crontabs

Now, lets put alwal the cronjob’s to a single file (just to make your job easier) as follows:

[[email protected] crontabs]# cat crontab >> crontab.zimbra
[[email protected] crontabs]# cat crontab.ldap >> crontab.zimbra
[[email protected] crontabs]# cat crontab.logger >> crontab.zimbra
[[email protected] crontabs]# cat crontab.mta >> crontab.zimbra
[[email protected] crontabs]# cat crontab.store >> crontab.zimbra

Finally,Load the crontab.zimbra file to crontab as follows:

[[email protected] crontabs]# crontab crontab.zimbra

Voila, that’s it. Wait for few minutes to start seeings the graphs. You can also verify the cornjobs by using ‘crontab -l’.

Retrieve Zimbra LDAP master URL

If you’re trying to work on Zimbra migration etc, you might require to know the Zimbra LDAP master URL. Generally it should work as ldap:domainname:389, if it doesn’t then use the following command as zimbra to get the right ldap master url.

#su – zimbra
$zmlocalconfig -s zimbra_ldap_password ldap_master_url

The same command might reveal the admin password too.
You can also use the following commands to retrieve the ldap admin password:

#su zimbra
$zmlocalconfig -s | grep ldap_amavis_password
$zmlocalconfig -s | grep ldap_nginx_password
$zmlocalconfig -s | grep ldap_postfix_password
$zmlocalconfig -s | grep ldap_replication_password
$zmlocalconfig -s | grep ldap_root_password
$zmlocalconfig -s | grep zimbra_ldap_password

Reference: Set the password in the LDAP database