Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 04-15-2006, 02:36 PM
Member
 
Join Date: Oct 2005
Posts: 13
hodel is on a distinguished road
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, 05:36 PM
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,782
KevinH is on a distinguished road
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.
__________________
Subscribe to our Blog - Bugzilla - Wiki - Downloads
Reply With Quote
  #3 (permalink)  
Old 04-15-2006, 07:13 PM
Senior Member
 
Join Date: Dec 2005
Posts: 44
mubley is on a distinguished road
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, 09:01 PM
Member
 
Join Date: Oct 2005
Posts: 13
hodel is on a distinguished road
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, 07:42 AM
Senior Member
 
Join Date: Dec 2005
Posts: 44
mubley is on a distinguished road
Default migrate20051021-UniqueVolume.pl

I've updated Bug 7385 with one possible solution.
Reply With Quote
  #7 (permalink)  
Old 04-27-2006, 07:57 AM
Senior Member
 
Join Date: Dec 2005
Posts: 44
mubley is on a distinguished road
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
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrade issues (4.0.2ga to 4.5.1ga) tachijuan Installation 3 02-17-2007 12:16 PM
Certificate problem following 3.1.0 -> 4.0 upgrade simonellistonball Migration 5 09-26-2006 01:56 PM
M1 -> M2 Upgrade Scripts KevinH Announcements 57 12-15-2005 09:10 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0