Mailing List Archive

8791 unlink failed: .../bayes.lock
As root, I ran sa-learn on my spam corpus from the /root directory, and I
got a msg when it finished like the one below only a different number. Then
I ran the same sa-learn command, although from the /root/spamassassin
directory (bayes_path), and this time it completed without the "lock" msg.
It learned all but 4 of the >400 msgs, and I have the expected bayes_ files
in the bayes_path directory.

Then I ran sa-learn on my ham corpus. Again I got a "lock msg". I ran the
same command again, and got the lock msg again:

Learned from 0 message(s) (244 messages examined).
unlock: 8791 unlink failed: /var/spamassassin/bayes.lock
#

/var/spamassassin does not have a bayes.lock file at this time, but does
have bayes_seen and bayes_toks from the --spam learn session. Earlier today
I tried using the -D option, but the debug output never finished, and I
eventually finally had to control-C out.

Anyone know what causes this bayes.lock msg??
Re: 8791 unlink failed: .../bayes.lock [ In reply to ]
----- Original Message -----
From: "John Fleming" <john@wa9als.com>
To: <spamassassin-users@incubator.apache.org>
Sent: Tuesday, February 10, 2004 7:43 PM
Subject: 8791 unlink failed: .../bayes.lock


> As root, I ran sa-learn on my spam corpus from the /root directory, and I
> got a msg when it finished like the one below only a different number.
Then
> I ran the same sa-learn command, although from the /root/spamassassin
> directory (bayes_path), and this time it completed without the "lock" msg.
> It learned all but 4 of the >400 msgs, and I have the expected bayes_
files
> in the bayes_path directory.
>
> Then I ran sa-learn on my ham corpus. Again I got a "lock msg". I ran
the
> same command again, and got the lock msg again:
>
> Learned from 0 message(s) (244 messages examined).
> unlock: 8791 unlink failed: /var/spamassassin/bayes.lock
> #
>
> /var/spamassassin does not have a bayes.lock file at this time, but does
> have bayes_seen and bayes_toks from the --spam learn session. Earlier
today
> I tried using the -D option, but the debug output never finished, and I
> eventually finally had to control-C out.
>
> Anyone know what causes this bayes.lock msg??
>

Starting over completely from scratch, including a new SA install, gives the
following:

1. sa-learn --spam on a file of 2 testspams --- worked fine, no errors.
2. sa-learn --ham on a file of 244 hams --- worked fine, no errors
3. sa-learn --spam on a file of 447 spams --- got the unlock: error, but
it said it did learn 443 msgs of 446 examined:

Learned from 443 message(s) (447 message(s) examined)
unlock: 9639 unlink failed: /var/.spamassassin/bayes.lock

So what is this failure, how does it affect anything, and what does this
mean?? THANKS!



----- get that "unlock: error, although it did say it learned the msgs!

Learned from 443 message(s) (447
Re: 8791 unlink failed: .../bayes.lock [ In reply to ]
> Anyone know what causes this bayes.lock msg??

Here's my console:

[root@wa9als .spamassassin]# sa-learn --spam --mbox --showdots
/home/john/testspams

..

Learned from 2 message(s) (2 message(s) examined).

[root@wa9als .spamassassin]# ls

bayes_seen bayes_toks

[root@wa9als .spamassassin]# sa-learn --ham --mbox --showdots /home/john/Ham

............................................................................
............................................................................
............................................................................
................

Learned from 224 message(s) (244 message(s) examined).

[root@wa9als .spamassassin]# sa-learn --spam --mbox --showdots
/home/john/SPAM

............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
...................................................................

Learned from 443 message(s) (447 message(s) examined).

unlock: 9639 unlink failed: /var/.spamassassin/bayes.lock

[root@wa9als .spamassassin]#