Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-2009, 11:51 AM
Senior Member
 
Posts: 54
Default [SOLVED] Month '-1' out of range

I've started getting this daily message:

Month '-1' out of range 0..11 at /opt/zimbra/libexec/zmdailyreport line 591

In looking at the code, it looks like something has gotten corrupted in the db, but not sure where to look...
Reply With Quote
  #2 (permalink)  
Old 07-20-2009, 06:37 AM
Active Member
 
Posts: 40
Default

I just upgraded to 5.0.18 and am getting this same error. Any pointers to bug reports or workarounds would be welcome.
Reply With Quote
  #3 (permalink)  
Old 07-20-2009, 06:49 AM
Moderator
 
Posts: 7,928
Default

Code:
su - zimbra
zmlocalconfig -s zimbra_logger_mysql_password
Once you have the MySQL password you can run the following to check the logger tables
Code:
su - zimbra
mysqlcheck --defaults-file=/opt/zimbra/conf/my.logger.cnf --socket=/opt/zimbra/logger/db/mysql.sock -u zimbra -p zimbra_logger
__________________
Reply With Quote
  #4 (permalink)  
Old 07-20-2009, 06:55 AM
Active Member
 
Posts: 40
Default

zimbra_logger.amavis
warning : Table is marked as crashed and last repair failed
error : Size of indexfile is: 1024 Should be: 59010048
error : Corrupt
Reply With Quote
  #5 (permalink)  
Old 07-20-2009, 06:58 AM
Moderator
 
Posts: 7,928
Default

Code:
su - zimbra
mysqlcheck --defaults-file=/opt/zimbra/conf/my.logger.cnf --socket=/opt/zimbra/logger/db/mysql.sock --auto-repair -u zimbra -p zimbra_logger
__________________
Reply With Quote
  #6 (permalink)  
Old 07-20-2009, 07:22 AM
Active Member
 
Posts: 40
Default

Table shows a correct, but running /opt/zimbra/libexec/zmdailyreport as zimbra user still returns the same error.
Reply With Quote
  #7 (permalink)  
Old 07-20-2009, 07:30 AM
Moderator
 
Posts: 7,928
Default

Code:
su - zimbra
/opt/zimbra/mysql/bin/myisamchk /opt/zimbra/logger/db/data/zimbra_logger./amavis
if that returns errors about the index then you can try
Code:
su - zimbra
/opt/zimbra/mysql/bin/myisamchk -r -q /opt/zimbra/logger/db/data/zimbra_logger amavis
__________________
Reply With Quote
  #8 (permalink)  
Old 07-20-2009, 07:41 AM
Active Member
 
Posts: 40
Default

That works!

Thank you very much for the help
Reply With Quote
  #9 (permalink)  
Old 09-22-2009, 09:56 AM
Active Member
 
Posts: 30
Default

So I followed the directions, and fixed both , but my zmdailreport is still returning "Month '-1' out of range 0..11 at ./zmdailyreport line 591"

Any other ideas?

Actually, I went and ran /opt/zimbra/mysql/bin/myisamchk a few more times, fixed raw_logs and service_status

and reran the mysqlcheck... the report is generating now.

Last edited by staufj22; 09-22-2009 at 10:07 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.