Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
damjanster
Posts: 7
Joined: Sat Sep 13, 2014 12:27 am

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby damjanster » Mon Oct 08, 2012 7:56 am

After a successful migration from RHEL5 to RHEL6 (both 64bit) of zimbra 7.2.1. I went ahead and tried to upgrade ZCS to version 8.0.

During the upgrade someone else connected to the server and ran "service zimbra restart" - this interfered with the upgrade and made it fail with this error:
[QUOTE]Sun Oct 7 08:18:55 2012 Schema upgrade required from version 90 to 91.

Sun Oct 7 08:18:55 2012 Running /opt/zimbra/libexec/scripts/migrate20120410-BlobLocator.pl

Sun Oct 7 08:18:57 2012 Sun Oct 7 08:18:57 2012: Verified schema version 90.

Sun Oct 7 08:19:18 2012 ERROR 1054 (42S22) at line 1: Unknown column 'volume_id' in 'mail_item'

Sun Oct 7 08:19:18 2012 Sun Oct 7 08:19:18 2012: Error while running '/opt/zimbra/bin/mysql --user=zimbra --password=QUlKJ8JX7.FsAZXaUTzQqiaw --database=zimbra --batch --skip-column-names'.

Sun Oct 7 08:19:18 2012 Script failed with code 256: - exiting

Sun Oct 7 08:19:18 2012 UPGRADE FAILED - exiting.[/QUOTE]
Now I'm running ZCS version 7.2.1. on RHEL6 with the /opt/zimbra/store folder that was in use during the failed upgrade procedure. Zimbra server works fine with this "store" folder, but there's no chance to successfully upgrade to version 8. Errors I get are the following:
[QUOTE]Sun Oct 7 10:25:27 2012 Checking ldap status...

Sun Oct 7 10:25:27 2012 *** Running as zimbra user: /opt/zimbra/bin/ldap status

Sun Oct 7 10:25:27 2012 not running.

Sun Oct 7 10:25:27 2012 Starting ldap...

Sun Oct 7 10:25:27 2012 *** Running as zimbra user: /opt/zimbra/bin/ldap start

Failed to start slapd. Attempting debug start to determine error.

50713c9c lt_dlopenext failed: (back_hdb.la) file not found

50713c9c config error processing cn=module{0},cn=config: handler exited with 1
Sun Oct 7 10:26:04 2012 failed with exit code: 256.

Sun Oct 7 10:27:40 2012 UPGRADE FAILED - exiting.[/QUOTE]
I don't know if the two are related - something happened during mysql upgrade, now I get errors when starting ldap during upgrade procedure. I don't know where to begin solving this issue. The command "sh -X /opt/zimbra/bin/ldap start" gives me the same error (tried running this command after the failed upgrade).
BR,

Damien


User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby quanah » Mon Oct 08, 2012 12:34 pm

You need to modify your /opt/zimbra/.install_history file and remove all lines related to upgrading to 8.0, so that the 8.0 upgrade process can start from the beginning.
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
damjanster
Posts: 7
Joined: Sat Sep 13, 2014 12:27 am

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby damjanster » Tue Oct 09, 2012 3:57 am

I cannot do this, since I have discarded the complete migration and started anew. I have been successful in migrating zimbra from RHEL5 to RHEL6 once again and using "store" folder that went through the failed upgrade process. The file /opt/zimbra/.install_history was erased during the "./install.sh -u" command (I have only moved the store folder to another location before running uninstall).
I have then retried the upgrade process and it always fails with the second error mentioned in the original post.
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby quanah » Tue Oct 09, 2012 11:51 am

The error you note *only* occurs if the installer detects that an 8.0 upgrade has already been attempted on the server at some point.
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
damjanster
Posts: 7
Joined: Sat Sep 13, 2014 12:27 am

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby damjanster » Wed Oct 10, 2012 2:57 am

I understand. As I've mentioned I use the "store" folder that was active during the failed upgrade. Perhaps zimbra upgrade now sees that the schema got upgraded from the files in that folder. I don't know the inner relations of zimbra to know exactly what schema upgrade does and where. I can confirm that during the upgrade, zimbra checks for the version of schema and it finds version 90, not the origination 65 that's in use with ZCS 7.2.1.
BR.
User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby quanah » Wed Oct 10, 2012 12:32 pm

Hi,
I'm sorry, but you do not understand. I will explain further. The error you are encountering only occurs if the installer detects a previous attempt at upgrading to 8.0 by reading the /opt/zimbra/.install_history file. That file tracks what version upgrades have been done and/or attempted. Part of that, is whether or not the LDAP upgrade steps necessary for going from any version less than 8 TO 8 have occurred. If it detects that the upgrade steps have already occurred, it will not run them again. And then you will hit the error that you have reported. So again, please fix your /opt/zimbra/.install_history file.
--Quanah
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
damjanster
Posts: 7
Joined: Sat Sep 13, 2014 12:27 am

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby damjanster » Fri Oct 26, 2012 3:25 am

Thank you for your help.

I have corrected the file and will proceed with the upgrade ASAP.
Will post result when I'm done.
n3tz666
Posts: 1
Joined: Sat Sep 13, 2014 3:12 am

Unsuccessfull upgrade from ZCS OSE 7.2.1 to 8.0 due to interruption

Postby n3tz666 » Thu May 09, 2013 6:56 pm

Hello, I have a similar problem this is the error:
Fri May 10 01:50:33 2013: Verified schema version 90.

ERROR 1054 (42S22) at line 1: Unknown column 'volume_id' in 'mail_item'

Fri May 10 01:50:56 2013: Error while running '/ opt / zimbra / bin / mysql - user = zimbra - password = xxxxxxx - database = zimbra - batch - skip-column-names'.

Script failed with code 256: - exiting

UPGRADE FAILED - exiting.
I tried to edit the file. install_history as recommended but not resolved what else can I try?
I'm doing an update on
7.1.3_GA_3346 NE to NE 8.0.3_GA_5664

S.O. Ubuntu 10.04 LTS

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 21 guests