Re: [Fwd: Re: [Clamav-users] fileblobDestroy: file not saved]]

2005-04-15 Thread Gene Leung
Hi Nigel,
Sorry I am not an expert of the C language.  It may have difficulty for 
me to trace the program.  Any way, by turning the DEGUG on, what else do 
I need to watch out? 

Best Regards
Gene Leung
Nigel Horne wrote:
What is happening is that on this line:
snprintf(fullname, sizeof(fullname) - 1, %s/%.*sXX, dir,
(int)(sizeof(fullname) - 9 - strlen(dir)), filename);
The XX isn't being appended to the string. This cannot happen and points
to a bug outside of my control.
Perhaps enabling debugging within clamd will help to see why this is happening.
-Nigel
On Thursday 14 Apr 2005 10:46, Gene Leung wrote:
 

Hi Nigel,
Here are the files:
LibClamAV Error: Can't create temporary file
/var/tmp/clamav-a7b7920ff0485a4d/: Invalid argument
LibClamAV Error: fileblobDestroy: file not saved: report to [EMAIL PROTECTED]
[EMAIL PROTECTED] /var/tmp/clamav-a7b7920ff0485a4d]# ls -alt
total 24
drwxrwxrwt 138 root root 12288 Apr 14 17:41 ..
drwx-- 2 root root 4096 Apr 14 17:25 .
-rw--- 1 root root 393 Apr 14 17:25 mixedtextportiono0twIg
-rw--- 1 root root 1623 Apr 14 17:25 mixedtextportionpxd3Uy
Should you need more to investigate, please let me know!! Thanks!!
Best Regards
Gene Leung
 Original Message 
Subject:[Fwd: [Fwd: Re: [Fwd: Re: [Clamav-users] fileblobDestroy: file
not saved]]]
Date:   Thu, 14 Apr 2005 16:54:59 +0800
From:   Gene Leung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Hi Nigel,
Oh, I am sorry! I think I can get it !! I will send one to you a little
bit latter !
Best Regards
Gene
 Original Message 
Subject:[Fwd: Re: [Fwd: Re: [Clamav-users] fileblobDestroy: file not
saved]]
Date:   Thu, 14 Apr 2005 16:52:27 +0800
From:   Gene Leung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Hi Nigel,
Thank you for the reply!  Is there any hint from looking up those temporary 
directories?  Since most of them are ok, only few may have errors.
Best Regards
Gene Leung
/*** Message Sent by you ***/
Yes, sorry I remember you posting that to clamav-users. I can see nothing
obvious wrong here than the one I mentioned about an incorrect LocalSocket
value which isn't being used in your configuration.
In that case, yes, your best bet is to turn on LeaveTemporaryFiles and see if
you can track it. Watch out though, you'll soon have a lot of temporaryfiles so
you will need to clean them out very often.
-Nigel Horne



   

 

___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] fileblobDestroy: file not saved

2005-04-13 Thread Gene Leung
Hi All,

Just installed the latest version:

ClamAV version 0.83, clamav-milter version 0.83

However, from the clamd.log, I get the following errors:

LibClamAV Error: fileblobDestroy: file not saved: report to [EMAIL PROTECTED]
LibClamAV Error: Can't create temporary file
/tmp/clamav-a8ea9e787ec47c36/: Invalid argument

It seems the clamd is not function properly. Any hints?

Thanks!!

Best Regards
Gene Leung
___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] fileblobDestroy: file not saved

2005-04-13 Thread Nigel Horne
On Wednesday 13 Apr 2005 10:15, Gene Leung wrote:
 Just installed the latest version:
 
 ClamAV version 0.83, clamav-milter version 0.83
 
 However, from the clamd.log, I get the following errors:
 
 LibClamAV Error: fileblobDestroy: file not saved: report to [EMAIL PROTECTED]
 LibClamAV Error: Can't create temporary file
 /tmp/clamav-a8ea9e787ec47c36/: Invalid argument
 
 It seems the clamd is not function properly. Any hints?

