2010/3/19 Török Edwin <[email protected]>

> On 03/19/2010 10:25 AM, John Williams wrote:
> > 2010/3/19 Török Edwin <[email protected]>
> >
> >> On 03/19/2010 09:16 AM, John Williams wrote:
> >>> Ok...so it is.  Apparently the version I'm getting through apt-get on
> >> ubuntu
> >>> is .95.2.  Looking at the site the newest is .95.3.  Well ok so I need
> to
> >>> update.  However I have a major issue.  I was planning to use clamav to
> >> scan
> >>> user uploaded files, however when I import pyclamav and it register's
> out
> >> of
> >>> date it doesn't just politely inform me it's time to update it takes
> down
> >> my
> >>> entire django development server with it.
> >> That is a bug in pyclamav, or how it is used then.
> >> Can you show a simple example of using pyclamav that dies when clamav is
> >> out of date?
> >>
> >>> I can't fathom a possible reason that the best response the an out of
> >> date
> >>> virus scanner is the moment it gets imported to kill the entire
> process.
> >>>  Log a warning sure, go "No way I'm not going to let you scan anything
> >> until
> >>> you update".  Worse it managed to kill the entire development server
> >> process
> >>> for some unknown reason.  I can't ever imagine launching a live site
> with
> >>> something that I've seen act like this.  I miss an update by a few days
> >> of a
> >>> mostly non essential piece of software and my entire file upload system
> >> (and
> >>> possibly even the webserver) is done for?
> >>>
> >>> Clearly the "solution" to the problem is to update my version....but
> how
> >> do
> >>> I prevent clam from doing this at all.  If I'm slow to update it
> >> shouldn't
> >>> completely disable itself.
> >> It doesn't, it keeps scanning. At least that happens when you use clamd
> >> or clamscan.
> >>
> >> Best regards,
> >> --Edwin
> >>
> > It's good to hear that it's still scanning...or at least should be.  This
> > is looking more like a pyclamav issue then.  The easiest demonstration of
> an
> > issue is just to open a python shell with the python-clamav package
> > installed.
> >
> >>>> import pyclamav
> > 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:
> > ***********************************************************
> > Killed
> > jwilli...@jaidan:~ $
>
> It works here, using pyclamav 0.4.1
> $ python
> Python 2.5.5 (r255:77872, Feb  2 2010, 00:25:36)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyclamav
> 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:
> ***********************************************************
> 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:
> ***********************************************************
> >>> pyclamav.scanfile('/home/edwin/clam/git/builds/default/test/clam.exe')
> (1, 'ClamAV-Test-File')
>
> I wonder what I have wrong, I've removed and reinstalled both clamav and
pyclamav multiple times now.  I have python2.6 (as well as 2.5) installed,
 I thought that could possibly be causing some issue, but apparently not.

Python 2.5.4 (r254:67916, Jan 20 2010, 21:43:02)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyclamav
Killed
jwilli...@jaidan:~ $

So the issue has to be with something else I've done, no idea what however.



> >
> > Actually I just managed to get my updates working right and well I think
> I
> > can firmly say this falls into the realm of an issue with pyclamav or my
> own
> > usage fault and not an issue with clamav.  The updated version acts the
> > same.
>
> You can use pyclamd. That you will connect to a ClamAV running in
> another process (clamd).
>
> Best regards,
> --Edwin
>

If I can find a solution that doesn't involve running the daemon it would be
much preferred.   The VPS I'm doing the work on is shall we say underfunded,
but I'm stuck with it for a month more.  I've managed to max out it's memory
by running an ipython shell, the django runserver, and then running apt-get.
 Even if the daemon is minimal I'd kinda like to avoid it for now.

In fact now that I think of it...I wonder is this trash vps I'm on is the
real issue and why I'm seeing such strange results when trying to import
this.  I wonder if I'm just plain running out of resources

>
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to