When you try to release or delete a message from the spam quarantine, you will see an error saying "An unexpected database error has occurred. Please contact your system administrator." in the Control Center, if there is a problem with the database. You may also see one or more of the following, or similar, error messages in BrightmailLog.log file:
Feb 03 2010 20:03:46 [SmtpConsumer_0000_000] ERROR - Cannot create a spam message in the database.
com.brightmail.common.BrightmailException: Cannot create a spam message in the database.
...
Feb 03 2010 20:07:47 [SmtpConsumer_0000_000] ERROR - Cannot create a spam message in the database.
com.brightmail.dl.DataAccessException: An unexpected database error has occurred. Please contact your system administrator. ; nested exception is:
java.sql.SQLException: Duplicate entry '15' for key 1
at com.brightmail.dl.impl.DAOHelper.executeUpdate(DAOHelper.java:511)
at com.brightmail.dl.impl.QuarantineDAOImpl.createSpamMessage(QuarantineDAOImpl.java:146)
...
Feb 03 2010 20:07:47 [SmtpConsumer_0000_000] ERROR - Cannot create a spam message in the database.
com.brightmail.common.BrightmailException: Cannot create a spam message in the database.
...
Feb 03 2010 20:49:15 [http-41443-Processor4] ERROR - Cannot read the spam message details from the database.
com.brightmail.dl.DataAccessException: An unexpected database error has occurred. Please contact your system administrator. ; nested exception is:
java.sql.SQLException: Table 'spam_message' is marked as crashed and should be repaired
...
Feb 04 2010 01:00:09 [BrightmailScheduler_Worker-2] ERROR - Cannot delete messages older than a specified date.
com.brightmail.dl.DataAccessException: An unexpected database error has occurred. Please contact your system administrator. ; nested exception is:
java.sql.SQLException: Table 'spam_message' is marked as crashed and should be repaired
...
Feb 04 2010 18:19:59 [http-41443-Processor3] ERROR - com.brightmail.common.BrightmailException: Cannot read the spam message details from the database.
...
Feb 04 2010 18:20:21 [http-41443-Processor3] ERROR - Cannot delete the selected spam messages from the database.
com.brightmail.dl.DataAccessException: An unexpected database error has occurred. Please contact your system administrator. ; nested exception is:
java.sql.SQLException: Table 'spam_message' is marked as crashed and should be repaired
All these error messages indicate a problem with the database.
You can view the BrightmailLog.log file from the Control Center as well (click Status > Logs; then select Control Center as the component and choose BrightmailLog.log from the displayed list of log files).