Page 1 of 1
SA Learn error line 497 issue
Posted: 06 Feb 2016 11:04
by ashweb
After and upgrade to solve an error with SA Learn I have now developed another error when learning mail as Ham or Spam.
The error returned is:
SA Learn: error code 255 returned from sa-learn: ERROR: the Bayes learn function returned an error, please re-run with -D for more information at /usr/local/bin/sa-learn line 497. Learned tokens from 0 message(s) (1 message(s) examined)
Please let me know what I can do or if you need any more information.
Re: SA Learn error line 497 issue
Posted: 06 Feb 2016 17:35
by shawniverson
Run a Spamassassin Lint test and report back results.
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 13:52
by ashweb
I have run the lint test and the resulting output is attached as a file - if the forum would let me without telling me it is not a valid file extension.
Tried no extension, .txt .text .info .csv etc..
Dont want to just post the output as it is 852 lines.
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 15:47
by shawniverson
You can do a pastebin or similar, either post link here or hop onto #efa-project on irc freenode.
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 18:12
by ashweb
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 18:32
by shawniverson
A couple issues...
This one is not a big deal, probably just need to run a geoip update in maIlwatch...
Feb 7 13:46:26.602 [14071] dbg: metadata: RelayCountry: failed to load 'Geo::IP', skipping: Error opening /usr/local/share/GeoIP/GeoIP.dat at (eval 46) line 5008, <DATA> line 717. 0.00128
This one is a problem...bayes cannot connect to mysql
Feb 7 13:46:29.151 [14071] dbg: bayes: unable to connect to database: Access denied for user 'sa_user'@'localhost' (using password: YES) 0.01924
Check /etc/MailScanner/spam.assassin.prefs.conf and make sure the config here has the right password...
Code: Select all
bayes_store_module Mail::SpamAssassin::BayesStore::SQL
bayes_sql_dsn DBI:mysql:sa_bayes:localhost
bayes_sql_username sa_user
bayes_sql_password Needs to match password for SAUSERSQLPWD in /etc/EFA-Config
auto_whitelist_factory Mail::SpamAssassin::SQLBasedAddrList
user_awl_dsn DBI:mysql:sa_bayes:localhost
user_awl_sql_username sa_user
user_awl_sql_password Needs to match password for SAUSERSQLPWD in /etc/EFA-Config
bayes_sql_override_username mailwatch
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 18:42
by ashweb
Thank-you so much for your help.
The GeoIP one resolved itself after running update from webmin.
The MYSQL password error - your right, the passwords did not match.
This system failed to update from 3.0.0.7 - 3.0.0.8 becuase of the CLAMd error, could that have caused it?
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 18:45
by shawniverson
That is likely.
Has the update succeeded on a subsequent attempt?
Re: SA Learn error line 497 issue
Posted: 07 Feb 2016 18:49
by ashweb
I managed to run the update after uninstalling clamd then reinstalling it from the epel repro as advised on another post - then I developed this issue.
Re: SA Learn error line 497 issue
Posted: 14 Dec 2016 01:22
by cdburgess75
Thanks, worked for me too, password issue.