zimbra故障——Unable to determine enabled services from ldap

简介:

下午手机突然收到zimbra邮件系统停止运行,客户端页面无法打开。于是登录到邮件服务器:

[root@zcs ~]# su – zimbra

[zimbra@zcs ~]$ zmcontrol status 
Unable to determine enabled services from ldap. 
Unable to determine enabled services. Cache is out of date or doesn't exist.

查看日志:

[root@zcs log]# tail zimbra-stats.log 
Dec 15 13:24:07 cs zimbramon[22218]: 22218:info: 2011-12-15 13:24:01, STATUS: : Unable: to determine enabled services. Cache is out of date or doesn't exist. 
Dec 15 13:26:06 cs zimbramon[22588]: 22588:info: 2011-12-15 13:26:01, STATUS: : Unable: to determine enabled services. Cache is out of date or doesn't exist.

没有头绪,只能网上找答案,于是寻到了 http://blog.sina.com.cn/s/blog_483180590100zcsl.html

这哥们说zimbra的此种故障原因大致有4种: 
1.Zimbra文件的权限问题; 
Zimbra文件权限问题是导致此类现象出现的最常见问题,建议放在服务器排错的首位。 
2.DNS问题; 
如果ZCS本身配置了DNS服务,那么在服务器重启后亦可能导致此类现象出现。 
3.LDAP数据的问题; 
有关LDAP数据的问题较复杂,但通常是由DNS问题引起导致以上的报错。 
4.ZCS证书的问题; 
ZCS证书默认使用期限为一年,可能是ZCS证书过期或是ZCS证书文件损坏丢失导致Zimbra服务停止。

第一种和第四种情况直接排除,因为我的zcs一直运行很正常而且才上线三个月,所以排除权限和证书过期的因素。服务器没重启过,并且使用的是ISP的dns,所以大致猜测可能是短暂的网络问题导致zimbra没能够正确的解析域名。为了不影响使用,只好先重启zimbra了。

[zimbra@zcs ~]$ zmcontrol stop  
Host cs.chanjet.com 
        Stopping stats...Done. 
        Stopping mta...Done. 
        Stopping spell...Done. 
        Stopping snmp...Done. 
        Stopping cbpolicyd...Done. 
        Stopping archiving...Done. 
        Stopping antivirus...Done. 
        Stopping antispam...Done. 
        Stopping imapproxy...Done. 
        Stopping memcached...Done. 
        Stopping mailbox...Done. 
        Stopping logger...Done. 
        Stopping zmconfigd...Done. 
        Stopping ldap...Done. 
[zimbra@zcs ~]$ zmcontrol start 
Host cs.chanjet.com 
        Starting ldap...Done. 
        Starting zmconfigd...Done. 
        Starting logger...Done. 
        Starting mailbox...Done. 
        Starting memcached...Done. 
        Starting antispam...Done. 
        Starting antivirus...Done. 
        Starting snmp...Done. 
        Starting spell...Done. 
        Starting mta...Done. 
        Starting stats...Done. 
重启后zimbra正常运行。

再次提供一下别人的解决方法:

1.停止ZCS服务;修复Zimbra文件权限;启动ZCS服务; 
修复过程如下: 
#chown -R zimbra.zimbra /opt/zimbra 
#su - zimbra 
$/opt/zimbra/libexec/zmfixperms 
2.停止ZCS服务;纠正/etc/hosts,/etc/resolv.conf及区域配置文件,要求正常nslookkup服务器的A记录及MX记录;启动ZCS服务; 
建议将named服务配置好后加载到服务器启动项里。 
有关BIND的安装及DNS各文件配置方法详见本人的另外一帖http://opengeek.cn/thread-418-1-1.html。 
3.停止ZCS服务;修改LDAP的四个参数, 
$zmlocalconfig -e ldap_url=ldap://mail.domain.net:389 
$zmlocalconfig -e ldap_master_url=ldap://mail.domain.net:389 
$zmlocalconfig -e ldap_port=389 
$zmlocalconfig -e ldap_host=mail.domain.net 
如果提示cache文件过期或不存在,可以用touch在相应位置自行建立一个,最后启动ZCS服务; 
有关LDAP in ZCS的详情,请参看Wiki,http://wiki.zimbra.com/index.php?title=LDAP 
4.停止ZCS服务;重新签发ZCS证书;启动ZCS服务。





本文转自 baiying 51CTO博客,原文链接:http://blog.51cto.com/baiying/742675,如需转载请自行联系原作者
目录
相关文章
|
数据库
Symantec Backup Exec Agent 推送错误Error connecting to the remote computer. Ensure that the computer is available, has WMI enabled and is not blocked by a
如果在Symantec Backup Server上推送Symantec Backup Exec Agent到数据库服务器遇到“"Error connecting to the remote computer. Ensure that the computer is available, has WMI enabled and is not blocked by a firewall"这个错误, 如下截图所示     那么完全可以参考下面官方提供的三个解决方案解决问题,几次碰到这个问题,每次都要搜索一下,特此记录一下,方便以后查找。
1305 0
|
Apache 数据安全/隐私保护