Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack (1) Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2007, 03:43 PM
Junior Member
 
Posts: 5
Default zmclamdctl is not running after upgrade

We have recently upgraded zcs-4.5.3_GA_733.RHEL4 to zcs-4.5.5_GA_838.RHEL4 OpenSource edition on Centos4.4, previously had no problems.

After the upgrade ClamAv stopps working and I see
Code:
ClamAV-clamd: Can't connect to INET socket 127.0.0.1:3310: Connection refused
ClamAv appears to start normally, even when started zmclamdctl individually

Code:
zmcontrol start
Host zimbra
        Starting ldap...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
but zmcontrol status shows otherwise:

Code:
zmcontrol status
Host zimbra
        antispam                Running
        antivirus               Stopped
                zmclamdctl is not running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        mta                     Running
        snmp                    Running
        spell                   Running
when restarting the clamd log ends at
Code:
Tue May 15 20:50:28 2007 -> +++ Started at Tue May 15 20:50:28 2007
Tue May 15 20:50:29 2007 -> clamd daemon 0.90.2 (OS: linux-gnu, ARCH: i386, CPU: i686)
Tue May 15 20:50:29 2007 -> Log file size limited to 20971520 bytes.
Tue May 15 20:50:29 2007 -> Reading databases from /opt/zimbra/clamav/db
A server reboot seems to clear this and the ClamAV starts normally.
Hope someone can help.
Thanks in Advance.
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 09:46 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

What happens if you run

zmclamdctl start

Does it stay running?
Reply With Quote
  #3 (permalink)  
Old 05-16-2007, 01:51 AM
Junior Member
 
Posts: 5
Default

nope:

Code:
 [zimbra@zimbra ~]$ zmclamdctl start
[zimbra@zimbra ~]$ zmcontrol status
Host zimbra
        antispam                Running
        antivirus               Stopped
                zmclamdctl is not running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        mta                     Running
        snmp                    Running
        spell                   Running
Annoyingly, a server reboot usually allows the zmclamdctl to start, but sometimes it doesn't.
Reply With Quote
  #4 (permalink)  
Old 06-14-2007, 06:50 AM
Senior Member
 
Posts: 64
Default

darren , could you post the content of /opt/zimbra/clamaav/db ..i had a similar problem ..
Reply With Quote
  #5 (permalink)  
Old 06-14-2007, 11:10 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

I've seen this as on mac and rhel. The clamav engine doesn't want to start up right away. After a while, it seems to resolve it self, and doesn't appear to affect the delivery of mail.

Because it seems to resovle itself, I haven't been able to file a bug to repo

If you get anything, please, file a bug.
Reply With Quote
  #6 (permalink)  
Old 06-16-2007, 07:14 AM
Junior Member
 
Posts: 5
Default

my /opt/zimbra/clamav/db
contains:
-rwxr-xr-x 1 zimbra zimbra 200881 May 15 19:27 daily.cvd
-rwxr-xr-x 1 zimbra zimbra 200881 May 4 01:59 daily.cvd.init
-rwxr-xr-x 1 zimbra zimbra 2014018 May 4 01:59 main.cvd.init


Quote:
I've seen this as on mac and rhel. The clamav engine doesn't want to start up right away. After a while, it seems to resolve it self, and doesn't appear to affect the delivery of mail.

Because it seems to resovle itself, I haven't been able to file a bug to repo

If you get anything, please, file a bug.
This does sound like the same error. Eventually the clamav restarts itself and then deferred mail can be delivered.
Reply With Quote
  #7 (permalink)  
Old 09-05-2007, 07:34 AM
Member
 
Posts: 11
Default Still an issue after 4.5>5beta3 upgrade

FYI, this issue remains after 4.5>5beta3 upgrade.
Reply With Quote
  #8 (permalink)  
Old 09-05-2007, 09:34 AM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

yup I spent an hour trying to debug this the other day. if you start the clamd by hand as zimbra user, independent of zimbra (ie with zimbra stopped), it works fine and binds to the port after a short startup delay. if started using zmclamdctl(/zmamavisdctl) then it refuses to bind to the port. this is the same even if you specify the ip/port. strace shows the port binding but it doesn't respond.

i gave up and downloaded the latest clamav source (0.91.2 or something, quite a bit newer than the existing version) and compiled and installed as thus:
./configure --prefix=/opt/zimbra/clamav --with-user=zimbra --with-group=zimbra --with-dbdir=/opt/zimbra/clamav/db --enable-debug && make && make install

works perfectly since then.
Reply With Quote
  #9 (permalink)  
Old 09-05-2007, 09:40 AM
Member
 
Posts: 11
Default

I forgot to mention, that altough the status says 'not running', it seems to run fine:

zimbra@goldorak:~$ zmcontrol status
Host goldorak.lan.vanginderachter.be
antispam Running
antivirus Stopped
zmclamdctl is not running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running

ps x -u zimbra
...
17467 ? Ss 0:00 /opt/zimbra/clamav/bin/freshclam --config-file=/opt/zimbra/conf/freshclam.conf -d --checks=12
17468 ? Rs 0:01 /opt/zimbra/clamav/sbin/clamd --config-file /opt/zimbra/conf/clamd.conf
...
__________________
Serge van Ginderachter
Ginsys
Reply With Quote
  #10 (permalink)  
Old 09-05-2007, 10:25 AM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Quote:
Originally Posted by vginders View Post
I forgot to mention, that altough the status says 'not running', it seems to run fine:

zimbra@goldorak:~$ zmcontrol status
Host goldorak.lan.vanginderachter.be
antispam Running
antivirus Stopped
zmclamdctl is not running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running

ps x -u zimbra
...
17467 ? Ss 0:00 /opt/zimbra/clamav/bin/freshclam --config-file=/opt/zimbra/conf/freshclam.conf -d --checks=12
17468 ? Rs 0:01 /opt/zimbra/clamav/sbin/clamd --config-file /opt/zimbra/conf/clamd.conf
...
Yeah, there's a problem with our watchdog process.
There are two results of that issue:
1) Watchdog doesn't think clamav is running. It really is, but is just loading virus definitions. Because Zimbra doesn't think it's running, it reloads clam. This isn't what's happening here, but can happen. This is fixed in 4.5.7
2) Our watchdog just isn't seeing it quite yet, but delivery should take place. That's what I think is happening here.

john
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0