Alan Williamson

Alan Williamson's output as a Java Champion, Blog-City Architect, BlueDragon Creator, Author, Speaker and Internet Guru

"If nothing else works, then a total pig-headed unwillingness to look facts in the face will see us through."

Archives

««May 2008»»
SMTWTFS
     1
2
3
4
5678910
11121314151617
18192021222324
25262728293031

BlueDragon Launch Date

Get reminded of when BlueDragon Open Source becomes available.


Google Groups
Subscribe to Open BlueDragon
Email:
Visit this group

Alert Email

Get a short email alert whenever a new entry is published.

Confidential, secure it's piece of cake to keep uptodate.

Zimbra upgrade to 4.5.10; Major ldap problems

Published: 6:11 PM GMT, Saturday, 24 November 2007

We have been running with Zimbra 4.5.5 for some time now, with no problems. The system is running on a Dell server, Fedora 4. Apart from a little hiccup last summer, you can pretty much forget about it.

With version 4.5.10 now released, it was worth looking at upgrading. Since one of our users couldn't access their email via their Nokia handset, and it was confirmed with this bug 21313, now seemed a good time as any to upgrade.

Looking around all the documentation prior to doing this, no major problems was reported. Infact, great play was made at how easy the upgrade process was going to be. Keeping all existing users and mailboxes without any fear of loss. Well, just incase, i made a complete directory backup of /opt/zimbra/ before entrusting the upgrade script.

That was a decision that proved to be my savior.

I shutdown all the services and made sure no processes were running. Next I ran the upgrade script and it took only about 20 minutes, and it was completed. No errors were reported on the console or the upgrade log.

With all services running, everything looked fine, so I logged in. Failed. My heart sunk; all my users had been lost. A quick look at mysql, I confirmed all the users were there. However, I couldn't login in with my admin or personal accounts. That pointed to an ldap problem.

A very handy utility that I found was zmprov. Login as 'zimbra' and run that command. You will then be kicked into a shell, to which you type gaa. This should list all the users you have on your system. If it doesn't then you have a problem with ldap.

To restore the ldap database I performed the following:

  1. Shutdown all the zimbra services; killing them manually if need be
  2. Restored the file /opt/zimbra/conf/localconfig.xml from my shadow backup directory
  3. Deleted everything in the /opt/zimbra/openldap-data/ directory
  4. Restored that directory from the shadow backup
  5. Restart zimbra

After doing all that, everything burst into life. The server began accepting email again and users could log back in again. All was well in the world again.

The moral of the tale; make sure you do a backup, you just never know when you will need it!

Comments (6) . Tagged: zimbra software . Category: Technical CFML

Related Stories

 

Comments (6)

I also had the same issue. upgraded and could not log in. gaaa nothing. Followed the same steps here and all is well.

Thanks

left by Hawk . Saturday, 15 December 2007 4:26 AM

Hi Alan,

I too am running FC4 with Zimbra 4.5.5. I am trying to move the install to another server (in effect an Upgrade) and I get an LDAP error. Does the error at:

http://www.zimbra.com/forums/installation/13439-moving-new-server-error-help.html

Look at all like the issues you might have been getting? Quanah mentions LDAP issues with Zimbra editions before 4.5.7 (my case) so I'm wondering if these issues could be related.

Thanks, Rob

left by Sternfan . Tuesday, 11 December 2007 3:04 PM

Hi Alan, had a quick look at bug 21313 & its still UNCONFIRMED your blog says it confirmed - (sorry to be pedantic). Looking a the zimbra forums it seem like other also have problems upgrading to 4.5.10

left by padraig . Wednesday, 28 November 2007 6:57 PM

Unfortunately, there's no way to know what triggered the issue you had, but having to wipe out the data and reload it is always the last resort. There are often easier and better ways to get OpenLDAP happy again. There were a number of bugs that specifically affected Zimbra in the releases prior to 4.5.7, and you very well may have hit one that'd been sitting unnoticed until the upgrade was run. ;)

left by Quanah . Tuesday, 27 November 2007 6:41 PM

Sure thing John, I have sent them in a separate email.

I hope you get something out of it. While our setup isn't a huge user base compared to some, it may serve to help others.

left by Alan Williamson . Monday, 26 November 2007 9:26 AM

Hi Alan, This is John from Zimbra.

Can we get a copy of your setup logs to be able to look through them to see what happened? Feel free to send them to my e-mail.

The logs that would be useful would be: install.log.xxxx (where xxxx is the pid of the install instance) zmsetup.log .install_history.log (in /opt/zimbra)

Thanks, and great post! -john

left by John Holder . Sunday, 25 November 2007 7:11 PM
Add Comment