clamd after upgrade to 0.83

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default clamd after upgrade to 0.83

    After doing a portupgrade of clamd from 0.81 to 0.83, the service reports
    that it is not running using 'clamav-clamd.sh status'.

    esmtp# cd /usr/local/etc
    esmtp# rc.d/clamav-clamd.sh status
    clamav_clamd is not running.
    esmtp# ps -ax|grep clam
    781 ?? Ss 0:10.96 /usr/local/sbin/clamd

    However, all seems to be fine, postfix 2.1.5, amavisd-new and clamd all
    seem to be running and Webmin reports them all as running.

    Any thoughts or something I should know regarding the upgrading? I checked
    /usr/ports/UPDATING, but nothing regarding this. All conf files are
    reflecting the new settings.

    --
    Robert

    Robert Fitzpatrick Guest

  2. Similar Questions and Discussions

    1. CF 5 to 6.1 upgrade
      I have delayed upgrading from CF 5 to CF 6.1 for 2 years because when I do the response for cf pages is at least 3 times slower with cf 6.1. I have...
    2. How to upgrade ASP.NET 1.0 to ASP.NET 1.1
      Does anyone know how to upgrade from ASP.NET 1.0 to ASP.NET 1.1 Regards Robin
    3. Better to upgrade
      On our UNIX and BSD working stations, we are still using Perl 5.6. I'm trying to get the IT department to upgrade to 5.8 or even 5.9 if that is...
    4. Can you upgrade using a previous version upgrade disk?
      When upgrading to PS 7, can I use the previous version 5 upgrade media for product verification or do I need the original full version disk - which,...
    5. Upgrade to VM
      I keep getting error msg that I need a new version of virtual machine. However I am lost as to what I REALLY need to add to my system to view these...
  3. #2

    Default Re: clamd after upgrade to 0.83

    I do not have anything in /var/run/clamav and that is the location in
    clamd.conf for placing the PID file. I cannot connect to the localhost as
    well:

    esmtp# telnet localhost 3310
    Trying ::1...
    telnet: connect to address ::1: Connection refused
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host

    However, according to the clamd.log, clamav is intercepting viruses. Do you
    think it is working and why would I not be able to connect via telnet or
    view the pid file if it is?

    --
    Robert


    --On Wednesday, February 23, 2005 8:35 PM +0100 "Daniel S. Haischt"
    <me@daniel.stefan.haischt.name> wrote:
    > Usually if you are running ClamAV in UNI domain socket mode,
    > there should be a UNIX domain socket called 'clamd' in ...
    >
    > -> /var/run/clamav
    >
    > Tho - this file can be configured in /usr/local/etc/clamd.conf.
    >
    > If ClamAv is running in TCP/IP mode it should be possible to
    > test whether the server is responding by connecting to its
    > TCP/IP port using a telnet client ...
    >
    > -> telnet localhost 3310
    >
    > Robert Fitzpatrick schrieb:
    >> After doing a portupgrade of clamd from 0.81 to 0.83, the service
    >> reports that it is not running using 'clamav-clamd.sh status'.
    >>
    >> esmtp# cd /usr/local/etc
    >> esmtp# rc.d/clamav-clamd.sh status
    >> clamav_clamd is not running.
    >> esmtp# ps -ax|grep clam
    >> 781 ?? Ss 0:10.96 /usr/local/sbin/clamd
    >>
    >> However, all seems to be fine, postfix 2.1.5, amavisd-new and clamd all
    >> seem to be running and Webmin reports them all as running.
    >>
    >> Any thoughts or something I should know regarding the upgrading? I
    >> checked /usr/ports/UPDATING, but nothing regarding this. All conf files
    >> are reflecting the new settings.
    >>
    >> --
    >> Robert
    >>
    >> _______________________________________________
    >> [email]freebsd-questions@freebsd.org[/email] mailing list
    >> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    >> To unsubscribe, send any mail to
    >> "freebsd-questions-unsubscribe@freebsd.org"



    Robert Fitzpatrick Guest

  4. #3

    Default Re: clamd after upgrade to 0.83

    Robert Fitzpatrick wrote:
    > After doing a portupgrade of clamd from 0.81 to 0.83, the service
    > reports that it is not running using 'clamav-clamd.sh status'.
    >
    > esmtp# cd /usr/local/etc
    > esmtp# rc.d/clamav-clamd.sh status
    > clamav_clamd is not running.
    > esmtp# ps -ax|grep clam
    > 781 ?? Ss 0:10.96 /usr/local/sbin/clamd
    >
    > However, all seems to be fine, postfix 2.1.5, amavisd-new and clamd all
    > seem to be running and Webmin reports them all as running.
    >
    > Any thoughts or something I should know regarding the upgrading? I
    > checked /usr/ports/UPDATING, but nothing regarding this. All conf files
    > are reflecting the new settings.
    >
    Check access on the relevant directories. By default, clamav runs as
    user 'clamav' but amavisd runs as user 'vscan' so the directories where
    the pid, socket AND virus database all need to be reconciled to
    whichever user you run these as. I use 'vscan' so I pass the CLAMAVUSER
    and CLAMAVGROUP this value when I 'make install' clamav initially. Then,
    I add these to /usr/local/etc/pkgtools.conf so that the next portupgrade
    doesn't undo it.

    Hope that helps,

    G
    greg@grokking.org Guest

  5. #4

    Default Re: clamd after upgrade to 0.83

    Thanks, that explains why postfix is still logging. But clamd is running...

    esmtp# ps -ax | grep clam
    26441 ?? Ss 0:00.37 /usr/local/sbin/clamd
    26467 ?? Is 0:00.00 /usr/local/bin/freshclam --daemon
    26494 ?? Is 0:00.00 /usr/local/bin/freshclam --daemon

    But still the server thinks it is not and there is no pid file...

    esmtp# /usr/local/etc/rc.d/clamav-clamd.sh status
    clamav_clamd is not running.
    esmtp# ls -la /var/run/clamav/
    total 4
    drwxr-xr-x 2 clamav clamav 512 Feb 23 21:51 .
    drwxr-xr-x 6 root wheel 512 Feb 23 21:51 ..
    esmtp#

    I even uninstalled and re-installed. Any ideas why this is not reporting as
    running?

    --
    Robert


    --On Wednesday, February 23, 2005 9:10 PM +0100 "Daniel S. Haischt"
    <me@daniel.stefan.haischt.name> wrote:
    > I think the following section in /usr/local/amavisd.conf
    > should answer your question:
    >
    > ### [url]http://www.clamav.net/[/url] - backs up clamd or Mail::ClamAV
    > ['ClamAV-clamscan', 'clamscan',
    > "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
    > qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
    >
    > Basically if clamd is not running Amavis will execute the
    > commandline scanner version of ClamAV. That's the reason why
    > you are still getting log entries.
    >
    > So to sumarize: ClamAV's daemon is not running, thus
    > there is neither a PID file nor a UNIX domain socket.
    >
    > So if you want to use the daemonized version of ClamAV,
    > you need to elaborate why the daemon isn't started.
    >
    > Robert Fitzpatrick schrieb:
    >> I do not have anything in /var/run/clamav and that is the location in
    >> clamd.conf for placing the PID file. I cannot connect to the localhost
    >> as well:
    >>
    >> esmtp# telnet localhost 3310
    >> Trying ::1...
    >> telnet: connect to address ::1: Connection refused
    >> Trying 127.0.0.1...
    >> telnet: connect to address 127.0.0.1: Connection refused
    >> telnet: Unable to connect to remote host
    >>
    >> However, according to the clamd.log, clamav is intercepting viruses. Do
    >> you think it is working and why would I not be able to connect via
    >> telnet or view the pid file if it is?
    >>
    >> --
    >> Robert
    >>
    >>
    >> --On Wednesday, February 23, 2005 8:35 PM +0100 "Daniel S. Haischt"
    >> <me@daniel.stefan.haischt.name> wrote:
    >>
    >>> Usually if you are running ClamAV in UNI domain socket mode,
    >>> there should be a UNIX domain socket called 'clamd' in ...
    >>>
    >>> -> /var/run/clamav
    >>>
    >>> Tho - this file can be configured in /usr/local/etc/clamd.conf.
    >>>
    >>> If ClamAv is running in TCP/IP mode it should be possible to
    >>> test whether the server is responding by connecting to its
    >>> TCP/IP port using a telnet client ...
    >>>
    >>> -> telnet localhost 3310
    >>>
    >>> Robert Fitzpatrick schrieb:
    >>>
    >>>> After doing a portupgrade of clamd from 0.81 to 0.83, the service
    >>>> reports that it is not running using 'clamav-clamd.sh status'.
    >>>>
    >>>> esmtp# cd /usr/local/etc
    >>>> esmtp# rc.d/clamav-clamd.sh status
    >>>> clamav_clamd is not running.
    >>>> esmtp# ps -ax|grep clam
    >>>> 781 ?? Ss 0:10.96 /usr/local/sbin/clamd
    >>>>
    >>>> However, all seems to be fine, postfix 2.1.5, amavisd-new and clamd all
    >>>> seem to be running and Webmin reports them all as running.
    >>>>
    >>>> Any thoughts or something I should know regarding the upgrading? I
    >>>> checked /usr/ports/UPDATING, but nothing regarding this. All conf files
    >>>> are reflecting the new settings.
    >>>>
    >>>> --
    >>>> Robert
    >>>>
    >>>> _______________________________________________
    >>>> [email]freebsd-questions@freebsd.org[/email] mailing list
    >>>> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    >>>> To unsubscribe, send any mail to
    >>>> "freebsd-questions-unsubscribe@freebsd.org"
    >>
    >>
    >>
    >>
    >>
    >> _______________________________________________
    >> [email]freebsd-questions@freebsd.org[/email] mailing list
    >> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    >> To unsubscribe, send any mail to
    >> "freebsd-questions-unsubscribe@freebsd.org"



    Robert Fitzpatrick Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139