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

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 10-08-2010, 01:58 AM
Junior Member
 
Posts: 5
Default zimbra.log empty after rotate

I just setup a new Zimbra server on Ubuntu Server 10.04 LTS. All seems well but I noticed today when I tried to trace some email delivery issues that my zimbra.log is empty since this morning. Yesterday it worked fine.

I've tried to restart the server (multiple times) but didn't do anything...


-rw-r--r-- 1 zimbra zimbra 0 Oct 8 06:44 zimbra.log
-rw-r--r-- 1 syslog adm 286960 Oct 8 06:44 zimbra.log.1.gz

I looks like it's going bad after the logrotate but I don't understand why.

Any ideas what could be going wrong here?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-10-2010, 08:57 AM
imx imx is offline
Special Member
 
Posts: 131
Default

Restarting rsyslog worked for me:

-rw-r--r-- 1 syslog adm 91K 2010-10-10 16:58 zimbra.log

It changes the permissions, you probably have zimbra:zimbra at the moment, but the above is what you end up with afterwards. Im not sure what knock on affect this has, ie if zimbra can still do what it needs to the file, but i guess we'll see.

Cheers,

iMx
Reply With Quote
  #3 (permalink)  
Old 10-22-2010, 03:14 AM
Junior Member
 
Posts: 8
Default

The mine stopped as well:

ls -al zimbra.log*
-rw-r--r-- 1 zimbra zimbra 4199 Oct 22 12:10 zimbra.log
-rw-r--r-- 1 zimbra zimbra 53868 Oct 18 04:25 zimbra.log.1.gz
-rw-r--r-- 1 zimbra zimbra 68725 Oct 15 04:25 zimbra.log.2.gz
-rw-r--r-- 1 zimbra zimbra 38329 Oct 12 04:25 zimbra.log.3.gz
-rw-r--r-- 1 zimbra zimbra 61631 Oct 11 04:25 zimbra.log.4.gz

I even see a service what should be writing to it:

zimbra 5800 1 0 11:39 pts/1 00:00:00 /usr/bin/perl /opt/zimbra/libexec/swatch --config-file=/opt/zimbra/conf/swatchrc --use-cpan-file-tail --script-dir=/opt/zimbra/data/tmp -t /var/log/zimbra.log


Why does it stopped, can anyone help me out with this problem?
Reply With Quote
  #4 (permalink)  
Old 10-22-2010, 03:20 AM
Junior Member
 
Posts: 8
Default

Ok as you can see i did a list after a /etc/init.d/syslog restart

And since 10 minutes zimbra.log is growing again.

Hmm it looks like a bug of zimbra?
Reply With Quote
  #5 (permalink)  
Old 10-28-2010, 01:15 AM
Member
 
Posts: 13
Default zmbra.log and zimbra-stats.log empty after rotate

Same problem on my Ubuntu 10.04 LTS ith ZCS open-src v.6.0.8... and a solution :

Hours after after a logrotate (daily), the 2 zimbra .log files are still empty in /var/log/ :
-rw-r--r-- 1 zimbra zimbra 0 2010-10-28 06:45 zimbra.log
-rw-r--r-- 1 syslog adm 39112 2010-10-28 06:45 zimbra.log.1.gz
-rw-r--r-- 1 syslog adm 112072 2010-10-27 06:38 zimbra.log.2.gz
-rw-r--r-- 1 zimbra zimbra 0 2010-10-28 06:45 zimbra-stats.log

And on the zimbra web amin console, no recent data for services status, and when trying to displays graphs I get a popup error :
"Mail : system failure: Unable to read logger stats Code d'erreur : service.FAILURE Method: GetLoggerStatsRequest Détails :soap:Receiver"

Only 2 solutions works for me :
- full reboot of the Ubuntu
or
- changing owner/group of the two .log files to syslog:adm (instead of zimbra:zimbra) : after a few minutes all is back ok, all log files growing and web console grpahs/status working ok :
chown syslog:adm /var/log/zimbra.log /var/log/zimbra-stats.log

Wondering if I should put my "chown" in a crontab,
or should I try modifying own/grp in /etc/logrotate.d/zimbra ?
Reply With Quote
  #6 (permalink)  
Old 10-28-2010, 01:56 AM
Member
 
Posts: 13
Default

I created a bug report on :
Bug 52552 – zimbra logfiles empty with wrong permissions after logrotate in /var/log
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.