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.
SA Learn error line 497 issue
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: SA Learn error line 497 issue
Run a Spamassassin Lint test and report back results.
Re: SA Learn error line 497 issue
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.
Tried no extension, .txt .text .info .csv etc..
Dont want to just post the output as it is 852 lines.
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: SA Learn error line 497 issue
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
No problem - here it is: http://pastebin.com/VVwrTTgg
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: SA Learn error line 497 issue
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...
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
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?
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?
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: SA Learn error line 497 issue
That is likely.
Has the update succeeded on a subsequent attempt?
Has the update succeeded on a subsequent attempt?
Re: SA Learn error line 497 issue
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.
-
- Posts: 49
- Joined: 11 Jun 2014 21:43
Re: SA Learn error line 497 issue
Thanks, worked for me too, password issue.