This one time, at band camp, Paolo said:
> On Sun, Jun 01, 2008 at 11:23:47PM +0100, Stephen Gran wrote:
> > > 
> > > so both cases fail and internal nodes never get daily.cvd.
> > 
> > What do your web server logs say about the fetch attempt?  If you don't
> 
> already checked:
> 
> access_log
> ...
> 192.168.0.21 - - [01/Jun/2008:19:28:35 +0000] "GET /daily-7106.cdiff 
> HTTP/1.0" 404 0 "-" "clamav/0.93"
> 192.168.0.21 - - [01/Jun/2008:19:28:35 +0000] "GET /daily.cvd HTTP/1.0" 404 0 
> "-" "clamav/0.93"

Well, there's the problem.  freshclam can't possibly retrieve what your
webserver isn't serving,

> error_log
> ...
> [01/Jun/2008:19:28:35 +0000] request from 192.168.0.21 "GET /daily-7106.cdiff 
> HTTP/1.0" ("/var/www/daily-7106.cdiff"): document open: No such file or 
> directory
> [01/Jun/2008:19:28:35 +0000] request from 192.168.0.21 "GET /daily.cvd 
> HTTP/1.0" ("/var/www/daily.cvd"): document open: No such file or directory
> 
> whereas, eg
> ...
> /var/log/boa/access_log.2.gz:192.168.0.21 - - [31/May/2008:02:50:06 +0000] 
> "GET /main.cvd HTTP/1.0" 200 13050207 "-" "clamav/0.93"

So a few days ago it worked.  ok.

> of course I've symlinked /var/lib/clamav/* into /var/www/ 

If I'm reading that the right way round, that won't work.  You mean
you've done
ln -s /var/www/daily.cvd /var/lib/clamav/daily.cvd ?
if so, that will not work - you need to the symlinks going the other
way.  Freshclam downloads to a tempfile and then moves it over top of
the existing file, clobbering your symlink every time.

> and, btw, it'd be 
> nice to be able to tell freshclam to look into a certain dir on the mirror,
> so that it'd be simpler to do 'ln -s /var/lib/clamav /var/www/' thus avoiding
> the possibility to miss some (new) stuff to s.link.

Can't you just make /var/lib/clamav your document root for a virtual
host?  I don't know boa, so that's an honest question - I'm a happy
apache user, and that's how we do it.

So far, this sounds like 'not a bug', but I'll wait for confirmation
before closing it.

Cheers,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to