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, <GEN45> 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_toks
> debug: bayes: 12444 tie-ing to DB file R/W 
> /root/.spamassassin/bayes_seen
> debug: bayes: found bayes db version 3
> debug: refresh: 12444 refresh /root/.spamassassin/bayes.lock
> debug: Syncing complete.
> debug: bayes: 12444 untie-ing
> debug: bayes: 12444 untie-ing db_toks
> debug: bayes: 12444 untie-ing db_seen
> debug: bayes: files locked, now unlocking lock
> debug: unlock: 12444 unlink /root/.spamassassin/bayes.lock
> 
> 
> log files.
> 
> Feb  3 01:33:04 octo spamd[3626]: processing message 
> (unknown) for mbride:151.
> Feb  3 01:33:04 octo spamd[3626]: bayes: bayes db version 2 
> is not able to be used, aborting! at 
> /usr/share/perl5/Mail/SpamAssassin/BayesStore/DBM.pm line 
> 160, <GEN54> line 56.
> Feb  3 01:33:04 octo spamd[3626]: identified spam (10.4/5.0) for
> mcwik:151 in 0.4 seconds, 2494 bytes.
> Feb  3 01:33:04 octo spamd[3626]: result: Y 10 -
> DEAR_SOMETHING,J_CHICKENPOX_44,J_CHICKENPOX_62,MILLION_USD,MIS
SING_DATE,MISSING_SUBJECT,NIGERIAN_BODY1,NIGERIAN_BODY2,UNCLAIMED_MONEY,US_D
OLLARS_3
> scantime=0.4,size=2494,mid=(unknown),autolearn=no
> Feb  3 01:33:19 octo spamd[3628]: connection from localhost 
> [127.0.0.1] at port 60298 Feb  3 01:33:19 octo spamd[3628]: 
> info: setuid to brandon succeeded

Reply via email to