CLAMAV is giving me trouble...

ron

Member
Oct 31, 2006
38
0
6
when trying to fresh the clam:

Trying host database.clamav.net (61.206.123.121)...
ERROR: getfile: Can't create new file ./clamav-2e2fa063e71e7d11fa0c7aca3b6f5d71 in /var/lib/clamav
Hint: The database directory must be writable for UID 106 or GID 106
ERROR: Can't download daily.cvd from database.clamav.net
LibClamAV Error: Database Directory: /var/lib/clamav/ not locked

any ideas? :confused:

Ron
 
Hi Dietmer

I use version 2.0 (I am unable to upgrade the server at the moment).

mail:~# ls -al /var/lib/clamav/
total 15756
drwxr-xr-x 2 2000 2001 4096 Jun 4 17:28 .
drwxr-xr-x 23 root root 4096 Jul 5 2007 ..
-rw-r--r-- 1 clamav clamav 1000992 Nov 13 2007 clamav-1cbda93bcab95c66fea4af2b0b95438b
-rw-r--r-- 1 clamav clamav 2038415 Jun 4 17:08 daily.cvd
-rw-r--r-- 1 clamav clamav 13050207 Apr 6 22:31 main.cvd
 
Strange, the ownership of /var/lib/clamav/ is wrong.

try the following command:

# chown clamav.clamav /var/lib/clamav/

does that help?

You should also find out who has changed the ownership (you?, corrupt Harddisk? hacker?, ...)

- Dietmar
 
OK, it works now.
it started yesterday afternoon, I tried to do freshclam and got
"LibClamAV Error: Database Directory: /var/lib/clamav/ not locked". I've googled it, found this thread and followed the advice... ;). guess I shouldn't have.

what I don't understand, is what caused the "not locked" error in the first place.
 
More Clamav trouble :-(

Now I get messages like:
"Maximum time (300 sec) exceeded. virus analyze (clamav) failed: ERROR at /usr/share/perl5/Proxmox/Utils.pm line 1523"

and

"fast exit to reduce server load (free 67067904 bytes)"

Any ideas?...

Ron
 
Again, it is not normal that ownership of files changes. So you should really find out who has changed the ownership (you?, corrupt Harddisk? ...). Maybe a fresh install onto a new disk solves all you problem within 10 minutes.

- Dietmar
 
My hardware is a year old, and is pretty powerful.
reinstallation will probably solve the problem but I am not in the same location as the server. that is why I wanted to know if there is another solution before I nuke the bastard...
 

Attachments

  • Capture.JPG
    Capture.JPG
    44.4 KB · Views: 7
OK, just reread your post - so you have modified the permission of the directory?

Anyways, I suggest to upgrade to 2.2. Servicepacks can be installed from remote (with the commercial version)

- Dietmar