bayes db version 2 is not able to be used, aborting!

2006-06-22 Thread Bobby Johnson
I'm running Spamassassin 3.10 from the OpenBSD ports on OpenBSD 3.9.  It
was upgraded a while ago, but was never running earlier than
Spamassassin 3.0.4.

Recently noticed some problems with sa-learn.  Users have been able to
put in maybe 50 messages at a time, started receiving timeouts from
postfix running sa-learn ( sa-learn is run as a postfix service), even
sending just a few messages.

When I do an sa-learn --dump magic I get this error.
bayes: bayes db version 2 is not able to be used, aborting!
at /usr/local/libdata/perl5/site_perl/Mail/SpamAssassin/BayesStore/DBM.pm line 
195.
bayes: bayes db version 2 is not able to be used, aborting!
at /usr/local/libdata/perl5/site_perl/Mail/SpamAssassin/BayesStore/DBM.pm line 
195.
ERROR: Bayes dump returned an error, please re-run with -D for more
information

Found this page, http://wiki.apache.org/spamassassin/BayesUpgradeError

Ran sa-learn -D --sync, and I got this:

[22990] dbg: logger: adding facilities: all
[22990] dbg: logger: logging level is DBG
[22990] dbg: generic: SpamAssassin version 3.1.0
[22990] dbg: config: score set 0 chosen.
[22990] dbg: util: running in taint mode? yes
[22990] dbg: util: taint mode: deleting unsafe environment variables,
resetting PATH
[22990] dbg: util: PATH included '/home/bob/bin', which doesn't exist,
dropping   
[22990] dbg: util: PATH included '/bin', keeping
[22990] dbg: util: PATH included '/sbin', keeping
[22990] dbg: util: PATH included '/usr/bin', keeping
[22990] dbg: util: PATH included '/usr/sbin', keeping
[22990] dbg: util: PATH included '/usr/X11R6/bin', which doesn't exist,
dropping
[22990] dbg: util: PATH included '/usr/local/bin', keeping
[22990] dbg: util: PATH included '/usr/local/sbin', keeping
[22990] dbg: util: PATH included '/usr/games', keeping
[22990] dbg: util: PATH included '.', which is not absolute, dropping
[22990] dbg: util: final PATH set
to: /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/games
[22990] dbg: dns: is Net::DNS::Resolver available? yes
[22990] dbg: dns: Net::DNS version: 0.54
[22990] dbg: dns: name server: 217.13.28.15, family: 2, ipv6: 0
[22990] dbg: config: using "/etc/mail/spamassassin" for site rules pre
files
[22990] dbg: config: read file /etc/mail/spamassassin/init.pre
[22990] dbg: config: read file /etc/mail/spamassassin/v310.pre
[22990] dbg: config: using "/usr/local/share/spamassassin" for sys rules
pre files
[22990] dbg: config: using "/usr/local/share/spamassassin" for default
rules dir
[22990] dbg: config: read file /usr/local/share/spamassassin/10_misc.cf
[22990] dbg: config: read
file /usr/local/share/spamassassin/20_advance_fee.cf
[22990] dbg: config: read
file /usr/local/share/spamassassin/20_anti_ratware.cf
[22990] dbg: config: read 

--CUT

[22990] dbg: config: read
file /usr/local/share/spamassassin/60_whitelist_subject.cf
[22990] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[22990] dbg: config: read file /etc/mail/spamassassin/local.cf
[22990] dbg: config: using "/home/bob/.spamassassin/user_prefs" for user
prefs file
[22990] dbg: config: read file /home/bob/.spamassassin/user_prefs
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from
@INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x7c32052c)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from
@INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x7e120ef4)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::SPF=HASH(0x845744fc)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[22990] dbg: pyzor: network tests on, attempting Pyzor
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::Pyzor=HASH(0x8685f3c0)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from
@INC
[22990] dbg: reporter: network tests on, attempting SpamCop
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::SpamCop=HASH(0x7dc6de58)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::AWL=HASH(0x874142b8)
[22990] dbg: plugin: loading
Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x896bec6c)
[22990] dbg: plugin: loading
Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x855132ac)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from
@INC
[22990] dbg: plugin: registered
Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x7c217b30)
[22990] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags
from @INC
[22990] dbg: plugin: registered

