You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/08/01 18:58:09 UTC
[Bug 5021] New: User goes over quota and bayes token file corruption
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5021
Summary: User goes over quota and bayes token file corruption
Product: Spamassassin
Version: 3.1.3
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: spamassassin
AssignedTo: dev@spamassassin.apache.org
ReportedBy: nbroderick@contractor.verio.net
When a user is at or near the full disk quota and they have bayes_token enabled,
this can cause a condition where the spamd will run out of control and the
bayes_token files will become corrupt for that user.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5021] User goes over quota and bayes token file corruption
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5021
nbroderick@contractor.verio.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From nbroderick@contractor.verio.net 2006-08-01 19:31 -------
First off, thanks for the quick reply on the bug.
The files do get partially written (and that is what is meant by corrupt).
I'm still unsure of how this happens, but at times this causes some kind of race
condition with the spamd deamon. The daemon spins out of control at 100% CPU
and has to be killed and restarted on each system. I traced the problem down to
the bayes token file right before it was being written to. Most of the accounts
that I run have quotas enables as well. I did notice that spamassassin.pm
already includes the Quota.pm module so I didn't think that this was adding any
new requirements.
You are right about the solution only working with quota users and not with disk
full problems. I'll go ahead and change the bug to WORKSFORME and see if I can
come up with a better solution.
Thanks! Spamassassin still is the best!(In reply to comment #3)
> yep -- agreed with Theo.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5021] User goes over quota and bayes token file corruption
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5021
------- Additional Comments From felicity@apache.org 2006-08-01 17:19 -------
fwiw, I'm -1 on the patch. It introduces another requirement (Quota module) and
doesn't fix the issue for the more general case of the filesystem running out of
space.
This said, I don't think there's anything we can do about this in a general
manner. If "corruption" means the file is generally not able to be used, that's
a Berkeley DB issue which is out of our control. If it means "the Bayes magic
values are no longer accurate due to partial writes, etc," I still don't think
there's anything we can do (I don't believe that DB_File has a method to return
an error for a write failure).
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5021] User goes over quota and bayes token file corruption
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5021
------- Additional Comments From nbroderick@contractor.verio.net 2006-08-01 17:01 -------
Created an attachment (id=3618)
--> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3618&action=view)
Bayes token and spamd running out of control fix
This bug has been tested in a large environment and seems to address the over
quota issue. This patch is actually two patches in one.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5021] User goes over quota and bayes token file corruption
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5021
------- Additional Comments From felicity@apache.org 2006-08-01 19:48 -------
(In reply to comment #4)
> First off, thanks for the quick reply on the bug.
> that I run have quotas enables as well. I did notice that spamassassin.pm
> already includes the Quota.pm module so I didn't think that this was adding any
> new requirements.
Interesting. It's not part of the standard code, so your installation seems to
already have some custom patches which may make it easier to integrate locally.
> You are right about the solution only working with quota users and not with disk
> full problems. I'll go ahead and change the bug to WORKSFORME and see if I can
> come up with a better solution.
:)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5021] User goes over quota and bayes token file corruption
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5021
------- Additional Comments From jm@jmason.org 2006-08-01 17:56 -------
yep -- agreed with Theo.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.