Looks like it was a duplicate key. I did setup a test account to make sure zimbra was working before doing the restore, you think that caused it? The account that caused the error was one that only existed in the backup and was not present on the fresh copy of zimbra.
Code:
Caused by: com.zimbra.cs.mailbox.MailServiceException: object with that id already exists: 258
at com.zimbra.cs.mailbox.MailServiceException.ALREADY_EXISTS(MailServiceException.java:286)
at com.zimbra.cs.db.DbMailItem.create(DbMailItem.java:151)
at com.zimbra.cs.mailbox.WikiItem.create(WikiItem.java:82)
at com.zimbra.cs.mailbox.Mailbox.createDocument(Mailbox.java:4953)
at com.zimbra.cs.redolog.op.SaveDocument.redo(SaveDocument.java:103)
at com.zimbra.cs.redolog.RedoPlayer.playOp(RedoPlayer.java:312)
... 29 more
Caused by: java.sql.SQLException: Duplicate entry '258' for key 1
Query being executed when exception was thrown:
com.mysql.jdbc.ServerPreparedStatement[1164] - INSERT INTO mailbox1.mail_item(id, type, parent_id, folder_id, index_id, imap_id, d
ate, size, volume_id, blob_digest, unread, flags, tags, sender, subject, metadata, mod_metadata, change_date, mod_content) VALUES(
258, 14, null, 257, 258, 258, 1186588643, 748, 1, 'Q2qBUNVSGqXtn70PgzeK5JN8vOM=', null, 0, 0, null, '_Template', 'd2:ct24:text/htm
l; charset=utf-83:revld2:cr23:be0mguzr@hotontampa.com1:f0:2:rdi1186588643611e3:ridi5e2:rsi748e3:veri1eee1:vi9e2:ww9:_Templatee', 5
, 1186588643, 5) So next time I do this, I should delete all the auto-created accounts out of zimbra before starting the restore process?