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 07-12-2010, 06:20 AM
Intermediate Member
 
Posts: 15
Default /opt/zimbra/zmstat/ wrong permissions

Hi,

i Have wrong permessions in my Folders under /opt/zimbra/zmstat/.

The daily folder is owned by root and so i get error messages in /opt/zimbra/log/mailbox.log

If i change the owner to zimbra:zimbra I no longer get the error.

Why the system doesn´t create the folder with the correct rights?

Thanks for your Help.
Reply With Quote
  #2 (permalink)  
Old 07-13-2010, 12:16 AM
Intermediate Member
 
Posts: 15
Default

Witch process generats the directorys under /opt/zimbra/zmstat/?
Reply With Quote
  #3 (permalink)  
Old 07-13-2010, 12:32 AM
Elite Member
 
Posts: 296
Default

I have the same issue, too.
We should file a bug on bugzilla, if none of zimbra reply to this thread
as always, -> imho
Reply With Quote
  #4 (permalink)  
Old 07-13-2010, 12:42 AM
Elite Member
 
Posts: 296
Default

i would add some info to help diagnosys

thsi is a slave server
Code:
Release 6.0.6_GA_2331.RHEL4_20100505170712 CentOS4 NETWORK edition.
the master has no issue regarding to owner of newly created dirs under /opt/zimbra/stats

all stats stopped at 7 July

Code:
drwxr-x---   2 root   root       4096  8 lug 00:00 2010-07-07
drwxr-x---   2 root   root       4096  9 lug 00:00 2010-07-08
drwxr-x---   2 root   root       4096 10 lug 00:00 2010-07-09
drwxr-x---   2 root   root       4096 11 lug 00:00 2010-07-10
drwxr-x---   2 root   root       4096 12 lug 00:00 2010-07-11
drwxr-x---   2 root   root       4096 13 lug 00:00 2010-07-12
-rwxrwxrwx   1 zimbra zimbra 24977077 28 giu 23:59 allprocs.csv
-rwxrwxrwx   1 zimbra zimbra   158597 28 giu 23:59 convertd.csv
-rwxrwxrwx   1 zimbra zimbra   582064 28 giu 23:59 cpu.csv
-rwxrwxrwx   1 zimbra zimbra    67307 28 giu 23:50 df.csv
-rw-r-----   1 zimbra zimbra    36391 13 lug 09:27 fd.csv
-rwxrwxrwx   1 zimbra zimbra   229413  7 lug 23:59 imap.csv
-rwxrwxrwx   1 zimbra zimbra  1238766 28 giu 23:59 io.csv
-rwxrwxrwx   1 zimbra zimbra  3140840 28 giu 23:59 io-x.csv
-rwxrwxrwx   1 zimbra zimbra   424554  7 lug 23:59 mailboxd.csv
-rwxrwxrwx   1 zimbra zimbra    74797 28 giu 23:59 mtaqueue.csv
-rwxrwxrwx   1 zimbra zimbra  2579604 28 giu 23:59 mysql.csv
drwxrwxrwx   2 zimbra zimbra     4096 30 giu 14:08 pid
-rwxrwxrwx   1 zimbra zimbra      101 17 giu 02:44 pop3.csv
-rwxrwxrwx   1 zimbra zimbra   904500 28 giu 23:59 proc.csv
-rwxrwxrwx   1 zimbra zimbra    48636  7 lug 23:59 soap.csv
-rwxrwxrwx   1 zimbra zimbra    45973  7 lug 23:59 threads.csv
-rwxrwxrwx   1 zimbra zimbra   878185 28 giu 23:59 vm.csv
-rwxrwxrwx   1 zimbra zimbra        0  1 lug 04:02 zmstat.out
-rwxrwxrwx   1 zimbra zimbra      392  1 lug 04:02 zmstat.out.1.gz
-rwxrwxrwx   1 zimbra zimbra      356 29 giu 04:02 zmstat.out.2.gz
-rwxrwxrwx   1 zimbra zimbra      168 28 giu 04:02 zmstat.out.3.gz
-rwxrwxrwx   1 zimbra zimbra       70 26 giu 04:02 zmstat.out.4.gz
-rwxrwxrwx   1 zimbra zimbra       73 25 giu 04:02 zmstat.out.5.gz
-rwxrwxrwx   1 zimbra zimbra      182 24 giu 04:02 zmstat.out.6.gz
-rwxrwxrwx   1 zimbra zimbra      198 23 giu 04:02 zmstat.out.7.gz

Last edited by maumar; 07-13-2010 at 12:52 AM..
Reply With Quote
  #5 (permalink)  
Old 07-13-2010, 12:49 AM
Intermediate Member
 
Posts: 15
Default

my setup is just one server. I use
Quote:
Release 6.0.6_GA_2330.DEBIAN5 DEBIAN5 FOSS edition.
Maybe the problem starts when I upgraded from 5.x
Reply With Quote
  #6 (permalink)  
Old 07-14-2010, 09:35 AM
Moderator
 
Posts: 1,209
Default

This problem is a known issue, unfortunately.

The "cure" is to change the ownership of the dated folder and their contents and then restart Zimbra stats.

As root:
Code:
chown -R zimbra.zimbra /opt/zimbra/zmstat/2010-*
Then, as the zimbra user:
Code:
zmstatctl stop; zmstatctl start; zmstatctl status; zmcontrol status
If the output from everything above looks good, then in a few minutes all the red "X"s in the Admin Console should change to blue checkmarks.

Note that you will need to redo this periodically, after Zimbra starts applying the wrong ownership to the newly created dated stats folders.

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
  #7 (permalink)  
Old 07-14-2010, 10:14 AM
Elite Member
 
Posts: 296
Default

thnx for hlep, but this is all what i did; what i would do is to help someone @zimbra to fix it...
so, i think it needs to file a bug on bugzilla
Reply With Quote
  #8 (permalink)  
Old 07-14-2010, 10:44 AM
Elite Member
 
Posts: 296
Default

Bug 48944 – /opt/zimbra/zmstat/ wrong permissions
Reply With Quote
  #9 (permalink)  
Old 09-27-2010, 12:16 AM
Elite Member
 
Posts: 377
Default

Thanks Mark for the solution!
Reply With Quote
  #10 (permalink)  
Old 06-01-2011, 07:23 PM
Elite Member
 
Posts: 377
Default

Beside wrong permissions and swap storage (STATS service stopped and cannot run), what else could stop stats from restarting?
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.