Good point, David, I will try as you suggested, that makes more sense. --- Yu Qian Ottawa Ontario Phone: (514)-553-0198
On Thu, Jun 9, 2016 at 5:01 PM, David B Funk <dbf...@engineering.uiowa.edu> wrote: > On Thu, 9 Jun 2016, Yu Qian wrote: > > Yes, I am sure the path is correct, also, if the path is not correct, it >> will show 'db not present'. >> I tried to write a small perl script to open the db file, it failed too. >> so I think it maybe the file damaged during the mounting. but I >> don't know why this can happen >> >> --- >> Yu Qian >> Ottawa Ontario >> Phone: (514)-553-0198 >> >> >> >> On Thu, Jun 9, 2016 at 4:24 PM, John Hardin <jhar...@impsec.org> wrote: >> On Thu, 9 Jun 2016, Yu Qian wrote: >> >> My spam assassin works pretty well if I run it on a single >> machine, either >> mac or linux. that means I update my rules and train my bayes >> model on the >> same machine. >> >> But when I tried to train the model and generate bayes file >> db on mac, and >> I mounted them to a docker container, then sa-learn failed to >> read the DB. >> the permission looks good, because the error just show >> "failed to open >> bayes_toks" >> >> Anyone know the potential problems? >> >> > Check the version number of the BerkekeyDB libraries on the two different > machines. There are binary-data compatability issues between some of the > versions. (EG a db file created by v3.0 cannot be opened by v4.2 IIRC). > > You may have to do a bayes "-backup" on the one system and a "-restore" > on the other. > > > -- > 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{