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-23-2010, 01:21 PM
Moderator
 
Posts: 1,432
Default [SOLVED] logrotate issue

After upgrade to 6.0.9 I got this message in admin inbox from the cron daemon:

Code:
/etc/cron.daily/logrotate:

error: zimbra:5 unknown user 'USER'
error: found error in /var/log/zimbra.log , skipping
error: zimbra:17 unknown user 'USER'
error: found error in /var/log/zimbra-stats.log , skipping
Looking in /etc/logrotate.d/zimbra I see the file starts with:

Code:
/var/log/zimbra.log {
    daily
    missingok
    notifempty
    create 0644 USER GROUP
    postrotate
      killall -HUP syslogd 2> /dev/null || true
      su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
    endscript
    compress
}

/var/log/zimbra-stats.log {
    daily
    missingok
    notifempty
    create 0644 USER GROUP
    postrotate
      killall -HUP syslogd 2> /dev/null || true
      su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
    endscript
    rotate 0
}
I think there must have been something wrong with the install(er) that caused "USER GROUP" to appear in lines 5 and 17 instead of "zimbra zimbra". Would someone who has a recent pre-6.0.9 install please post the relevant lines of their /etc/logrotate.d/zimbra?
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #2 (permalink)  
Old 11-23-2010, 01:22 PM
Moderator
 
Posts: 1,432
Default

Ah, I see uxbox caught this too: Bug 53584 – logrotate issue

Would like to be certain of the values that should be there before I go back and manually fix the file.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #3 (permalink)  
Old 11-23-2010, 01:32 PM
Moderator
 
Posts: 1,209
Default

Hi Elliot,

This is from one of the 6.0.8+P3 servers in our hosting farm (yes, we name our servers after wines...)

We expect to upgrade to 6.0.9 shortly; this bug is easy to fix manually.

Hope that helps,
Mark

Code:
malbec:~ # cat /etc/logrotate.d/zimbra
/var/log/zimbra.log {
    daily
    missingok
    notifempty
    create 0644 zimbra zimbra
    postrotate
      killall -HUP syslog-ng 2> /dev/null || true
      su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
    endscript
    compress
}

/var/log/zimbra-stats.log {
    daily
    missingok
    notifempty
    create 0644 zimbra zimbra
    postrotate
      killall -HUP syslog-ng 2> /dev/null || true
      su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
    endscript
    rotate 0
}

/opt/zimbra/log/myslow.log {
    daily
    missingok
    copytruncate
    rotate 30
    notifempty
    create 0644 zimbra zimbra
    compress
}

/opt/zimbra/log/logger_myslow.log {
    daily
    missingok
    copytruncate
    notifempty
    create 0660 zimbra zimbra
    compress
    size 5000k
    rotate 7
} 

/opt/zimbra/log/clamd.log {
    daily
    missingok
    copytruncate
    notifempty
    create 0660 zimbra zimbra
    postrotate
     kill -HUP `cat /opt/zimbra/log/clamd.pid 2> /dev/null` 2> /dev/null || true
    endscript
    compress
    size 5000k
    rotate 7
}

/opt/zimbra/log/freshclam.log {
    daily
    missingok
    copytruncate
    notifempty
    create 0660 zimbra zimbra
    postrotate
     kill -HUP `cat /opt/zimbra/log/freshclam.pid 2> /dev/null` 2> /dev/null || true
    endscript
    compress
    size 5000k
    rotate 7
}   

/opt/zimbra/log/zmlogswatch.out {
    daily
    missingok
    copytruncate
    notifempty
    create 0740 zimbra zimbra
    postrotate
      su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
    endscript
    rotate 5
    compress
}

/opt/zimbra/log/zmswatch.out {
    daily
    missingok
    copytruncate
    notifempty
    create 0740 zimbra zimbra
    postrotate
      su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
    endscript
    rotate 5
    compress
}

/opt/zimbra/log/zmmtaconfig.log {
    daily
    missingok
    copytruncate
    notifempty
    create 0740 zimbra zimbra
    postrotate
      su - zimbra -c "/opt/zimbra/bin/zmmtaconfigctl restart" > /dev/null 2>&1 || true
    endscript
    rotate 5
    compress
}

/opt/zimbra/log/nginx.log /opt/zimbra/log/nginx.access.log {
    daily
    sharedscripts
    missingok
    notifempty
    create 0644 zimbra zimbra
    postrotate
      kill -USR1 `cat /opt/zimbra/log/nginx.pid 2> /dev/null` 2> /dev/null || true
    endscript
    rotate 7
    compress
}

/opt/zimbra/zmstat/zmstat.out {
    daily
    missingok
    copytruncate
    rotate 7
    notifempty
    compress
}
malbec:~ #
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #4 (permalink)  
Old 11-23-2010, 02:48 PM
Moderator
 
Posts: 1,432
Default

Thanks, Mark.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #5 (permalink)  
Old 11-24-2010, 09:14 AM
Elite Member
 
Posts: 285
Default

I had this error to after upgrading.

Thanks.
Reply With Quote
  #6 (permalink)  
Old 11-26-2010, 05:44 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Thanks Elliot .. fixed it.
Reply With Quote
  #7 (permalink)  
Old 01-13-2011, 02:29 AM
Active Member
 
Posts: 32
Default

We've been caught by this too - If someone from Zimbra is listening please could you get it fixed in the next release? (It might have been done in 6.0.10 but isn't in the release notes).

Thanks,
Rob
Reply With Quote
  #8 (permalink)  
Old 01-13-2011, 02:44 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by robh View Post
We've been caught by this too - If someone from Zimbra is listening please could you get it fixed in the next release? (It might have been done in 6.0.10 but isn't in the release notes).
Thanks,
Rob
Uxbod has filed a bug, see Elliot's comment above. You can vote for it. I believe they'll patch this up in the next release.

edit : Sorry it seem they've closed the report so it must be fixed in .10. Forgot It's been a while

Last edited by fyd; 01-13-2011 at 02:50 AM..
Reply With Quote
  #9 (permalink)  
Old 01-13-2011, 07:39 AM
Moderator
 
Posts: 1,209
Default

None of the 6.0.10 upgrades nor fresh installs we have done have exhibited this bug. I'd say, at least for us, on 64-bit CentOS and SLES10/11, the bug is fixed in 6.0.10.

Hope that helps,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
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.