SA Learn error line 497 issue

Report bugs and workarounds
Post Reply
ashweb
Posts: 13
Joined: 05 Feb 2016 12:17

SA Learn error line 497 issue

Post 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.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SA Learn error line 497 issue

Post by shawniverson »

Run a Spamassassin Lint test and report back results.
ashweb
Posts: 13
Joined: 05 Feb 2016 12:17

Re: SA Learn error line 497 issue

Post 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.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SA Learn error line 497 issue

Post by shawniverson »

You can do a pastebin or similar, either post link here or hop onto #efa-project on irc freenode.
ashweb
Posts: 13
Joined: 05 Feb 2016 12:17

Re: SA Learn error line 497 issue

Post by ashweb »

No problem - here it is: http://pastebin.com/VVwrTTgg
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SA Learn error line 497 issue

Post 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
ashweb
Posts: 13
Joined: 05 Feb 2016 12:17

Re: SA Learn error line 497 issue

Post 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?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: SA Learn error line 497 issue

Post by shawniverson »

That is likely.

Has the update succeeded on a subsequent attempt?
ashweb
Posts: 13
Joined: 05 Feb 2016 12:17

Re: SA Learn error line 497 issue

Post 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.
cdburgess75
Posts: 49
Joined: 11 Jun 2014 21:43

Re: SA Learn error line 497 issue

Post by cdburgess75 »

Thanks, worked for me too, password issue.
Post Reply