Database keeps corrupting

Hi- I am having a problem with a database that keeps corrupting a few days after I run fixup. The database works fine for a few days after I do the fixup but then the corruption returns. Every time I do the fixup it gives me this message: Document XX in database XX is damaged: Attachment found on more than one document. Any ideas?

Subject: This suggests the corruption is caused by some code…

… that is messing with documents and attachments on a low level, perhaps using the C API. Or maybe it’s changing the UNID of a document that’s already replicated?

Subject: I will check on that, thanks!

Subject: Did you ever find the cause?

I am having the same issue… it reveals itself after COMPACT -B. 23 GB database!!! Fixup resolves the issue only until COMPACT -B is run again. Replicas are unaffected, so a new replica is likely the solution. However, at 23 GB, that will be painful on the network.