Results 1 to 7 of 7

Thread: Permission Denied errors seen in /var/log/zimbra.log

  1. #1
    3ch00 is offline New Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    1

    Default Permission Denied errors seen in /var/log/zimbra.log

    Hi,

    The recently installed opensource version of zimbra is encountering errors in /var/log/zimbra.log. How do i solve this kind of errors??
    The log entries is below,

    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmclamdctl: (Cannot run program "/opt/zimbra/bin/zmclamdctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/ldap: (Cannot run program "/opt/zimbra/bin/ldap" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmloggerctl: (Cannot run program "/opt/zimbra/bin/zmloggerctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmstorectl: (Cannot run program "/opt/zimbra/bin/zmstorectl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmmailboxdctl: (Cannot run program "/opt/zimbra/bin/zmmailboxdctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmmemcachedctl: (Cannot run program "/opt/zimbra/bin/zmmemcachedctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmmtactl: (Cannot run program "/opt/zimbra/bin/zmmtactl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmopendkimctl: (Cannot run program "/opt/zimbra/bin/zmopendkimctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmsaslauthdctl: (Cannot run program "/opt/zimbra/bin/zmsaslauthdctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmswatchctl: (Cannot run program "/opt/zimbra/bin/zmswatchctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmspellctl: (Cannot run program "/opt/zimbra/bin/zmspellctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmstatctl: (Cannot run program "/opt/zimbra/bin/zmstatctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmclamdctl: (Cannot run program "/opt/zimbra/bin/zmclamdctl" (in directory "/root"): error=13, Permission denied)



    Errors in /opt/zimbra/log/zmconfig.log

    Exception in thread postconf:Exception in thread postconfd:Traceback (most recent call last):
    Traceback (most recent call last):
    File "/opt/zimbra/lib/jars/jython-2.5.2.jar/Lib/threading.py", line 179, in _Thread__bootstrap
    File "/opt/zimbra/lib/jars/jython-2.5.2.jar/Lib/threading.py", line 179, in _Thread__bootstrap
    self.run()
    self.run()
    File "/opt/zimbra/lib/jars/jython-2.5.2.jar/Lib/threading.py", line 170, in run
    File "/opt/zimbra/lib/jars/jython-2.5.2.jar/Lib/threading.py", line 170, in run
    self._target(*self._args, **self._kwargs)
    self._target(*self._args, **self._kwargs)
    File "/opt/zimbra/zimbramon/pylibs/state.py", line 585, in doPostconf
    File "/opt/zimbra/zimbramon/pylibs/state.py", line 597, in doPostconfd
    return rc
    return rc
    UnboundLocalError: local variable 'rc' referenced before assignment
    UnboundLocalError: local variable 'rc' referenced before assignment



    The zimbra version is:
    Release 8.0.5_GA_5839.RHEL6_64_20130910123908 RHEL6_64 FOSS edition
    Last edited by 3ch00; 10-11-2013 at 08:46 PM.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Did you read any of the forum threads on this topic and thry the solutions mentioned?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    3ch00 is offline New Member
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    1

    Default

    Hi phoenix,

    The /opt/zimbra/libexec/zmfixperms --extended --verbose solved the permission errors.

    Thanks

  4. #4
    sdproit is offline Junior Member
    Join Date
    Dec 2013
    Location
    San Diego
    Posts
    7
    Rep Power
    1

    Default

    Your log is precisely explaining why you are having permission errors. I bold highlighted the reasons below. Zimbra user does not have permission to write/exec in /root.
    su zimbra
    cd ~zimbra
    zmcontrol stop/start


    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmclamdctl: (Cannot run program "/opt/zimbra/bin/zmclamdctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/ldap: (Cannot run program "/opt/zimbra/bin/ldap" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmloggerctl: (Cannot run program "/opt/zimbra/bin/zmloggerctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmstorectl: (Cannot run program "/opt/zimbra/bin/zmstorectl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmmailboxdctl: (Cannot run program "/opt/zimbra/bin/zmmailboxdctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmmemcachedctl: (Cannot run program "/opt/zimbra/bin/zmmemcachedctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmmtactl: (Cannot run program "/opt/zimbra/bin/zmmtactl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmopendkimctl: (Cannot run program "/opt/zimbra/bin/zmopendkimctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmsaslauthdctl: (Cannot run program "/opt/zimbra/bin/zmsaslauthdctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmswatchctl: (Cannot run program "/opt/zimbra/bin/zmswatchctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmspellctl: (Cannot run program "/opt/zimbra/bin/zmspellctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmstatctl: (Cannot run program "/opt/zimbra/bin/zmstatctl" (in directory "/root"): error=13, Permission denied)
    Oct 12 09:49:27 mail zmconfigd[20070]: Exception in bin/zmclamdctl: (Cannot run program "/opt/zimbra/bin/zmclamdctl" (in directory "/root"): error=13, Permission denied)

    While here, let me give kudos to all the devs for creating a very robust and useful mail server/email solution.

    T - sdproit
    Last edited by sdproit; 12-14-2013 at 03:43 AM.

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by sdproit View Post
    Your log is precisely explaining why you are having permission errors. I bold highlighted the reasons below. Zimbra user does not have permission to write/exec in /root.
    You'll notice from the post above yours that the solution was to run zmfixperms.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    sdproit is offline Junior Member
    Join Date
    Dec 2013
    Location
    San Diego
    Posts
    7
    Rep Power
    1

    Default

    I saw the previous post and walked away from it... quickly.

    Reminds me of the time a peer I was working with went into fit. He starts yelling and kicking, calling me over to his desk. He says, for the life of me, I can't unmount this directory. To me it was obvious as soon as I saw his term, to him not quite so. I asked, where would you go if you could actually do that? He looked at me puzzled and I told him to go home. He said, you cant make me go home! I just peered at him, then his monitor. His head bowed, he went /home and succeeded unmounting the directory .

    Point of the story is, the obvious is always the first place we should look. Logs are obvious.

    T

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by sdproit View Post
    Logs are obvious.
    So is the thing that actually fixes the problem.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. postdrop Permission denied errors
    By mrios in forum Administrators
    Replies: 3
    Last Post: 07-06-2013, 08:50 PM
  2. 7.2.0 and Permission denied + Fix
    By Tripple in forum Zimbra Success Stories
    Replies: 0
    Last Post: 05-29-2012, 12:22 PM
  3. Replies: 1
    Last Post: 03-07-2012, 07:36 AM
  4. Permission Denied for copying Zimbra directory
    By bhwong in forum Administrators
    Replies: 0
    Last Post: 08-27-2010, 09:42 PM
  5. Replies: 0
    Last Post: 02-01-2010, 07:02 AM

Tags for this Thread

Posting Permissions

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