You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Tom Schuetz <to...@skyresearch.com> on 2005/03/25 23:23:33 UTC

Can't sa-learn, "trying to get lock" on bayes

Hi, I am running SA 3.0.2 on an i386 RH 8.0 box. I invoke SA from
MailScanner 4.39.6 (perl version 5.8.0).

When I try to do sa-learn -D --ham /path/to/ham, I get this:

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 '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/root/bin', which doesn't exist, dropping.
debug: PATH included '/usr/bin', keeping.
debug: Final PATH set to:
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:
/usr/bin
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/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: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/local.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(0x84acdc8)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e15748)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8df2798)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x84acdc8)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8e15748)
implements 'parse_config'
debug: bayes: 15211 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
debug: bayes: 15211 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: opportunistic call attempt skipped, found fresh running expire
magic token
debug: bayes: Not available for scanning, only 6 ham(s) in Bayes DB < 200
debug: bayes: 15211 untie-ing
debug: bayes: 15211 untie-ing db_toks
debug: bayes: 15211 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 15211 created
/root/.spamassassin/bayes.lock.firewall.internal.skyresearch.com.15211
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 0
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 1
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 2
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 3
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 4
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 5
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 6
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 7
retries
debug: lock: 15211 trying to get lock on /root/.spamassassin/bayes with 8
retries

...And so on. I am not sure how to fix this. I can't add more ham until I
can do sa-learn properly.

Any ideas?