Could not open Bayes rebuild lock file /var/spool/MailScanner/incoming/Locks/MS.bayes.rebuild.lock, No such file or directory

Julian Field MailScanner at ecs.soton.ac.uk
Wed Jan 7 11:06:02 GMT 2009


Attached are two scripts. Both are gzipped to save bandwidth.
"mailscanner_create_locks" should be put in /opt/MailScanner/bin if you 
use the "Other Unix" distribution of MailScanner.
"mailscanner_create_locks.redhat" should be put in /usr/sbin and renamed 
to "mailscanner_create_locks" if you use either of the RPM distributions 
of MailScanner.

Don't forget to make it executable!
     cd /usr/sbin
     chmod a+rx mailscanner_create_locks

Please let me know if this fixes the problem.

On 6/1/09 15:38, Julian Field wrote:
> I'll try to remember to check on this one later and get back to you.
>
> On 6/1/09 12:16, Bjørn T Johansen wrote:
>> I think MailScanner can run the script, at least I have the 
>> following...:
>> (and running the script gives no error messages...)
>>
>> ls /var/spool/MailScanner/incoming/Locks/ -l
>> total 1
>> -rw------- 1 root root  0 2009-01-06 10:55 antivirBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 avastBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 avgBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 bitdefenderBusy.lock
>> -rw------- 1 root root 50 2009-01-06 13:04 clamavBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 cssBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 esetsBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 etrustBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 f-prot-6Busy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 f-protBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 f-secureBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 genericBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 inoculanBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 kasperskyBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 mcafeeBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 nod32Busy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 normanBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 pandaBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 ravBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 sophosBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 symscanengineBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 trendBusy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 vba32Busy.lock
>> -rw------- 1 root root  0 2009-01-06 10:55 vexiraBusy.lock
>>
>>
>> But MS.bayes.rebuild.lock is missing?
>>
>>
>>
>> BTJ
>>
>> On Tue, 06 Jan 2009 11:56:27 +0000
>> Julian Field<MailScanner at ecs.soton.ac.uk>  wrote:
>>
>>> On 6/1/09 11:44, Bjørn T Johansen wrote:
>>>> I just ran the install.sh script like I always do...
>>>> I am running on Linux, Ubuntu Server and use the tar.gz 
>>>> distribution of MailScanner.. (Version 4.74.13-2 for Solaris / BSD 
>>>> / Other Linux / Other
>>>> Unix )
>>>>
>>>>
>>>> Do I need to do more? I had version 4.70 before I upgraded....
>>>>
>>> There's a new script in the bin directory called
>>> mailscanner_create_locks, you need to make sure MailScanner can run 
>>> that
>>> from /opt/MailScanner/bin.
>>>> BTJ
>>>>
>>>> On Tue, 06 Jan 2009 11:22:04 +0000
>>>> Julian Field<MailScanner at ecs.soton.ac.uk>   wrote:
>>>>
>>>>
>>>>> What OS? What distribution of MailScanner? Did you install all the 
>>>>> parts
>>>>> of MailScanner, including any new scripts I might have added to the
>>>>> "bin" directory?
>>>>> If you only install half of it, funnily enough it won't work :-)
>>>>>
>>>>> Jules.
>>>>>
>>>>> On 6/1/09 10:35, Bjørn T Johansen wrote:
>>>>>
>>>>>> I upgraded to version 4.74 and I now get a lot of these in the 
>>>>>> log..:
>>>>>>
>>>>>> Jan  6 11:17:50 pat MailScanner[11207]: New Batch: Scanning 1 
>>>>>> messages, 7216 bytes
>>>>>> Jan  6 11:17:51 pat MailScanner[11207]: Could not open Bayes 
>>>>>> rebuild lock file 
>>>>>> /var/spool/MailScanner/incoming/Locks/MS.bayes.rebuild.lock, No
>>>>>> such file or directory
>>>>>> Jan  6 11:17:51 pat MailScanner[11207]: At start of SA checks 
>>>>>> could not open 
>>>>>> /var/spool/MailScanner/incoming/Locks/MS.bayes.rebuild.lock,
>>>>>> Jan  6 11:17:58 pat MailScanner[11207]: Virus and Content 
>>>>>> Scanning: Starting
>>>>>>
>>>>>>
>>>>>> Why? And what can I do to fix this?
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> BTJ
>>>>>>
>>>>>>
>>>>>>
>>>>> Jules
>>>>>
>>>>>
>>>>
>>> Jules
>>>
>> =
>
> Jules
>

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailscanner_create_locks.redhat.gz
Type: application/gzip
Size: 986 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20090107/86b43c90/mailscanner_create_locks.redhat.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailscanner_create_locks.gz
Type: application/gzip
Size: 982 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20090107/86b43c90/mailscanner_create_locks.bin


More information about the MailScanner mailing list