Cannot lock /tmp/ClamAVBusy.lock, Input/output error

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
Ive got a weird issue on one server ive just upgraded mailscanner and clamav on

eveythign seems to be workign ok but in the mail log im forever seeing

Cannot lock /tmp/ClamAVBusy.lock, Input/output error

ive forced an eximup done a mailscanner and clam update ive rebooted the server and still same error


anyone got any ideas?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
If that file exists in /tmp, try deleting it. It's also possible that if you have a virtual /tmp partition that it's become corrupt and needs recreating.
 

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
hrmm

no file of that type in /tmp and im not sure where a virtual /tmp folder would be hiding?

ive tried to locate the file with no luck
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
If you run:

df

And see a line similar to (sizes will differ):

/usr/tmpDSK 1007896 18336 938360 2% /tmp

Then you're using a virtual partition (i.e. it's a partition in a file).

You need to stop all the processes with files open in /tmp:

cd /root/
service chkservd stop
service httpd stop
service mysql stop
service postgresql stop
service xinetd stop


Wait a few seconds then:

umount /var/tmp
umount /tmp


If it says it's in use, find out which processes with:

lsof | grep /tmp

Kill them off and then retry the umount.

Once umounted, delete and recreate /tmp:

rm -fv /usr/tmpDSK
/scripts/securetmp


That should be it in most cases.

Oh, restart the stopped processes:

cd /root/
service xinetd start
service postgresql start
service mysql start
service httpd startssl
service chkservd start