Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

Can't create temporary directory ERROR

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


dan.mcdonald at austinenergy

Jun 15, 2012, 11:42 AM

Post #1 of 4 (968 views)
Permalink
Can't create temporary directory ERROR

I just upgraded to clamav 0.97.5, and I am getting the following error:

$ grep amavis-20120615T112026-02578/parts/p002 /var/log/clamav/clamd.log
Fri Jun 15 11:22:06 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
Fri Jun 15 11:28:46 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.thai2order_com.UNOFFICIAL FOUND
Fri Jun 15 11:28:55 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.thai2order_com.UNOFFICIAL FOUND
Fri Jun 15 11:38:14 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
Fri Jun 15 11:38:23 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
Fri Jun 15 11:58:40 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.sdhs1_com.UNOFFICIAL FOUND
======> upgrade here <=========
Fri Jun 15 12:13:42 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 12:20:58 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 12:35:06 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 12:35:45 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 12:35:58 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 12:59:12 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 13:00:24 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 13:05:39 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 13:12:10 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
temporary directory ERROR
Fri Jun 15 13:29:36 2012 ->
/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
INetMsg.SpamDomain-2w.hopelasting_in.UNOFFICIAL FOUND

This was not observed under 0.97.4

Clamd is being called from amavisd-new 2.6.6.

Ideas on how to troubleshoot this issue and resolve it greatly appreciated.


--
Daniel J McDonald, CCIE # 2495, CISSP # 78281

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


draynor at sourcefire

Jun 18, 2012, 8:01 AM

Post #2 of 4 (917 views)
Permalink
Re: Can't create temporary directory ERROR [In reply to]

On Fri, Jun 15, 2012 at 2:42 PM, Daniel McDonald <
dan.mcdonald [at] austinenergy> wrote:

> I just upgraded to clamav 0.97.5, and I am getting the following error:
>
> $ grep amavis-20120615T112026-02578/parts/p002 /var/log/clamav/clamd.log
> Fri Jun 15 11:22:06 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
> Fri Jun 15 11:28:46 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.thai2order_com.UNOFFICIAL FOUND
> Fri Jun 15 11:28:55 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.thai2order_com.UNOFFICIAL FOUND
> Fri Jun 15 11:38:14 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
> Fri Jun 15 11:38:23 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
> Fri Jun 15 11:58:40 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.sdhs1_com.UNOFFICIAL FOUND
> ======> upgrade here <=========
> Fri Jun 15 12:13:42 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 12:20:58 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 12:35:06 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 12:35:45 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 12:35:58 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 12:59:12 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 13:00:24 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 13:05:39 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 13:12:10 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
> temporary directory ERROR
> Fri Jun 15 13:29:36 2012 ->
> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
> INetMsg.SpamDomain-2w.hopelasting_in.UNOFFICIAL FOUND
>
> This was not observed under 0.97.4
>
> Clamd is being called from amavisd-new 2.6.6.
>
> Ideas on how to troubleshoot this issue and resolve it greatly appreciated.
>
>
> --
> Daniel J McDonald, CCIE # 2495, CISSP # 78281
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
>

Daniel,

Replying off-list.

Dave R.

--
Dave Raynor
draynor [at] sourcefire
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


bill at inetmsg

Jun 18, 2012, 10:08 AM

Post #3 of 4 (920 views)
Permalink
Re: Can't create temporary directory ERROR [In reply to]

On 6/18/2012 8:01 AM, David Raynor wrote:
> On Fri, Jun 15, 2012 at 2:42 PM, Daniel McDonald<
> dan.mcdonald [at] austinenergy> wrote:
>
>> I just upgraded to clamav 0.97.5, and I am getting the following error:
>>
>> $ grep amavis-20120615T112026-02578/parts/p002 /var/log/clamav/clamd.log
>> Fri Jun 15 11:22:06 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
>> Fri Jun 15 11:28:46 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.thai2order_com.UNOFFICIAL FOUND
>> Fri Jun 15 11:28:55 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.thai2order_com.UNOFFICIAL FOUND
>> Fri Jun 15 11:38:14 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
>> Fri Jun 15 11:38:23 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.comickingnewjersey_info.UNOFFICIAL FOUND
>> Fri Jun 15 11:58:40 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.sdhs1_com.UNOFFICIAL FOUND
>> ======> upgrade here<=========
>> Fri Jun 15 12:13:42 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 12:20:58 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 12:35:06 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 12:35:45 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 12:35:58 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 12:59:12 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 13:00:24 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 13:05:39 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 13:12:10 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002: Can't create
>> temporary directory ERROR
>> Fri Jun 15 13:29:36 2012 ->
>> /var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002:
>> INetMsg.SpamDomain-2w.hopelasting_in.UNOFFICIAL FOUND
>>
>> This was not observed under 0.97.4
>>
>> Clamd is being called from amavisd-new 2.6.6.
>>
>> Ideas on how to troubleshoot this issue and resolve it greatly appreciated.
>>
>>
>> --
>> Daniel J McDonald, CCIE # 2495, CISSP # 78281
>>
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> http://www.clamav.net/support/ml
>>
>
> Daniel,
>
> Replying off-list.
>
> Dave R.

