3

So i tried adding rt-mailgate in zimbra using the following tutorial http://muru-techsolution.blogspot.co.ke/2015/03/install-rt-mailgate-in-zimbra.html .but now when i try to restart zimbra services i get the following error:

/opt/zimbra/bin/zmcontrol start
 Host localhost
 Unable to determine enabled services from ldap.
 Enabled services read from cache. Service list may be inaccurate.
     Starting ldap...Done.
 Failed.
 ldap_url and ldap_master_url cannot be the same on an ldap replica

Am running the following version of zimbra:

Release 8.0.7_GA_6021.RHEL6_64_20140408123911 RHEL6_64 FOSS edition.

On linux version:

Linux x.domain.com 2.6.32-573.3.1.el6.x86_64 #1 SMP Thu Aug 13 22:55:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Anyone come across the same issue?

hackitect
  • 141
  • 1
  • 8

2 Answers2

2

It seems to be a permissions related issue. In general, this occurs after you changed some configurations as root user, instead of doing it as zimbra user.

To fix it, please do the following:

. As root, run: /opt/zimbra/libexec/zmfixperms

. restart your zimbra service: service zimbra restart

Hope this helps you.

Erick Sperandio
  • 198
  • 2
  • 14
  • Hi Erick, it was really a permissions issue. I inadvertently run the "zmlocalconfig" command as root user instead of zimbra user. This overwrote the localconfig.xml file. I was then able to locate a backup copy of the file and the zimbra services restarted successfully. Also the integration with rt-mailgate worked, after i ranthe command again but as zimbra user. Thanks. – hackitect Sep 14 '16 at 05:52
  • Ok, if you don't mind, please accept the answer as the solution to your problem, so others will benefit from the information. – Erick Sperandio Sep 15 '16 at 12:34
1

In our case, /opt/zimbra/conf/localconfig.xml got mostly empty and that was causing the error. Restoring it from backup fixed the problem.

Matija Nalis
  • 678
  • 1
  • 17
  • 30
  • just fried a whole server when our baseline config uninstalled resolvconf (since, unfortunately this is an ubuntu host, it via dependencies uninstalled almost the whole zimbra install..), your reply saved me. – Florian Heigl Aug 21 '22 at 20:30