Koozali.org: home of the SME Server

delete clam av files in var-tmp

Offline isaacvdberg

  • 3
  • +0/-0
delete clam av files in var-tmp
« on: March 02, 2011, 04:57:19 PM »
the problem started with an table/memory error problem on a joomla based website installed on sme 7.0. When the error appears the sme server-console webpages don't display their content either so leaving it useless for changing the setup.

this sytem has ran for years without problems in this configuration, so i just guessed that maybe the server has ran out of free diskspace.

this is what i found:

# df -h

Filesystem              Size   Used   Avail  Use%   Mounted On
/dev/mapper/main-root    73G    69G       0  100%   /
/dev/md1                 99M    13M     82M   14%   /boot
none                    252M      0    252M    0%   /dev/shm


# du -sh /var/tmp

68G     /var/tmp

#


since moste directories in /var/tmp are related to clamav i wondered whether i just can delete these directories.

further more am i right in guessing that the problems with the server-manager webpages are related to a stopped mysql process or a corrupted table? (until now everything seems to be allright after a reboot until the problem in joomla appears. i'm not an experienced linux user so please bear with me

tia isaac

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: delete clam av files in var-tmp
« Reply #1 on: March 02, 2011, 07:03:58 PM »
since moste directories in /var/tmp are related to clamav i wondered whether i just can delete these directories.
I think you first need to diagnose if it is really caused by clamav folders in /var/tmp.

What is the output of the following command:
Code: [Select]
cd /var/tmp; du -h --max-depth 1
further more am i right in guessing that the problems with the server-manager webpages are related to a stopped mysql process or a corrupted table? (until now everything seems to be allright after a reboot until the problem in joomla appears. i'm not an experienced linux user so please bear with me
You might be right but guessing is a bad thing. :-)

Find out what is filling your drive, see if you can clear out some stuff and then restart your server. After that you should at least have the server backup and you should be able to clean up some more. I never had that much data in /var/tmp/.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline lloydh

  • ***
  • 45
  • +0/-0
Re: delete clam av files in var-tmp
« Reply #2 on: March 03, 2011, 07:27:56 AM »
I had a similar problem last April on a 7.2 or 7.3 server (I can't remember exactly) that had not been updated.       When clamav went into not supported it filled /var/temp with directories with the name of clamav<16 digit hex number> and each directory had the same copy of the signature files and this continued until the disk was full.       I tried deleting the directories but they all came back within 30 minutes, after finding out clamav was unsupported I temporarily disabled it and deleted the directories to get my space back and the server back running.      I then did an in-place upgrade to the latest SME and then applied all the patches and the problem was gone.

Yes, I learned my lesson, my server is now always patched up to date.

Hope this helps.

Lloyd.

Offline isaacvdberg

  • 3
  • +0/-0
Re: delete clam av files in var-tmp
« Reply #3 on: March 03, 2011, 10:15:06 AM »
Quote
directories with the name of clamav<16 digit hex number> and each directory had the same copy of the signature files and this continued until the disk was full.

yep, thats it.

i'll configure a backup machine and do an upgrade.

thx!
isaac

Offline lloydh

  • ***
  • 45
  • +0/-0
Re: delete clam av files in var-tmp
« Reply #4 on: March 03, 2011, 10:41:18 AM »
Check the version of your clamav in the web admin and then have a look at this thread.

http://forums.contribs.org/index.php/topic,45849.msg223694.html#msg223694

Lloyd.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: delete clam av files in var-tmp
« Reply #5 on: March 03, 2011, 10:50:13 AM »
Check the version of your clamav in the web admin and then have a look at this thread.

http://forums.contribs.org/index.php/topic,45849.msg223694.html#msg223694

Lloyd.

this is not necessary: OP has a (very) old SME version.. he MUST upgrade to the latest stable

Offline isaacvdberg

  • 3
  • +0/-0
Re: delete clam av files in var-tmp
« Reply #6 on: March 03, 2011, 11:01:08 AM »
i'll do an upgrade (with a backup machine at hand).

thx isaac