Results 1 to 10 of 10

Thread: /opt/zimbra/zmstat/ wrong permissions

  1. #1
    hupp is offline Intermediate Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    6

    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.

  2. #2
    hupp is offline Intermediate Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    6

    Default

    Witch process generats the directorys under /opt/zimbra/zmstat/?

  3. #3
    maumar is offline Elite Member
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    339
    Rep Power
    8

    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

  4. #4
    maumar is offline Elite Member
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    339
    Rep Power
    8

    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.

  5. #5
    hupp is offline Intermediate Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    6

    Default

    my setup is just one server. I use
    Release 6.0.6_GA_2330.DEBIAN5 DEBIAN5 FOSS edition.
    Maybe the problem starts when I upgraded from 5.x

  6. #6
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,366
    Rep Power
    10

    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

  7. #7
    maumar is offline Elite Member
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    339
    Rep Power
    8

    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

  8. #8
    maumar is offline Elite Member
    Join Date
    Mar 2007
    Location
    Small village in the center of Italy
    Posts
    339
    Rep Power
    8

  9. #9
    bhwong is offline Elite Member
    Join Date
    Feb 2009
    Location
    Singapore
    Posts
    489
    Rep Power
    6

    Default

    Thanks Mark for the solution!

  10. #10
    bhwong is offline Elite Member
    Join Date
    Feb 2009
    Location
    Singapore
    Posts
    489
    Rep Power
    6

    Default

    Beside wrong permissions and swap storage (STATS service stopped and cannot run), what else could stop stats from restarting?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 9
    Last Post: 10-25-2009, 08:20 AM
  2. Upgrade And Move ZCS
    By LiMz in forum Installation
    Replies: 15
    Last Post: 09-01-2009, 01:33 AM
  3. dns in multi server
    By vikjava in forum Installation
    Replies: 17
    Last Post: 04-03-2009, 12:45 AM
  4. Permissions strangeness on shared calendars
    By gkra in forum Administrators
    Replies: 0
    Last Post: 10-17-2008, 09:50 AM
  5. MTA is Dying after yum update
    By tonyawbrey in forum Administrators
    Replies: 27
    Last Post: 04-02-2006, 06:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •