New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'rspamc learn_spam' fails with 'HTTP error : 500, Unknown statistics error' #2678
Comments
IDK: enable bayes debugging at least. |
Last month I made clean install of FreeBSD 12.0-RELEASE on my mail server and also made clean install of Rspamd 1.8.3 with https://www.utahime.org/Rspamd/rspamd.20190112042927.log If you need learned mail then I can provide it. And since the problem is reproducible now I can provide other cases if necessary. Does this help you investigating this issue? |
Are you using sqlite backend? |
Yes, I think so. yasu@eastasia[4693]% rspamadm configdump classifier.bayes.backend
*** Section classifier.bayes.backend ***
"sqlite3"
*** End of section classifier.bayes.backend ***
yasu@eastasia[4694]% |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The same problem on FreeBSD with the log: The same backend: sqlite3 |
I am seeing this problem now as well (I don´t know how long it has existed already. I had a redis backend. I have switched to sqlite and now it seems to work again. |
Since a few weeks I'm having that issue as well, the log seems not so say more than the client output does. (the unknown statistics error) My backed is redis, default install on Debian using the rspamd.com repo:
Redis is not showing me errors in /var/log/redis.log; Debug log:
The error occurs no matter whether using rspamc or the web interface paste |
I have the same error |
Same here. FreeBSD 11.3 amd64 rspamd 2.2 |
Same here, Ubuntu 18.04 amd64, rspamd 2.5, but with redis as backend. I get this error about 2 or 3 times per hour:
And this is the result of
Edit: the above result was caused by configuration error which I fixed. Now it's correct:
But I still get |
Just to chime in, same here, too, Debian buster, rspamd 2.5, redis.
|
I finally resolved the issue in my case, though with the now unsupported version 2.2 on debian jessie (8.11). I want to share it nevertheless, it took the following:
After uploading ham/spam via rspamc or the webinterface, I started seeing heavy output in |
This fixed my problem running Rspamd 2.5 on Slackware. Thank you! |
* Add servers directive explicitly to classifer-bayes.conf * Fixes issue rspamd/rspamd#2678
* Add servers directive explicitly to classifer-bayes.conf * Fixes issue rspamd/rspamd#2678
Thanks, fixed rspamd 2.7 @ debian stretch i hadn't the local.d/statistics.conf, but
|
I too had this problem on a system just upgraded to Debian Bullseye using the Debian rspamd 2.7-1, rpamd had previously been working with buster. When I was having the 500 error with rspamc, I was also seeing messages that rspamd couldn't init the redis cache on startup.
Since I noticed /etc/rspamd/statistic.conf already included I decided to create /etc/rspamd/local.d/classifier-bayes.conf with just setting the address.
After that rspamc worked and stopped giving me the 500 error, and the errors about not being able to create the redis backends went away |
Classification (Please choose one option):
Reproducibility (Please choose one option):
Rspamd version:
1.8.3
Operation system, CPU:
FreeBSD 11.2-RELEASE amd64
Description (Please provide a descriptive summary of the issue):
About 2 weeks ago I found
rspamc learn_spam
fails as following.yasu@eastasia[2041]% rspamc learn_spam ~/tmp/spam01.txt ~
Results for file: /home/yasu/tmp/spam01.txt (0.024 seconds)
HTTP error: 500, Unknown statistics error
I can't say exactly when but in the past it certainly worked well.
I removed all files under ${DBDIR} and start spam/ham learning from
scratch. At first 'rspamc learn_spam' completed successfully. But
after a week or so same error happened again.
rspamc learn_ham
always succeeds.Relevant logs (see details here):
When executing
rspamc learn_spam
following messages are written tolog file.
Expected results:
rspamc learn_spam
completes successfully.Actual results:
rspamc learn_spam
fails as following.yasu@eastasia[2041]% rspamc learn_spam ~/tmp/spam01.txt ~
Results for file: /home/yasu/tmp/spam01.txt (0.024 seconds)
HTTP error: 500, Unknown statistics error
Configuration (e.g.
rspamadm configdump module
):I don't make any customization about spam learning.
The text was updated successfully, but these errors were encountered: