Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: mail account corrupt?

  1. #1
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default mail account corrupt?

    i've imported about 15 mailboxes on average 500mb each to zimbra using imapsync. apart from imapsync barfing on messages over 10mb everything went fine, flags, tags and dates came in ok. but i've got one account thats sick - when i hit reindex in the admin interface using ie or firefox, the browser hangs solid and you get two java processes use a lot of cpu and memory for an extended period. if you leave the browser it eventually comes back saying resource could not be found for the reindex. browser also hangs with animated bar waiting to log into account.

    is the a command line thingee for checking/reindexing an account? all others seem to work fine.

  2. #2
    tim brennan is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    9

    Default

    there is no command line reindex call, but you can take the perl script in ZimbraServer/src/perl/soap/reindex.pl and change the hardcoded URL and it should work -- it just sends the <reindexrequest> Soap command to the server.

    I'm not sure what a CLI really gives you though -- I seriously doubt that a CLI will work if the web UI doesn't. What is wrong with the mailbox that you decided to reindex it? Can that user log on? Does new mail delivery work for that mailbox?

  3. #3
    tim brennan is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    9

    Default

    Ahh, oops, I missed the part where you said "browser also hangs with animated bar waiting to log into account."

    Do you know what the mailbox ID is? Can you look in the index directory /opt/zimbra/index/0/[mailbox-id]/index/0 and post an ls of the directory?

    Oh yah, also, the CPU hang sounds like a firefox bug (FF spins at 100% CPU while waiting for server to respond) that was fixed in FF 1.5...are you using an older version of FF?

  4. #4
    tim brennan is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    9

    Default

    You can find the mailbox ID using this two-step process:

    First, get the AccountId of the user from LDAP:
    Code:
    % /opt/zimbra/bin/zmprov ga user@domain.com| grep -i zimbraId
    zimbraId: LONG-ALPHANUMERIC-UID-STRING
    Then use that AccountId to lookup their mailbox ID in MySQL:
    Code:
    % /opt/zimbra/bin/mysql -e "use zimbra; select id from mailbox where account_id = 'UID-STRING-FROM-ABOVE'"
    +----+
    | id |
    +----+
    | 26 |
    +----+
    Last edited by tim brennan; 12-19-2005 at 05:11 PM.

  5. #5
    jesse is offline New Member
    Join Date
    Mar 2006
    Posts
    4
    Rep Power
    9

    Default How do I reset this index?

    I'm stuck in this same problem. How can I get this account fixed?

    Code:
    [zimbra@mail 0]$ pwd
    /opt/zimbra/index/0/11/index/0
    [zimbra@mail 0]$ ls
    _8l.cfs  _bg.cfs  _eb.cfs  deletable  segments
    [zimbra@mail 0]$

  6. #6
    konrad is offline Intermediate Member
    Join Date
    Jan 2006
    Posts
    23
    Rep Power
    9

    Default

    Same problem here, reindex on a mailbox stuck in the middle, now the account can't login anymore nor receive email (postfix shows timed out while sending end of data).

    Running ZimbraServer/src/perl/soap/reindex.pl (action status, start, cancel) just hangs, running it on another mailbox does work.

    Nice to see that there might be a bug filled for this. ( Index Interrupted - User Can't Login ) but this bug is not accessible by me ( You are not authorized to access bug #7725. )

    I'm not running Network Edition. When I ran the reindex on the mailbox it was version 3.1.3 now upgraded to 3.1.4 but no way to fix the account.

  7. #7
    konrad is offline Intermediate Member
    Join Date
    Jan 2006
    Posts
    23
    Rep Power
    9

    Default

    tim it would be nice if you could get us any hints on wether these indexing errors can be recovered

  8. #8
    konrad is offline Intermediate Member
    Join Date
    Jan 2006
    Posts
    23
    Rep Power
    9

    Default

    Well for those people that would like to know how to recover from this here is a simple step by step guide (this was using 3.1.4):

    1. Set the problematic account into maintance mode
    2. Get the mailbox id of the account as described by Tim
    3. Shutdown Zimbra
    4. Delete the folder called /opt/zimbra/index/0/<MAILBOX ID>
    5. Startup Zimbra - You will see that zimbra rebuilds the index of the mailbox.
    6. Wait until the reindexing is finished
    7. Make the account active again.

    And here we are again, mailbox can receive email and user can login...

  9. #9
    tim brennan is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    9

    Default

    I'm not running Network Edition. When I ran the reindex on the mailbox it was version 3.1.3 now upgraded to 3.1.4 but no way to fix the account.
    Yah, this was unfortunately a result of my initial 'fix' of 7725 (oops) -- while trying to fix one problem I inadvertantly created a deadlock that could be triggered during reindexing. You should be able to re-index again in 3.1.4 now.

    If your index is really corrupt (seems like it might be) you will have to manually delete it before you can re-index. Konrad's instructions are good with the minor exception that the index might be in /opt/zimbra/index/1/<MAILBOX ID> (or /2/<MAILBOX_ID>) in some cases.

    No handle on what might be causing the corruptions right now: we've seen very few (the ones in this thread are the only ones to my knowlege) instances of this happening -- so it is difficult to pin down.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  10. #10
    tim brennan is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    9

    Default Use the admin console to start reindexing

    A word of suggestion: you really should use the admin console's "reindex mailbox" button to trigger reindexing, not the perl script. The big advantage is that the admin console functionality gets run by the Test team, whereas the perl script does not....
    Bugzilla - Wiki - Downloads - Before posting... Search!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •