Results 1 to 10 of 13

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

Hybrid View

  1. #1
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    2

    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 09:46 PM.

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

    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
    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    2

    Default

    Hi phoenix,

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

    Thanks

  4. #4
    Join Date
    Dec 2013
    Location
    San Diego
    Posts
    24
    Rep Power
    2

    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,587
    Rep Power
    58

    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
    Join Date
    Dec 2013
    Location
    San Diego
    Posts
    24
    Rep Power
    2

    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,587
    Rep Power
    58

    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.

  8. #8
    Join Date
    Nov 2013
    Posts
    78
    Rep Power
    2

    Default

    Quote Originally Posted by phoenix View Post
    So is the thing that actually fixes the problem.
    But not once does anyone explain WHY this problem continues to happen across versions.
    I am using 8.0.6 and when I restart a service after making some change, say to spam controls, then randomly, I get the permissions error somethings and not other times.

    Right now, I've used this comment in various combinations but my server remains permission denied. Sometimes it works, sometimes it doesn't so being curt with users having these problems doesn't seem to be helping anyone because the fix, doesn't always fix the problem.

    PS: The Permission Denied error seems to happen when the 'antivirus' service starts. Fixing the problem is completely random. Stop the services, fix the perms, go back to user zimbra, restart, errors still there. Over and over again. Sometimes restarting the entire server works, sometimes that doesn't work either.

    Totally random.

    Apr 24 11:08:51 uc amavis[24586]: SpamControl: init_pre_fork on SpamAssassin done
    Apr 24 11:08:51 uc amavis[24586]: extra modules loaded after daemonizing/chrooting: /opt/zimbra/zimbramon/lib/Net/libnet.cfg, Mail/SpamAssassin/Plugin/FreeMail.pm, Mail/SpamAssassin/Plugin/SpamC op.pm, Net/Cmd.pm, Net/Config.pm, Net/DNS/RR/OPT.pm, Net/SMTP.pm
    Apr 24 11:08:59 uc zmconfigd[23008]: Fetching All configs
    Apr 24 11:09:00 uc zmconfigd[23008]: All configs fetched in 0.33 seconds
    Apr 24 11:09:00 uc zmconfigd[23008]: Exception in bin/zmamavisdctl: (Cannot run program "/opt/zimbra/bin/zmamavisdctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:00 uc zmconfigd[23008]: Tracking service antispam
    Apr 24 11:09:00 uc zmconfigd[23008]: Watchdog: service antispam now available for watchdog.
    Apr 24 11:09:00 uc zmconfigd[23008]: Exception in bin/zmclamdctl: (Cannot run program "/opt/zimbra/bin/zmclamdctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:00 uc zmconfigd[23008]: Tracking service antivirus
    Apr 24 11:09:00 uc zmconfigd[23008]: Watchdog: service antivirus now available for watchdog.
    Apr 24 11:09:00 uc zmconfigd[23008]: Exception in bin/ldap: (Cannot run program "/opt/zimbra/bin/ldap" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:00 uc zmconfigd[23008]: Tracking service ldap
    Apr 24 11:09:00 uc zmconfigd[23008]: Watchdog: service ldap now available for watchdog.
    Apr 24 11:09:00 uc zmconfigd[23008]: Exception in bin/zmloggerctl: (Cannot run program "/opt/zimbra/bin/zmloggerctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:00 uc zmconfigd[23008]: Tracking service logger
    Apr 24 11:09:00 uc zmconfigd[23008]: Watchdog: service logger now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmstorectl: (Cannot run program "/opt/zimbra/bin/zmstorectl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service mailbox
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service mailbox now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmmailboxdctl: (Cannot run program "/opt/zimbra/bin/zmmailboxdctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service mailboxd
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service mailboxd now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmmtactl: (Cannot run program "/opt/zimbra/bin/zmmtactl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service mta
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service mta now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmopendkimctl: (Cannot run program "/opt/zimbra/bin/zmopendkimctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service opendkim
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service opendkim now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmsaslauthdctl: (Cannot run program "/opt/zimbra/bin/zmsaslauthdctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service sasl
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service sasl now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmswatchctl: (Cannot run program "/opt/zimbra/bin/zmswatchctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service snmp
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service snmp now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmspellctl: (Cannot run program "/opt/zimbra/bin/zmspellctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service spell
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service spell now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmstatctl: (Cannot run program "/opt/zimbra/bin/zmstatctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Tracking service stats
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service stats now available for watchdog.
    Apr 24 11:09:01 uc zmconfigd[23008]: Exception in bin/zmclamdctl: (Cannot run program "/opt/zimbra/bin/zmclamdctl" (in directory "/root"): error=13, Permission denied)
    Apr 24 11:09:01 uc zmconfigd[23008]: Watchdog: service antivirus status is OK.
    Apr 24 11:09:01 uc zmconfigd[23008]: All rewrite threads completed in 0.06 sec

    Just a while ago, I just made a change to my tag settings so restarted the spam control only to end up with the permissions error.
    I stopped the services, used the command, restarted, same problem, over and over I tried. Finally, I rebooted but same problem. Tried yet again a few times, then rebooted one more time and it finally cleared up

    What's the actual fix to PREVENT the problem to begin with?

    Mike
    Last edited by zim_mike; 04-24-2014 at 12:15 PM.

Similar Threads

  1. postdrop Permission denied errors
    By mrios in forum Administrators
    Replies: 3
    Last Post: 07-06-2013, 09:50 PM
  2. 7.2.0 and Permission denied + Fix
    By Tripple in forum Zimbra Success Stories
    Replies: 0
    Last Post: 05-29-2012, 01: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, 10: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
  •