Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-2006, 03:36 PM
Member
 
Posts: 13
Default Error during upgrade: Duplicate key name 'i_name'

I recevied this error when I upgraded my version of Zimbra. Anyone else have this problem? I'm going to restore my backup and try an incremental upgrade to see if that works.

Code:
Upgrading from 3.0.0_M2_746 to 3.1.0_GA_332
Sat Apr 15 17:24:08 2006: Stopping zimbra services
Sat Apr 15 17:24:11 2006: Checking mysql status
Sat Apr 15 17:24:11 2006: Starting mysql
Sat Apr 15 17:24:12 2006: SELECT value FROM config WHERE name = 'db.version'
Sat Apr 15 17:24:13 2006: Checking logger mysql status
Sat Apr 15 17:24:13 2006: Starting logger mysql
This appears to be 3.0.0_M2
Schema upgrade required
Sat Apr 15 17:24:14 2006: Running /opt/zimbra/libexec/scripts/migrate20051021-UniqueVolume.pl
Sat Apr 15 17:24:15 2006: SELECT value FROM config WHERE name = 'db.version'
Sat Apr 15 17:24:15 2006: Verified schema version 21.
Sat Apr 15 17:24:15 2006: Updating volume table
Sat Apr 15 17:24:15 2006: ALTER TABLE volume
ADD UNIQUE i_name (name),
ADD UNIQUE i_path (path(255));


ERROR 1061 (42000) at line 1: Duplicate key name 'i_name'
Error while running '/opt/zimbra/bin/mysql --user=zimbra --password=vdDv4tC50MLqxfir_5NMQFklqIQ --database=zimbra --batch --skip-column-names'. at /opt/zimbra/libexec/scripts/Migrate.pm line 134,  line 1.
Sat Apr 15 17:24:16 2006: Script failed with code 1 - exiting
UPGRADE FAILED - exiting
Reply With Quote
  #2 (permalink)  
Old 04-15-2006, 06:36 PM
Zimbra Employee
 
Posts: 4,792
Default

Seems you've got a dup path in the volume table. Can you login to MySQL manually and dump that table. Might have to remove a path to get the update to run.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 04-15-2006, 08:13 PM
Active Member
 
Posts: 44
Default M2

That's the same error that I saw when upgrading from M2. I asked about it, but never got a response:
Mac Intel Support

I was able to restore from a backup, upgrade to 3.0.1_GA_160, and then upgrade to 3.1.0_GA_260 successfully.
Reply With Quote
  #4 (permalink)  
Old 04-15-2006, 10:01 PM
Member
 
Posts: 13
Default

I'll give that a try and see what happens. If it doesn't work, I'll look into what KevinH said.

Quote:
Originally Posted by mubley
That's the same error that I saw when upgrading from M2. I asked about it, but never got a response:
Mac Intel Support

I was able to restore from a backup, upgrade to 3.0.1_GA_160, and then upgrade to 3.1.0_GA_260 successfully.
Reply With Quote
  #6 (permalink)  
Old 04-27-2006, 08:42 AM
Active Member
 
Posts: 44
Default migrate20051021-UniqueVolume.pl

I've updated Bug 7385 with one possible solution.
Reply With Quote
  #7 (permalink)  
Old 04-27-2006, 08:57 AM
Active Member
 
Posts: 44
Default Workaround

Quote:
Originally Posted by KevinH
Seems you've got a dup path in the volume table. Can you login to MySQL manually and dump that table. Might have to remove a path to get the update to run.
Here's the detail of how to implement KevinH's suggested workaround:

NOTE: If you have already attempted to upgrade to 3.1, you will need to revert to a backup of your M2 installation before continuing.

First, switch to the zimbra account:
Code:
su - zimbra
Next, launch the mysql client utility:
Code:
mysql
Tell mysql that you want to work on the zimbra database:
Code:
connect zimbra;
Drop the index called i_name:
Code:
alter table volume
drop index i_name;
Drop the index called i_path:
Code:
alter table volume
drop index i_path;
Quit the mysql client utility:
Code:
quit
Finally, switch back to the root account:
Code:
exit
You should now be able to successfully upgrade from M2 to 3.1.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.