On Wed, 10 Dec 2003, AthlonRob wrote: > On Wed, 2003-12-10 at 19:50, Adam Denenberg wrote: > > in the same directory as the bayes DB files. > > Unfortunately, there are no .lock files in that directory. > > [EMAIL PROTECTED]:~/.spamassassin$ sa-learn --rebuild -DD
> debug: Final PATH set to: /usr/local/bin:/bin:/usr/bin > debug: using "/usr/share/spamassassin" for default rules dir > debug: using "/etc/mail/spamassassin" for site rules dir > debug: using "/var/amavis/.spamassassin/user_prefs" for user prefs file > debug: bayes: 10390 tie-ing to DB file R/O /var/amavis/.spamassassin/bayes_toks > Cannot open bayes databases /var/amavis/.spamassassin/bayes_* R/O: tie failed: [snip..] > debug: lock: 10390 link to /var/amavis/.spamassassin/bayes.lock: link ok > debug: bayes: 10390 tie-ing to DB file R/W /var/amavis/.spamassassin/bayes_toks > debug: unlock: 10390 unlink /var/amavis/.spamassassin/bayes.lock > Cannot open bayes databases /var/amavis/.spamassassin/bayes_* R/W: tie failed: File > exists > debug: lock: 10390 created > /var/amavis/.spamassassin/bayes.lock.linuxbox.linux.box.10390 > debug: lock: 10390 trying to get lock on /var/amavis/.spamassassin/bayes with 0 > retries > debug: lock: 10390 link to /var/amavis/.spamassassin/bayes.lock: link ok > debug: bayes: 10390 tie-ing to DB file R/W /var/amavis/.spamassassin/bayes_toks > debug: unlock: 10390 unlink /var/amavis/.spamassassin/bayes.lock > Cannot open bayes databases /var/amavis/.spamassassin/bayes_* R/W: tie failed: File > exists > [EMAIL PROTECTED]:~/.spamassassin$ ls -lha > total 6.4M > drwx------ 3 vscan sweep 4.0k Dec 10 20:06 . > drwxrwxrwx 6 vscan sweep 12k Dec 10 19:00 .. > drwxr-xr-x 2 vscan sweep 4.0k Dec 10 18:04 baye > -rw------- 1 vscan sweep 1.3M Dec 10 18:06 bayes_journal > -rw------- 1 vscan sweep 4.7k Dec 10 18:06 bayes_msgcount > -rw------- 1 vscan sweep 1.2M Dec 10 18:06 bayes_seen > -rw------- 1 vscan sweep 4.9M Dec 10 18:06 bayes_toks > -rw-r--r-- 1 vscan sweep 346 Dec 10 19:00 user_prefs > > :-( > > Rob Hate to say it, but it looks like your database is hosed. Permissions are OK, it's looking at the correct files, locks are good, etc. those 'File Exists' errors indicate that the DB_File library found a file with that name which contains the wrong 'magic', IE it's not a valid dabase file. Just for S&G, try doing a 'sa-learn --dump magic' and see if it likes what it sees. If you cannot even --dump magic then it's truely corrupted, no repair, just delete and start fresh. You've got a boat-load of stuff in that bayes_journal, so delete the bayes_seen & bayes_toks and let that journal seed you a fresh start. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{ ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk