There seems to be a nasty bug in the post-install setup which prevents vital upgrade actions, thus resulting in this db mismatch. I had the same problem when using rc1-debian4 package to upgrade so went back to the ubuntu6 hack. however this hack didn't work for me for rc2 so I was forced to find a workaround. I think this issue is restricted to the Debian4 build, I haven't seen it elsewhere.
This warning:
WARNING: Unknown package installed for store.
is an odd one, and comes from getInstalledPackages{} and seems to come because it can't correctly match up the store entry from:
zmprov gs |grep zimbraServiceInstalled
This then prevents the actual upgrade actions from happening, even though the logs partially claim otherwise. The workaround is either to fix this root cause (dunno how, didn't have time enough to work that out), or you can probably bodge correct zimbraServiceInstalled entries with zmprov -l somehow, but here is the workaround I used:
1. Make sure you have the correct packages installed for the /opt/zimbra present - if you had to restore /opt/zimbra from tar/rsync backup, install the corresponding packages with install.sh -s first (hope you still have the RC1 tarball somewhere, doesn't seem to exist on zimbra download site - they didn't seem to think we might need archives).
2. Start the RC2 installer with -s flag (this just installs the packages, doesn't start the postinstall setup):
./install.sh -s
3. When the installer is complete, then we need to do the upgrades manually before the installer starts (otherwise it goes wrong):
su - zimbra
mysql.server start
cd /opt/zimbra/libexec/scripts
./migrate20070928-ScheduledTaskIndex.pl
mysql.server stop
zmlocalconfig -e zimbra_mailbox_purgeable=true
zmlocalconfig tomcat_thread_stack_size
- if set, use this value in next step, otherwise use 256k
zmlocalconfig -e mailboxd_thread_stack_size=256k
- if it was set: zmlocalconfig -u tomcat_thread_stack_size
exit (back to root user)
4. First, open a second window/shell/ssh to the server. OK, now run the setup from the first window:
/opt/zimbra/libexec/zmsetup.pl
- By the time mailboxd starts up towards the end of the setup, one more upgrade must be completed. The setup starts and stops ldap service several times, you need to run this command when the ldap service is up (you might need to run it a couple of times before its succesful, to catch the ldap server when its running):
zmprov -l mcf zimbraHttpNumThreads 100
And hey presto, you should have a running RC2 on Debian 4, using the Debian 4 binary, something I've been looking forward to for some time now!
** UPDATE - See later posting in this thread for root cause and fix, particularly if you're upgrading from before 5.0_RC1
Last edited by dijichi2; 11-25-2007 at 06:40 AM..
|