RE: bayes: bayes db version 2 is not able to be used, aborting!

2005-02-03 Thread Sander Holthaus - Orange XL
My first guess would be that you could have 2 bayes db on your system, and
that spamassassin running as root is not looking in the same place for the
bayes db as spamd is. When upgrading from 2.64 to 3.02 I had a similar issue
where 2.64 was using the virtual mail users homedir fo its files (such as
bayes) whereas 3.02 started using root's homedir.

Kind Regards,
Sander Holthaus 

> -Original Message-
> From: Kevin Blackwell [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 03, 2005 8:48 AM
> To: users@spamassassin.apache.org
> Subject: bayes: bayes db version 2 is not able to be used, aborting!
> 
> I'm running debian stable and I updated spamassassin from 2.63 to 3.0.
> It seem to be running fine, but I keep getting thsi error.
> 
> bayes: bayes db version 2 is not able to be used, aborting! 
> at /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 
> 160,  line 44.
> 
> I've seen the link to this problem on spamassassins wiki, but 
> it also says if after you run
> 
> sa-learn -D -sync
> 
> the message dosen't go avay, post to thsi group. If anyone 
> can help, that would be great.
> 
> Here's the output of sa-learn -D -sync
> 
> debug: SpamAssassin version 3.0.2
> debug: Score set 0 chosen.
> debug: running in taint mode? yes
> debug: Running in taint mode, removing unsafe env vars, and 
> resetting PATH
> debug: PATH included '/usr/local/sbin', keeping.
> debug: PATH included '/usr/local/bin', keeping.
> debug: PATH included '/usr/sbin', keeping.
> debug: PATH included '/usr/bin', keeping.
> debug: PATH included '/sbin', keeping.
> debug: PATH included '/bin', keeping.
> debug: PATH included '/usr/bin/X11', keeping.
> debug: Final PATH set to:
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
> usr/bin/X11
> debug: using "/etc/spamassassin/init.pre" for site rules init.pre
> debug: config: read file /etc/spamassassin/init.pre
> debug: using "/usr/share/spamassassin" for default rules dir
> debug: config: read file /usr/share/spamassassin/10_misc.cf
> debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
> debug: config: read file /usr/share/spamassassin/20_body_tests.cf
> debug: config: read file /usr/share/spamassassin/20_compensate.cf
> debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
> debug: config: read file /usr/share/spamassassin/20_drugs.cf
> debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
> debug: config: read file /usr/share/spamassassin/20_head_tests.cf
> debug: config: read file /usr/share/spamassassin/20_html_tests.cf
> debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
> debug: config: read file /usr/share/spamassassin/20_phrases.cf
> debug: config: read file /usr/share/spamassassin/20_porn.cf
> debug: config: read file /usr/share/spamassassin/20_ratware.cf
> debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
> debug: config: read file /usr/share/spamassassin/23_bayes.cf
> debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
> debug: config: read file /usr/share/spamassassin/25_hashcash.cf
> debug: config: read file /usr/share/spamassassin/25_spf.cf
> debug: config: read file /usr/share/spamassassin/25_uribl.cf
> debug: config: read file /usr/share/spamassassin/30_text_de.cf
> debug: config: read file /usr/share/spamassassin/30_text_fr.cf
> debug: config: read file /usr/share/spamassassin/30_text_nl.cf
> debug: config: read file /usr/share/spamassassin/30_text_pl.cf
> debug: config: read file /usr/share/spamassassin/50_scores.cf
> debug: config: read file /usr/share/spamassassin/60_whitelist.cf
> debug: config: read file /usr/share/spamassassin/65_debian.cf
> debug: using "/etc/spamassassin" for site rules dir
> debug: config: read file /etc/spamassassin/Chinese_rules.cf
> debug: config: read file /etc/spamassassin/antidrug.cf
> debug: config: read file /etc/spamassassin/chickenpox.cf
> debug: config: read file /etc/spamassassin/local.cf
> debug: config: read file /etc/spamassassin/rolex.cf
> debug: config: read file /etc/spamassassin/sa-blacklist.current.uri.cf
> debug: using "/root/.spamassassin/user_prefs" for user prefs file
> debug: config: read file /root/.spamassassin/user_prefs
> debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
> debug: plugin: registered 
> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8a47634)
> debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
> debug: plugin: registered 
> Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8a45378)
> debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
> debug: pl

