[Mimedefang] Issues with updating Bayes v2 to v3

Richard Whelan richard.whelan at pipex.net
Wed Jun 15 11:41:19 EDT 2005


Hi,

I've got two new machines, with SA 3.0.3 & MD 2.52, replacing two
existing systems, with SA 2.64 & MD 2.43. I want to use the existing
bayes DBs as they have been built up over quite sometime. On Monday I
tried to use the db-to-txt perl script, which was expanding nicely, but
after creating a file of over 10Gb, I decided to kill that off and just
try to use the sa-learn process instead. That has now been running for
over 24 hrs. Would it normally take this long to convert ?

One other problem I've seen is on an identical system, which wouldn't
even recognise the bayes_toks file as v2 at all. It came back with :

debug: bayes: 16992 tie-ing to DB file R/O
/var/spool/MIMEDefang-bayes/bayes_toks
Cannot open bayes databases /var/spool/MIMEDefang-bayes/bayes_* R/O: tie
failed:
debug: bayes: 16992 untie-ing DB file toks
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 16992 created /var/spool/MIMEDefang-bayes/bayes.mutex
debug: lock: 16992 trying to get lock on
/var/spool/MIMEDefang-bayes/bayes with 300 timeout
debug: lock: 16992 link to /var/spool/MIMEDefang-bayes/bayes.mutex: link ok
debug: bayes: 16992 tie-ing to DB file R/W
/var/spool/MIMEDefang-bayes/bayes_toks
debug: bayes: 16992 untie-ing DB file toks
debug: unlock: 16992 unlocked /var/spool/MIMEDefang-bayes/bayes.mutex
Cannot open bayes databases /var/spool/MIMEDefang-bayes/bayes_* R/W: tie
failed: No such file or directory
debug: Syncing complete.

where as the system that is still converting gave:

debug: bayes: 13295 tie-ing to DB file R/O
/var/spool/MIMEDefang-bayes/bayes_toks
debug: bayes: 13295 tie-ing to DB file R/O
/var/spool/MIMEDefang-bayes/bayes_seen
debug: bayes: found bayes db version 2
bayes: bayes db version 2 is not able to be used, aborting! at
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/BayesStore/DBM.pm
line 160.
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 13295 created /var/spool/MIMEDefang-bayes/bayes.mutex
debug: lock: 13295 trying to get lock on
/var/spool/MIMEDefang-bayes/bayes with 300 timeout
debug: lock: 13295 link to /var/spool/MIMEDefang-bayes/bayes.mutex: link ok
debug: bayes: 13295 tie-ing to DB file R/W
/var/spool/MIMEDefang-bayes/bayes_toks
debug: bayes: 13295 tie-ing to DB file R/W
/var/spool/MIMEDefang-bayes/bayes_seen
debug: bayes: found bayes db version 2
debug: bayes: detected bayes db format 2, upgrading
debug: bayes: upgrading database format from v2 to v3
debug: refresh: 13295 refresh /var/spool/MIMEDefang-bayes/bayes.mutex
debug: refresh: 13295 refresh /var/spool/MIMEDefang-bayes/bayes.mutex
debug: refresh: 13295 refresh /var/spool/MIMEDefang-bayes/bayes.mutex

The bayes DBs on the new machines are using the same files taken from
the same machine, so why is one seeing it the other failing ?

Thanks,

Richard

-- 
Richard Whelan
Senior Systems & NMS Administrator
PIPEX

Direct:  +44 (0) 1865 381568
Mobile:  +44 (0) 7786 276020

website: http://www.pipex.net/
 
This e-mail is subject to: http://www.pipex.net/disclaimer.html




More information about the MIMEDefang mailing list