What does the following error mean: ERROR: (7008-54-441) DB file is the wrong size – run sanitizer

What does the following error mean: ERROR: (7008-54-441) DB file is the wrong size – run sanitizer.

DB file is the wrong size is typically caused by corruption in the databases from a terminally halted processing run (i.e. system shutdown or a killall command). When that happens, the system looks for latent lock.udb file and if found will roll back to the last backup (if present). If the backup is gone and your database is corrupt then you should delete the most recent month’s data and reprocess. Sanitizing a certain day in the context of a corrupt db will actually only worsen the problem (well, technically, but it won’t make the solution any more drastic — rolling back or deleting the month).