问题原文
原帖链接 · Broco · CC BY-SA 3.0
I've recently had some problems regarding upgrading Zimbra while also upgrading my OS at the same time. To be more specific: I wanted to upgrade Zimbra Open Source Edition from 8.0.5 to 8.6 and at the same time upgrade Ubuntu Server from 12.04 to 14.04. The problem I encountered was that I couldn't get it to work, Zimbra threw a lot of Perl-related exceptions and since the Zimbra forum isn't very communicative I had to reroll to my backup to be up and running after the weekend again. So what is the correct process?
已采纳解答
原帖链接 · user25259 · CC BY-SA 4.0
I felt the need to respond after spending two days to get this all working, performing numerous restores due to upgrade issues.
In my situation, it was an update of Ubuntu 12 (Zimbra 8.6) -> Ubuntu 16 (Zimbra 8.8). Sadly, instructions from Zimbra's website (/opt/zimbra/conf/localconfig.xml), and the post from OP resulted in the following LDAP error after performing the task ./install -s on a production version of zimbra:
ldap_url and ldap_master_url cannot be the same on an ldap replica
As a result, the method that worked for me is to perform Labsy's suggestion, which is performed during the do-release-upgrade. To add some in-depth information, for other people that may be confused, you will receive the following message during the Ubuntu OS upgrade process
Updating repository information
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.
At this time, open a SSH session to the server, and edit the file /etc/apt/sources.list.d/zimbra.list and remove the # from the beginning of the lines, so that the zimbra packages will be updated as part of the upgrade process.
Follow the OS upgrade normally, and agree to all default messages. Once the OS upgrade is complete, you can reboot the server. You will know that all has gone well, if the Zimbra services start up during the boot process.
This way you don't need to run ./install -s on the new OS at all.
For others who have come here due to the following message, ldap_url and ldap_master_url cannot be the same on an ldap replica, the reason why you receive the error, is because the ./install -s blows away the LDAP configuration stored in /opt/zimbra/conf/localconfig.xml. If you do not have a backup of this file, you will have to restore from backup/snapshot and start the upgrade process from the beginning.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
