• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

No space left in /tmp: clamd error

J

jamieUK

Guest
For some reason my mail suddenly stopped being delivered. After some research I found out that I've run out of space in /tmp. However I can't find anything in there that could be taking up all the space. Here's my df output:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 521748 187932 307312 38% /
/dev/hda5 5119900 3116016 2003884 61% /usr
/dev/hda6 5119900 248552 4871348 5% /var
/dev/hda7 26245376 529968 25715408 3% /home
none 123988 122328 1660 99% /tmp

I've deleted a few files in /tmp but nothing makes a difference - maybe a few bytes at most. Hers't he ls -l output:

-rw------- 1 root root 0 Feb 2 19:39 bd.Wmh8v6
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-1148fd6e00755a63
drwx------ 3 apache apache 160 Feb 9 13:38 clamav-18e65b4c9c2f637f
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-2092c2c6c2529afd
drwx------ 3 root root 120 Feb 2 21:53 clamav-23705a4e7e77c81e
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-29c32ecc84fc1def
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-2afc4acca249f15f
drwx------ 3 apache apache 180 Feb 9 13:40 clamav-2feb1d7d23fbd709
drwx------ 2 apache apache 120 Feb 4 01:06 clamav-36490d5650f5419a
drwx------ 2 apache apache 120 Feb 4 01:08 clamav-3733e15c85a102d7
drwx------ 2 apache apache 120 Feb 8 20:58 clamav-397953126e5d1a28
drwx------ 2 apache apache 120 Feb 8 21:21 clamav-43bcfb6076a2ddea
drwx------ 2 apache apache 120 Feb 4 01:08 clamav-52712bc96810a6db
drwx------ 2 apache apache 80 Feb 9 13:36 clamav-5bcadd7712bfb0b9
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-5d789b5a3250a76a
drwx------ 2 apache apache 120 Feb 4 01:08 clamav-659144a358852ac3
drwx------ 2 apache apache 120 Feb 8 21:26 clamav-6ab1954d0a26372e
drwx------ 2 apache apache 120 Feb 4 01:06 clamav-705c3dc1fbdc839c
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-74c276986206996f
drwx------ 2 apache apache 120 Feb 4 01:01 clamav-7beb0daf2598fca6
drwx------ 2 apache apache 120 Feb 4 01:07 clamav-8aacdea9cc031e6b
drwx------ 2 apache apache 120 Feb 4 01:06 clamav-905bd7c5029d54e4
drwx------ 2 apache apache 120 Feb 4 00:57 clamav-99ecf0d563d75edd
drwx------ 2 apache apache 120 Feb 8 21:18 clamav-a06c6ac3244fe3f7
drwx------ 2 apache apache 120 Feb 4 01:05 clamav-aa693f4e3a69ca4d
drwx------ 2 apache apache 120 Feb 4 01:00 clamav-ab13e7c48b9fa3ea
drwx------ 2 apache apache 120 Feb 8 21:40 clamav-adbc5959e920ef74
drwx------ 2 apache apache 120 Feb 4 01:06 clamav-b1e5797748210504
drwx------ 2 apache apache 120 Feb 8 21:17 clamav-bdc38617fa4d984e
drwx------ 2 apache apache 120 Feb 4 00:59 clamav-bf577fdb0e2fd7e8
drwx------ 2 apache apache 120 Feb 8 21:20 clamav-c38e44faea1e8b5e
drwx------ 2 apache apache 120 Feb 4 00:59 clamav-cfa29f689bf080b7
drwx------ 2 apache apache 120 Feb 4 01:03 clamav-e7182ee985e0904a
drwx------ 2 apache apache 120 Feb 4 00:57 clamav-fa95896bce927173
drwx------ 2 apache apache 120 Feb 4 00:57 clamav-fb877280adba5dca
drwx------ 2 apache apache 120 Feb 4 01:06 clamav-ff004bb46e1a26c7
srwxrwxrwx 1 root root 0 Feb 2 22:53 clamd
-rw------- 1 root root 789 Feb 6 22:41 cronyiMrHK
drwxr-xr-x 2 root root 80 Feb 4 11:34 mkt_qs.11275-1107516861
drwxr-xr-x 2 root root 80 Feb 2 18:19 mkt_qs.21667-1107368358
drwxr-xr-x 2 root root 80 Feb 2 18:25 mkt_qs.22467-1107368752
drwxr-xr-x 2 root root 80 Feb 2 18:31 mkt_qs.23285-1107369062
drwxr-xr-x 2 root root 80 Feb 6 23:11 mkt_qs.26138-1107731480
drwxr-xr-x 2 root root 80 Feb 10 16:39 mkt_qs.31929-1108053576
lrwxrwxrwx 1 root root 25 Sep 11 04:17 mysql.sock -> /var/lib/mysql/mysql.sock
-rw------- 1 root root 0 Feb 6 22:28 psa-installer.lock
-rw------- 1 apache apache 29 Feb 9 16:44 sess_04592b725e4523640d25b9234df9bc03
-rw------- 1 apache apache 95 Feb 9 16:56 sess_095de87b53c7c97f8c90c7e0abb1af5e
-rw------- 1 apache apache 28 Feb 9 16:43 sess_0bcd5bf1ab18b224b39d845cd8a271c2
-rw------- 1 apache apache 95 Feb 10 14:10 sess_0e3d3805ee72ce2f97e6d04034cfb938
-rw------- 1 apache apache 29 Feb 10 13:51 sess_19463867819c800967d740f1593e93b3
-rw------- 1 apache apache 30 Feb 10 07:05 sess_19f873493995842014dcabdad1d230db
-rw------- 1 apache apache 27 Feb 9 17:48 sess_2ebb6494057e83705d468cc537276fd8
-rw------- 1 apache apache 28 Feb 9 18:48 sess_35ff9778785dfa3a3efe2450df782247
-rw------- 1 apache apache 28 Feb 9 18:07 sess_378d6017f19aa8cd7aef9b7a44904672
-rw------- 1 apache apache 27 Feb 9 22:55 sess_45d14ea8a1bfd9a48d41f942168dab71
-rw------- 1 apache apache 29 Feb 9 16:45 sess_54beec269e370861b7988d8dafddefc9
-rw------- 1 apache apache 28 Feb 9 18:03 sess_5eb489a2c021f5b9ef040fee3c44f46b
-rw------- 1 apache apache 29 Feb 10 15:09 sess_73a3249ca0b99441cd467e00c026566a
-rw------- 1 apache apache 126 Feb 10 10:53 sess_7cc195e756058ff1639727f31c142634
-rw------- 1 apache apache 27 Feb 10 12:34 sess_810569eed702acfbfa3d6b70c0f9c308
-rw------- 1 apache apache 28 Feb 9 18:43 sess_8ab220ea0bd0a41a3b5884c36290e543
-rw------- 1 apache apache 30 Feb 10 09:42 sess_8cd5356b83ca0be8ee69d4e04fbecde0
-rw------- 1 apache apache 95 Feb 10 10:53 sess_9fa213f6874b3729a0802e764d559e1e
-rw------- 1 apache apache 28 Feb 9 18:46 sess_a32c253cccdf0baa8ae7dcabf973268c
-rw------- 1 apache apache 30 Feb 9 16:58 sess_a5b58de1322142043d459346415eb0ed
-rw------- 1 apache apache 28 Feb 9 19:43 sess_bbf468b903167858110b3f65c8e5dda1
-rw------- 1 apache apache 126 Feb 10 16:21 sess_be00c1222f4a738f8879dbe20be0b4f5
-rw------- 1 apache apache 31 Feb 10 06:29 sess_be76911b940503255de66314cb21f31e
-rw------- 1 apache apache 28 Feb 9 19:16 sess_beedfed00902fdc68217ce802c55fdb9
-rw------- 1 apache apache 126 Feb 9 16:56 sess_c15410186af314d40bc723e562da57d5
-rw------- 1 apache apache 30 Feb 9 21:28 sess_d82bb54bf00b044ec0a23953bc174809
-rw------- 1 apache apache 95 Feb 10 17:14 sess_dd1e018ccb1844460a82d3329f141e93
-rw------- 1 apache apache 28 Feb 9 19:18 sess_dddc87451a679358905ea8d67ced085a
-rw------- 1 apache apache 128 Feb 10 14:15 sess_e29cec1e985950cbd55f00758f9b7485
-rw------- 1 apache apache 28 Feb 9 19:43 sess_eb3f8f184181d6927176609381ee6fec
-rw------- 1 apache apache 28 Feb 9 18:00 sess_eca8474473f4665c79e6ad6d9262c9dc
-rw------- 1 apache apache 30 Feb 9 17:17 sess_edab153540da9ea17c6ab345ee0ac2b4
-rw------- 1 apache apache 30 Feb 10 00:17 sess_f7df15da2c2a208f71716086f846e0b8
srw-rw-rw- 1 popuser root 0 Feb 7 00:22 spamd_full.sock
srw-rw-rw- 1 popuser root 0 Feb 7 00:22 spamd_light.sock

Anyone any ideas?

Edit: it seems that it's only outgoing mail that's not getting through - so this may not be related to the lack of space on /tmp. I'm still concerned this could cause problems elsewhere though.
 
Right, the problem was that the virus database updates were taking up all the space in '/tmp' and causing the error. As soon as I freed up space by deleting them, the mail started working fine. Now I just need to make sure that this doesn't happen again - anyone know a way that I can assure all updates are deleted on a regular basis, or that clamav is limited to the amount of space it can take up in '/tmp'? For now I think I'll just create a cron job to handle - but there must be a better way...
 
Back
Top