| 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.
|  | | 
04-11-2007, 11:20 AM
| | | zmsetup.pl on Mac OS X Unhappy 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?
__________________
cheers,
rodolfo
| 
04-11-2007, 11:29 AM
| | Former Zimbran | |
Posts: 5,606
| | Are you switching to bash root? | 
04-11-2007, 11:48 AM
| | | Yup. Total sequence to log in to the term is: Code: x:~ admin$ su - root
Password:
x:~ root# cd /opt/zimbra If i need to be zimbra for a while, it's (as root) Code: x:/opt/zimbra root# su zimbra
x:~ zimbra$ Edit: By the way, I ran the zmsetup.pl again just to see what would happen, and the mboxgroup error is incremental, in the sense that the first time it ran, it was mboxgroup1, second run is mboxgroup2, and so forth. Didn't notice it the first time, sorry.
__________________
cheers,
rodolfo
Last edited by segleaur; 04-11-2007 at 12:02 PM..
Reason: Updated Error Info
| 
04-11-2007, 12:12 PM
| | Former Zimbran | |
Posts: 5,606
| | Try sudo /bin/bash
then /opt/zimbra/libexec
./zmsetup.pl | 
04-11-2007, 12:25 PM
| | | No joy, J. Same error sequence.
__________________
cheers,
rodolfo
| 
04-11-2007, 12:28 PM
| | Former Zimbran | |
Posts: 5,606
| | My advice is to upgrade to the NE on the same version.
Then run backup.
And restore.
jh
Last edited by jholder; 04-11-2007 at 12:31 PM..
| 
04-11-2007, 12:38 PM
| | | Any implications? 4.0 was OSS version, not NE. I'm guessing I could still run NE with it's functions disabled post trial-license? Or should I try upgrading from 4.0 to 4.5.1 and then to 4.5.4?
__________________
cheers,
rodolfo
| 
04-11-2007, 12:46 PM
| | Former Zimbran | |
Posts: 5,606
| | Well, Brian is the expert on this, so I'm blowing hot air.
I think there may be some db corruption, so if you can get your data out, and into a fresh install, that would be best.
NE trial is a fully functional trial.
john | 
04-11-2007, 12:55 PM
| | | OK, so I have these nice large tar files on drive (backup before upgrade) and several sitting around on DATs. Soooooo, if I were to do a fresh reinstall (i'm testing to see if a stepped upgrade works as we "speak"), what files do I have to worry about and how I do make sure the InnoDB files are intact? Note that the tar files are full backups of the entire environment offline - so I would have to recreate the 4.0 environ, dump, install 4.5.4 and import?
__________________
cheers,
rodolfo
| 
04-11-2007, 12:56 PM
| | Former Zimbran | |
Posts: 5,606
| | Did you just tar up /opt/zimbra? | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |