Jun 14

Unable to determine enabled services from ldap

ZImbra Comments Off on Unable to determine enabled services from ldap

I just want to sharing, my zimbra went off today and when i start the zimbra i got this error

# su zimbra

$ zmcontrol start
Host mail.test.org
Starting ldap…Done.
Unable to determine enabled services from ldap.
Unable to determine enabled services. Cache is out of date or doesn’t exist.

Solution :

Please check ur resolv.conf and host file . If still problem persist please stop the zimbra service by zmcontrol stop (as zimbra user)
As a root user issue following two commands.
1) chown -R zimbra:zimbra /opt/zimbra
2) /opt/zimbra/libexec/zmfixperms -verbose

# su zimbra

$ zmcontrol stop
Host mail.test.org
Stopping stats…Done
Stopping mta…Done
Stopping spell…Done
Stopping snmp…Done
Stopping archiving…Done
Stopping antivirus…Done
Stopping antispam…Done
Stopping imapproxy…Done
Stopping mailbox…Done
Stopping logger…Done
Stopping ldap…Done
$ zmcontrol start
Host mail.test.org
Starting ldap…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting antispam…Done.
Starting antivirus…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.

May 26

zmclamdctl is not running on zimbra 5.0.6_GA_2313.UBUNTU6

ZImbra Comments Off on zmclamdctl is not running on zimbra 5.0.6_GA_2313.UBUNTU6

$ zmcontrol status
Host mail.test.com
antispam                Running
antivirus               Stopped
amavisd running pid: 16264
zmclamdctl is not running
imapproxy               Running
ldap                    Running
logger                  Running
mailbox                 Running
mta                     Running
snmp                    Running
spell                   Running
stats                   Running
# tail /opt/zimbra/log/clamd.log
LibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see  www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)
LibClamAV Error: Problem parsing database at line 741
LibClamAV Error: Can’t load daily.ndb: Malformed database
LibClamAV Error: cli_tgzload: Invalid size in header
LibClamAV Error: Can’t load /opt/zimbra/data/clamav/db/daily.cld: Malformed database
Wed May 26 12:28:31 2010 -> ERROR: Malformed database
ERROR: Malformed database

solution :
# cd /opt/zimbra
# wget http://files2.zimbra.com/downloads/clamav/ubuntu8/clamav-0.95.1.tgz
# tar xf clamav-0.95.1.tgz
# su zimbra
$ zmcontrol stop
$ exit
# rm clamav
# ln -s clamav-0.95.1 clamav
# ls -l clamav
lrwxrwxrwx  1 root root 16 Apr 9 12:39 clamav -> /opt/zimbra/clamav-0.95.1
# su zimbra
$ zmcontrol start
Host mail.test.com
Starting ldap…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting imapproxy…Done.
Starting antispam…Done.
Starting antivirus…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.
$ zmcontrol status
Host mail.test.com
antispam                Running
antivirus               Running
imapproxy               Running
ldap                    Running
logger                  Running
mailbox                 Running
mta                     Running
snmp                    Running
spell                   Running
stats                   Running

$ /opt/zimbra/clamav/bin/clamscan -d /opt/zimbra/data/clamav/db/
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON’T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
/opt/zimbra/.bashrc: OK
/opt/zimbra/config.2172: OK
/opt/zimbra/.bash_history: OK
/opt/zimbra/.exrc: OK
/opt/zimbra/.install_history: OK
/opt/zimbra/.viminfo: Empty file
/opt/zimbra/clamav-0.95.1.tgz: OK
/opt/zimbra/.bash_profile: OK
/opt/zimbra/.ldaprc: OK

———– SCAN SUMMARY ———–
Known viruses: 787197
Engine version: 0.95.1-broken-compiler
Scanned directories: 1
Scanned files: 8
Infected files: 0
Data scanned: 72.13 MB
Data read: 22.15 MB (ratio 3.26:1)
Time: 36.798 sec (0 m 36 s)b