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 11-24-2009, 03:43 AM
Member
 
Posts: 14
Default [SOLVED] Zimbra.log has a different time zone than ubuntu mail server

Hello,
I reinstalled complete ubuntu server 8.04.3 LTS and replaced new installation of zcs-5.0.18_GA_3011.UBUNTU8 (Open Source Edition) with old backup /opt/zimbra. I've done this whith rsync -avpK /opt/zimbra.
I have problem with zimbra logs (mail.log, zimbra.log, mailbox.log, etc). There is time difference of 6 hours between system logs and zimbra logs. My original time zone is CET (Central European Time).
#Example:
Tue Nov 24 12:11:02 CET 2009

And my zimbra.log time is:
#Example:
Nov 24 06:11:29 mail postfix/qmgr[7810]: B86BC403953: removed
Nov 24 06:11:52 mail postfix/smtpd[9316]: disconnect from mail-bw0-f228.google.com[209.85.218.228]
Nov 24 06:12:03 mail zmmailboxdmgr[20431]: status requested
Nov 24 06:12:03 mail zmmailboxdmgr[20431]: status OK
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: antispam: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: antivirus: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: ldap: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: logger: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: mailbox: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: mta: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: snmp: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: spell: Running
Nov 24 06:12:04 mail zimbramon[20290]: 20290:info: 2009-11-24 06:12:01, STATUS: mail.agroupm.com: stats: Running

I've already checked in zimbraAdmin Class of service > Default > Preferences > Calendar options: Time zone (GMT+01.00) Belgrade / Bratislava / Budapest / Ljubljana / Prague

Do you have any solutions for my strange problem? Where can I look for time zone in Zimbra? Everything else is working very well.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 11-24-2009, 11:44 AM
Moderator
 
Posts: 1,147
Default

Moving this to the Administrators forum as this has nothing to do with Zimbra Desktop.

Are all logs in the system "6 hours off", eg /var/log/messages? Zimbra just uses the system logging facility...
Reply With Quote
  #3 (permalink)  
Old 11-24-2009, 11:46 PM
Member
 
Posts: 14
Default

All logs in the system are "6 hours off".
#My /var/log/messages
Nov 25 02:42:38 mail amavis[5111]: (05111-01) ESMTP::10024 /opt/zimbra/data/amavisd/tmp/amavis-20091125T024238-05111:
#My current time on system:
Wed Nov 25 08:42:51 CET 2009
Reply With Quote
  #4 (permalink)  
Old 11-25-2009, 12:23 AM
Member
 
Posts: 14
Default

I solved my "6 hours off" problem with system log /var/log/messages when I restarted /etc/init.d/sysklogd

I've tried to change zmprov mcf zimbraLogToSysLog TRUE (from default FALSE to TRUE) and zmloggerctl restart:
zmloggerctl restart
Stopping mysqld...done.
Starting mysqld...done.
Stopping logswatch...done.
Starting logswatch...done.
zimbra@mail:~$ zmcontrol status
Host mail.agroupm.com
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
stats Running


but I've still have a "6 hours off" problem with my /opt/zimbra/log/mailbox.log or /opt/zimbra/log/audit.log

Last edited by shoneo; 11-25-2009 at 05:35 AM..
Reply With Quote
  #5 (permalink)  
Old 12-15-2009, 04:31 AM
Member
 
Posts: 14
Default

Finally, problem is solved.

1.You need to reconfigure tzdata on Ubuntu server:
dpkg-reconfigure tzdata

2. Than you need restart zimbra server:
zmcontrol stop
zmcontrol start
Reply With Quote
  #6 (permalink)  
Old 12-15-2009, 10:56 AM
Moderator
 
Posts: 1,147
Default

Glad it was a simple fix, and thanks for posting it back here
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.