Hey guys, I've just gotten around to upgrading zimbra 4.0 to 4.5.4 for Mac OS X, due to a little too much work lately. Anyhow, the "easy install" went through without a problem, but when I run zmsetup.pl as root, of course, I zmsetup.pl spits out an error. It seems that this happens when the script tries to execute migrate20061101-IMFolder.pl. It tries to execute a SQL statement like:
Code:
INSERT INTO mboxgroup1.mail_item (
mailbox_id, id, type, parent_id, folder_id, index_id, imap_id,
date, size, volume_id, blob_digest,
unread, flags, tags, sender,
subject, metadata,
mod_metadata, change_date, mod_content
)
SELECT
id, 14, 1, 1, 1, null, null,
1176313968, 0, null, null,
0, 0, 0, null,
'Chats', 'd1:ai1e4:unxti14e1:vi9e2:vti5ee',
change_checkpoint, 1176313968, change_checkpoint
FROM mailbox
WHERE group_id = 1
ON DUPLICATE KEY UPDATE subject = 'Chats'; to which mySQL responds:
Code:
Cannot add or update a child row: a foreign key constraint fails (`mboxgroup1/mail_item`, CONSTRAINT `fk_mail_item_parent_id` FOREIGN KEY (`mailbox_id`, `parent_id`) REFERENCES `mail_item` (`mailbox_id`, `id`))
And the script goes nuts, interpreting that error as a command:
Code:
sh: line 1: mboxgroup2/mail_item: No such file or directory
sh: line 1: fk_mail_item_parent_id: command not found
sh: line 1: mailbox_id: command not found
sh: line 1: parent_id: command not found
sh: line 1: mail_item: command not found
sh: line 1: mailbox_id: command not found
Died at /opt/zimbra/libexec/scripts/Migrate.pm line 365,
Because, obviously, mboxgroup2/mail_item does not exist as a directory.
So, my question is: is there a workaround for this or do I have to do a stepping upgrade from 4.0 to 4.5.x where x < 5?