I just noticed this recently in my logs:
“Error occurred while executing task MessagingCleanup: database disk image is malformed database disk image is malformed”
Sonarr forums suggested deleting logs.db, which I did. Still getting these errors.
System.Data.SQLite.SQLiteException: database disk image is malformed database disk image is malformed at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) <0x4187f7b0 + 0x0027f> in :0 at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) <0x4187f280 + 0x0014e> in :0 at System.Data.SQLite.SQLiteDataReader.NextResult () <0x41876040 + 0x00741> in :0 at System.Data.SQLite.SQLiteDataReader…ctor (System.Data.SQLite.SQLiteCommand cmd, CommandBehavior behave) <0x41875960 + 0x002b9> in :0 at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader:.ctor (System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior) at System.Data.SQLite.SQLiteCommand.ExecuteReader (CommandBehavior behavior) <0x41874f60 + 0x00043> in :0 at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (CommandBehavior behavior) <0x41874ea0 + 0x00037> in :0 at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () <0x41874e70 + 0x0001b> in :0 at Marr.Data.DataMapper.Delete[T] (System.String tableName, System.Linq.Expressions.Expression1 filter) [0x00091] in M:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\DataMapper.cs:803 at Marr.Data.DataMapper.Delete[T] (System.Linq.Expressions.Expression1 filter) [0x00000] in M:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\DataMapper.cs:777 at NzbDrone.Core.Datastore.BasicRepository1[TModel].Delete (System.Linq.Expressions.Expression1 filter) [0x00000] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Datastore\BasicRepository.cs:61 at NzbDrone.Core.Messaging.Commands.CommandRepository.Trim () [0x00022] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandRepository.cs:35 at NzbDrone.Core.Messaging.Commands.CommandQueueManager.CleanCommands () [0x0007b] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandQueueManager.cs:161 at NzbDrone.Core.Messaging.Commands.CleanupCommandMessagingService.Execute (NzbDrone.Core.Messaging.Commands.MessagingCleanupCommand message) [0x00000] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CleanupCommandMessagingService.cs:14 at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand] (NzbDrone.Core.Messaging.Commands.TCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x00081] in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:77