Why an off-list reply? Others may want to know what the resolutions is
to this issue, as well.

Bill
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


draynor at sourcefire

Jun 18, 2012, 11:25 AM

Post #4 of 4 (933 views)
Permalink
Re: Can't create temporary directory ERROR [In reply to]

On Mon, Jun 18, 2012 at 1:08 PM, Bill Landry <bill [at] inetmsg> wrote:

> On 6/18/2012 8:01 AM, David Raynor wrote:
>
>> On Fri, Jun 15, 2012 at 2:42 PM, Daniel McDonald<
>> dan.mcdonald [at] austinenergy> wrote:
>>
>> I just upgraded to clamav 0.97.5, and I am getting the following error:
>>>
>>> $ grep amavis-20120615T112026-02578/**parts/p002
>>> /var/log/clamav/clamd.log
>>> Fri Jun 15 11:22:06 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.**comickingnewjersey_info.**UNOFFICIAL FOUND
>>> Fri Jun 15 11:28:46 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.**thai2order_com.UNOFFICIAL FOUND
>>> Fri Jun 15 11:28:55 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.**thai2order_com.UNOFFICIAL FOUND
>>> Fri Jun 15 11:38:14 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.**comickingnewjersey_info.**UNOFFICIAL FOUND
>>> Fri Jun 15 11:38:23 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.**comickingnewjersey_info.**UNOFFICIAL FOUND
>>> Fri Jun 15 11:58:40 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.sdhs1_**com.UNOFFICIAL FOUND
>>> ======> upgrade here<=========
>>> Fri Jun 15 12:13:42 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 12:20:58 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 12:35:06 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 12:35:45 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 12:35:58 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 12:59:12 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 13:00:24 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 13:05:39 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 13:12:10 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002: Can't
>>> create
>>> temporary directory ERROR
>>> Fri Jun 15 13:29:36 2012 ->
>>> /var/lib/amavis/tmp/amavis-**20120615T112026-02578/parts/**p002:
>>> INetMsg.SpamDomain-2w.**hopelasting_in.UNOFFICIAL FOUND
>>>
>>> This was not observed under 0.97.4
>>>
>>> Clamd is being called from amavisd-new 2.6.6.
>>>
>>> Ideas on how to troubleshoot this issue and resolve it greatly
>>> appreciated.
>>>
>>>
>>> --
>>> Daniel J McDonald, CCIE # 2495, CISSP # 78281
>>>
>>> ______________________________**_________________
>>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>>> http://www.clamav.net/support/**ml <http://www.clamav.net/support/ml>
>>>
>>>
>> Daniel,
>>
>> Replying off-list.
>>
>> Dave R.
>>
>
> Why an off-list reply? Others may want to know what the resolutions is to
> this issue, as well.
>
> Bill
>
>
Bill,

No good reason in retrospect. Here's the content of my message to Daniel
about the error message. I wrote to Unix since that looks like Daniel's
specific case. There would be some variance for Windows (e.g. checks TEMP
and TMP env variables instead of TMPDIR) but the basis is similar.

-- begin --

Here is the context from the clamd.log content.

/var/lib/amavis/tmp/amavis-20120615T112026-02578/parts/p002 <== descriptor
Can't create temporary directory <== error text that goes along with
CL_ETMPDIR return code
ERROR <== categorization of result

The "Can't create temporary directory" message is very specific. When clamd
encounters content that needs to be unpacked (zip, tar, etc.) it creates a
temporary directory for the content. That error code happens when clamd has
a problem when it tries to create that temporary directory.

To find out where to create that directory, clamd defaults to /tmp but will
check for a TMPDIR environment variable setting or the "TemporaryDirectory"
configuration value inside the clamd.conf file. That will help you
determine where it was trying to create the directory. The new directory's
name always starts with "clamav-" and the rest is 32 randomly generated
alphanumeric characters. Hex digits, really.

The two most likely issues are a name collision (that temp directory
already existed) or access problems (if clamd is not running as root). The
exact temporary directory name it tried to create will only get logged as a
debug message, but check the base temporary directory location for any
subdirectories that start with "clamav-" and are more than a few minutes
old.

It is also possible the upgrade reseeded the random name generator for the
clamd threads and they had some early name collisions before diverging. A
full partition could be a cause but it is very unlikely for this to be the
only symptom you see if that happened.

Hope this helps,

Dave R.

---
Dave Raynor
draynor [at] sourcefire
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.