Koozali.org: home of the SME Server

Clam files filing up disk

Offline Donquick

  • *
  • 20
  • +0/-0
Clam files filing up disk
« on: April 16, 2010, 04:57:20 PM »
Hi all,

Our disk is full due to a few hundred files in the VAR/TMP/ directory.  These are all 55MB in size and are something to do with the CLAM AV software, logs or data bases or something.  They are called clamav-d981238812387128312 and things like that.

I was tempted to just go ahead and delete some files to create some space, but then i noticed that almost all of the files (being over 15GB in total) are last accessed today or yesterday.  This stopped me from just deleting as this stuff is pretty current.  So question 1 is - can I delete some of this stuff and still be able to start my system without a full scale problem?

I have done some reading and noticed that people are talking about the LeaveTemporaryFiles qualifier in the clamd.conf file.  Now I have done a find command for this conf file and find no less than 10 instances around the place.  They are in the docs area (fair enough) and in the events area of the e-smith directory but these ones are zero bytes in size.  The only one that has content is the one at /etc/clamd.conf.  I have viewed this file and it says not to edit it as it is controlled by the SME interface.  Anyway the line with LeaveTemporaryFiles on it starts with a # which I think means that it is disabled.  The other possibility is LogFileMaxSize 0 which I think means no limit.

Anyway, the header of the file says not to edit it but to use a file in templates-custom to control it.  So question 2 is - can I do anything here or with a template to change the max log file size, or is that not what my problem is?

I am confused (as you can tell) not least by the fact that I have not got ClamAV switched on in the SME interface so how is it filling my whole disk.  Question 3 is – can I stop this thing from being ON at all or just doing the minimum.  I am using this system as a simple domain for our network and not for emails or anything else.

Thanks for your urgent help.

Don

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Clam files filing up disk
« Reply #1 on: April 16, 2010, 04:59:17 PM »
Our disk is full due to a few hundred files in the VAR/TMP/ directory.  These are all 55MB in size and are something to do with the CLAM AV software, logs or data bases or something.  They are called clamav-d981238812387128312 and things like that.

Don't report problems here - Please report bugs and potential bugs in the bug tracker

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Clam files filing up disk
« Reply #2 on: April 16, 2010, 04:59:21 PM »
hi

you should start telling us what version of SME are you using.. and what version of clamd/clamav

in any case, bugzilla is right there -->, please open a bug, thank you

Offline Donquick

  • *
  • 20
  • +0/-0
Re: Clam files filing up disk
« Reply #3 on: April 16, 2010, 05:07:49 PM »
Don't report problems here - Please report bugs and potential bugs in the bug tracker

I don't think it is a bug.  I am just asking other users how to do something and some information about files and config issues.  I have just had a look down recent posts and there are lots of other people asking for help and they have not been given a hard time about it.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Clam files filing up disk
« Reply #4 on: April 16, 2010, 05:33:15 PM »
I don't think it is a bug.

Of course it is a bug. It should "just work". If it doesn't, then something is wrong and needs to be fixed.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Clam files filing up disk
« Reply #5 on: April 17, 2010, 05:33:11 PM »
Don, please post details about your issue to:

http://bugs.contribs.org/show_bug.cgi?id=5886

The sooner you provide a good description of the problem the sooner it can be fixed.

Offline holck

  • *
  • 322
  • +1/-0
Re: Clam files filing up disk
« Reply #6 on: April 18, 2010, 10:52:33 PM »
Our disk is full due to a few hundred files in the VAR/TMP/ directory.  These are all 55MB in size and are something to do with the CLAM AV software, logs or data bases or something.  They are called clamav-d981238812387128312 and things like that.

I experienced exactly the same, and it was not a contribs bug. It was due to me installing new versions of ClamAV (0.96-1)  - not from contribs.org, but from another repository. So if this is what you have done also, please downgrade ClamAV again.
......

Offline Donquick

  • *
  • 20
  • +0/-0
Re: Clam files filing up disk
« Reply #7 on: April 18, 2010, 11:18:57 PM »
I experienced exactly the same, and it was not a contribs bug. It was due to me installing new versions of ClamAV (0.96-1)  - not from contribs.org, but from another repository. So if this is what you have done also, please downgrade ClamAV again.

Hmmm, interesting.  I don't think i have done any upgrading etc.  Our server just sits in a cupboard and acts as a file server and domain for our office.  I don't really know how it works or how to control it to be honest.  In fact i didn't known there was any span control until i started with this error.  I would love to know how to upgrade the clam software thought if you can give me a hint.  Just in case this would solve the problem it is certainly worth a try.

Thanks again,

Don

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Clam files filing up disk
« Reply #8 on: April 19, 2010, 04:58:53 AM »
I don't think i have done any upgrading etc.

That is very likely to be why you have a problem.