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-31-2011, 06:53 PM
Elite Member
 
Posts: 377
Default Stats stop reason?

Our Zimbra Server stats services used to keep stopping every few days in the past. We resolve it temporary by restarting the services:

zmcontrol stop
zmcontrol start

At one time, restarting the service could not get it running again and it was found that wrong permission caused it: Stats keep stopping

The weird thing is why is the wrong permission suddenly happen when we did not do any permission amendment?

Yesterday, our stats got stopped again. I search the forum and found that swap storage may cause this: STATS service stopped and cannot run

Is this normal?

btw, is it possible to restart just the stats service without having to stop all the services? This is to minimize affecting our users even if it's just a short downtime.
Reply With Quote
  #2 (permalink)  
Old 06-01-2011, 01:06 AM
Advanced Member
 
Posts: 192
Default

Not much help, but I've given up on stats in our 6 server ZCS6 deployment. It will die sooner or later, no matter what you do (I've tried, really).

Otherwise, I'm a perfectly happy ZCS admin by the way
Reply With Quote
  #3 (permalink)  
Old 06-01-2011, 09:07 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by bhwong View Post
btw, is it possible to restart just the stats service without having to stop all the services? This is to minimize affecting our users even if it's just a short downtime.
su - zimbra ; zmstatctl stop/start
Reply With Quote
  #4 (permalink)  
Old 06-01-2011, 07:21 PM
Elite Member
 
Posts: 377
Default

Thanks fyd. However, I can't restart stats service this time...again. And it's not permission or swap storage issue. What could be the problem this time? Do I have to restart the whole server just to get it up?

Maybe I should just give up on this like Hivos did.
Reply With Quote
  #5 (permalink)  
Old 06-02-2011, 12:04 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by bhwong View Post
Thanks fyd. However, I can't restart stats service this time...again. And it's not permission or swap storage issue. What could be the problem this time? Do I have to restart the whole server just to get it up?

Maybe I should just give up on this like Hivos did.
I think you shouldn't restart the whole server but look into what could be the problem with stats. Did you find anything in mailbox.log, or zimbra.log when the restart is done?
Reply With Quote
  #6 (permalink)  
Old 06-02-2011, 08:44 PM
Elite Member
 
Posts: 377
Default

Here's the log from Zimbra.log just minutes before the stats is stopped:

May 31 23:59:13 zimbra postfix/smtpd[11861]: warning: 118.68.159.134: hostname adsl-dynamic-pool-xxx.hcm.fpt.vn verification failed: Name or service not known
May 31 23:59:13 zimbra postfix/smtpd[11861]: connect from unknown[118.68.159.134]
May 31 23:59:15 zimbra postfix/smtpd[11861]: NOQUEUE: reject: RCPT from unknown[118.68.159.134]: 554 5.7.1 Service unavailable; Client host [118.68.159.134] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=118.68.159.134; from=<boomqi267@remni-avtovoz.ru> to=<biopolis3@crescendas.sg> proto=ESMTP helo=<dynamic-pool-xxx.hcm.fpt.vn>
May 31 23:59:21 zimbra postfix/smtpd[11861]: lost connection after DATA from unknown[118.68.159.134]
May 31 23:59:21 zimbra postfix/smtpd[11861]: disconnect from unknown[118.68.159.134]
May 31 23:59:49 zimbra postfix/smtpd[11861]: warning: 118.68.159.134: hostname adsl-dynamic-pool-xxx.hcm.fpt.vn verification failed: Name or service not known
May 31 23:59:49 zimbra postfix/smtpd[11861]: connect from unknown[118.68.159.134]
May 31 23:59:49 zimbra postfix/smtpd[11861]: NOQUEUE: reject: RCPT from unknown[118.68.159.134]: 554 5.7.1 Service unavailable; Client host [118.68.159.134] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=118.68.159.134; from=<crabbiestn941@tisasoft.ru> to=<biopolis3@crescendas.sg> proto=ESMTP helo=<dynamic-pool-xxx.hcm.fpt.vn>
May 31 23:59:50 zimbra postfix/smtpd[11861]: lost connection after DATA from unknown[118.68.159.134]
May 31 23:59:50 zimbra postfix/smtpd[11861]: disconnect from unknown[118.68.159.134]
Jun 1 00:00:02 zimbra zimbramon[17074]: 17074:info: 2011-06-01 00:00:01, QUEUE: 44 7
Jun 1 00:00:07 zimbra zmmailboxdmgr[18036]: status requested
Jun 1 00:00:07 zimbra zmmailboxdmgr[18036]: status OK
Jun 1 00:00:19 zimbra zimbramon[3603]: 3603:err: Service status change: zimbra.dc1.crescendas.com stats changed from running to stopped
Reply With Quote
  #7 (permalink)  
Old 06-02-2011, 08:55 PM
Elite Member
 
Posts: 377
Default

zmstat.out is filled with:

Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.

and:

sh: /opt/zimbra/zmstat//2011-05-31/xxx.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/xxx.csv to /opt/zimbra/zmstat//2011-05-31/xxx.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
Reply With Quote
  #8 (permalink)  
Old 06-02-2011, 09:07 PM
Elite Member
 
Posts: 377
Default

Ok, problem solved. It's permission issue again: /opt/zimbra/zmstat/ wrong permissions

I notice 2011-05-31 and all June folders are having root:root instead of Zimbra:Zimbra permission.

I can start stats after typing this command as root:

chown -R zimbra.zimbra /opt/zimbra/zmstat/2010-*
Reply With Quote
  #9 (permalink)  
Old 06-03-2011, 01:31 AM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Quote:
Originally Posted by bhwong View Post
zmstat.out is filled with:

Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.

and:

sh: /opt/zimbra/zmstat//2011-05-31/xxx.csv.gz: Permission denied
Unable to move /opt/zimbra/zmstat/xxx.csv to /opt/zimbra/zmstat//2011-05-31/xxx.csv.gz at /opt/zimbra/zimbramon/lib/Zimbra/Mon/Zmstat.pm line 256.
Good find bhwong!!
Reply With Quote
  #10 (permalink)  
Old 06-05-2011, 07:10 PM
Elite Member
 
Posts: 377
Default

Our stats stop running again! This time, I found out that zmstat-fd-real.pid is owned by root:root under /opt/zimbra/zmstat/pid and despite changing ownership to zimbra:zimbra, whenever I execute zmstatctl start, it will automatically changed back to root:root! So frustrating!

zmstatctl status reveal this:

process xxxx in /opt/zimbra/zmstat/pid/zmstat-df.pid not running.

btw, heard that this bug is resolved in version 6.0.7. Anyone can verify this?
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.