bayes: bayes db version 2 is not able to be used, aborting!

2005-02-03 Thread Kevin Blackwell
I'm running debian stable and I updated spamassassin from 2.63 to 3.0.
It seem to be running fine, but I keep getting thsi error.

bayes: bayes db version 2 is not able to be used, aborting! at
/usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 160, 
line 44.

I've seen the link to this problem on spamassassins wiki, but it also
says if after you run

sa-learn -D -sync

the message dosen't go avay, post to thsi group. If anyone can help,
that would be great.

Here's the output of sa-learn -D -sync

debug: SpamAssassin version 3.0.2
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: Final PATH set to:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
debug: using "/etc/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: config: read file /usr/share/spamassassin/65_debian.cf
debug: using "/etc/spamassassin" for site rules dir
debug: config: read file /etc/spamassassin/Chinese_rules.cf
debug: config: read file /etc/spamassassin/antidrug.cf
debug: config: read file /etc/spamassassin/chickenpox.cf
debug: config: read file /etc/spamassassin/local.cf
debug: config: read file /etc/spamassassin/rolex.cf
debug: config: read file /etc/spamassassin/sa-blacklist.current.uri.cf
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: config: read file /root/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8a47634)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8a45378)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8a46a28)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8a47634)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8a45378)
implements 'parse_config'
debug: bayes: 12444 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
debug: bayes: 12444 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 0 ham(s) in Bayes DB < 200
debug: bayes: 12444 untie-ing
debug: bayes: 12444 untie-ing db_toks
debug: bayes: 12444 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 12444 created
/root/.spamassassin/bayes.lock.octo.speedsite.com.12444
debug: lock: 12444 trying to get lock on /root/.spamassassin/bayes
with 0 retries
debug: lock: 12444 link to /root/.spamassassin/bayes.lock: link ok
debug: bayes: 12444 tie-ing to DB file R/W /root/.spamassassin/bayes_

Re: bayes db version 2 is not able to be used, aborting!

2004-11-14 Thread Kai Schaetzl
You sent three messages to the list in a row without indicating 
if the earlier problems are solved or if the three are actually 
connected. Don't you think that your problems are connected 
somehow? You seem to have upgraded from SA 2.6x to 3.0. I assume 
you either have a mixed setup now or you need to upgrade some 
Perl modules SA depends on. You should start over.
Why don't you put all this in a broader perspective and give 
more information (f.i. which way you upgraded from what etc.)?


Kai

-- 

Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: 
http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org





bayes db version 2 is not able to be used, aborting!

2004-11-13 Thread Vicki Brown
I have upgraded to SA 3.0.1
I read the upgrading document
I built the new SA, ran the tests, turned off the old spamd,  the (old)
sa-learn --rebuild
installed SA 3.0.1, ran the (new) sa-learn --sync and got this:

Argument "RBL" isn't numeric in addition (+) at
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Conf.pm line 244.
Argument "RBL" isn't numeric in addition (+) at
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Conf.pm line 244.
Argument "RBL" isn't numeric in addition (+) at
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Conf.pm line 244.
Argument "RBL" isn't numeric in addition (+) at
/usr/local/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Conf.pm line 244.
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.

sa-learn --dump -D said
...
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.
ERROR: Bayes dump returned an error, please re-run with -D for more
information

Um... what's bayes db version 2, why do I have it, how do I fix it?
what happened?
-- 
Vicki Brown ZZZJourneyman Sourceror:
SF Bay Area, CAzz  |\ _,,,---,,_  Scripts & Philtres
http://www.cfcl.com zz /,`.-'`'-.  ;-;;,_Code, Doc, Process, QA
http://cfcl.com/vlb   |,4-  ) )-,_. ,\ ( `'-'Perl, Unix, Mac OS X, WWW
 '---''(_/--'  `-'\_)  ___