Is it any better with 0.84RC1?

 Best Regards
 Gene Leung


-- 
Nigel Horne. Arranger, Composer, Typesetter.
NJH Music, Barnsley, UK.  ICQ#20252325
[EMAIL PROTECTED] http://www.bandsman.co.uk
___
http://lurker.clamav.net/list/clamav-users.html


[Clamav-users] fileblobDestroy: file not saved

2005-04-13 Thread Gene Leung
Hi All,

Try the ClamAV version 0.84rc1, clamav-milter version 0.84d, it still
has the following error:

LibClamAV Error: Can't create temporary file
/tmp/clamav-5b3875bb9e9b1841/: Invalid argument
LibClamAV Error: fileblobDestroy: file not saved: report to [EMAIL PROTECTED]

My clamd.conf is as follows:

LogFile /var/log/clamav/clamd.log
LogFileMaxSize 0
LogFileUnlock
LogTime
LogClean
LogVerbose
LocalSocket /var/run/clmilter.sock
MaxThreads 10
FixStaleSocket
StreamMaxLength 10M
ScanMail
ScanOLE2
ScanArchive
ScanRAR
ArchiveMaxFileSize 10M
ArchiveMaxCompressionRatio 300

/* Start up Script */
#!/bin/sh
# Startup / shutdown script for Clam Antivirus

# chkconfig: 2345 70 30
# description: ClamAV Antivirus

. /etc/rc.d/init.d/functions

CLAMD=/usr/local/sbin/clamd
CLAMAV_MILTER=/usr/local/sbin/clamav-milter

RETVAL=0

case $1 in
start)
echo -n Starting clamd: 
daemon $CLAMD
RETVAL=$?
[ $RETVAL -eq 0 ]
echo

echo -n Starting clamav-milter: 
daemon $CLAMAV_MILTER --max-children=2 -ol local:/var/run/clamav-milter.sock
RETVAL=$?
[ $RETVAL -eq 0 ]
echo
;;

stop)
echo -n Shutting down clamd: 
killproc $CLAMD
RETVAL=$?
[ $RETVAL -eq 0 ]
echo

echo -n Shutting dowm clamav-milter: 
killproc $CLAMAV_MILTER
RETVAL=$?
[ $RETVAL -eq 0 ]
echo
;;

*)
echo 
echo Usage: `basename $0` { start | stop }
echo 
exit 64
;;
esac


/* Machine Fedora Core 2 */
Linux 2.6.8-1.521smp #1 SMP Mon Aug 16 09:25:06 EDT 2004 i686 i686 i386
GNU/Linux

Any more hints? Thanks !!

Best Regards
Gene Leung
___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] fileblobDestroy: file not saved

2005-04-13 Thread Nigel Horne
On Wednesday 13 Apr 2005 12:25, Gene Leung wrote:
 Hi All,
 
 Try the ClamAV version 0.84rc1, clamav-milter version 0.84d, it still
 has the following error:
 
 LibClamAV Error: Can't create temporary file
 /tmp/clamav-5b3875bb9e9b1841/: Invalid argument
 LibClamAV Error: fileblobDestroy: file not saved: report to [EMAIL PROTECTED]

Send me a copy of the file that when scanned produces the error and I'll look 
into it.

 My clamd.conf is as follows:

 LocalSocket /var/run/clmilter.sock

 daemon $CLAMAV_MILTER --max-children=2 -ol local:/var/run/clamav-milter.sock

You don't want those two sockets to be the same. You've probably not noticed a 
problem
since you aren't using --external.

 Best Regards
 Gene Leung

-Nigel

-- 
Nigel Horne. Arranger, Composer, Typesetter.
NJH Music, Barnsley, UK.  ICQ#20252325
[EMAIL PROTECTED] http://www.bandsman.co.uk
___
http://lurker.clamav.net/list/clamav-users.html