milomak

sonarr v2 to v3

Sep 27th, 2021 (edited)
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 21-9-27 21:41:12.3|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  2. 21-9-27 21:41:12.5|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  3. 21-9-27 21:41:12.5|Debug|ProcessProvider| - [20040] Sonarr
  4. 21-9-27 21:41:12.6|Info|Router|Application mode: Interactive
  5. 21-9-27 21:41:12.6|Debug|Router|Console selected
  6. 21-9-27 21:41:13.1|Info|DatabaseRestorationService|Restoring Database
  7. 21-9-27 21:41:13.1|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  8. 21-9-27 21:41:13.7|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  9. 21-9-27 21:41:13.7|Debug|MigrationLogger|Beginning Transaction
  10. 21-9-27 21:41:13.7|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  11. 21-9-27 21:41:13.7|Debug|MigrationLogger|AlterTable EpisodeFiles
  12. 21-9-27 21:41:13.7|Debug|MigrationLogger|
  13. 21-9-27 21:41:13.7|Debug|MigrationLogger|Took: 00:00:00.0013480
  14. 21-9-27 21:41:13.7|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  15. 21-9-27 21:41:13.7|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  16. 21-9-27 21:41:13.7|Debug|MigrationLogger|Took: 00:00:00.0191980
  17. 21-9-27 21:41:13.8|Debug|MigrationLogger|AlterTable History
  18. 21-9-27 21:41:13.8|Debug|MigrationLogger|
  19. 21-9-27 21:41:13.8|Debug|MigrationLogger|Took: 00:00:00.0003550
  20. 21-9-27 21:41:13.8|Debug|MigrationLogger|CreateColumn History Language Int32
  21. 21-9-27 21:41:13.8|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  22. 21-9-27 21:41:13.8|Debug|MigrationLogger|Took: 00:00:00.0021810
  23. 21-9-27 21:41:13.8|Debug|MigrationLogger|AlterTable Blacklist
  24. 21-9-27 21:41:13.8|Debug|MigrationLogger|
  25. 21-9-27 21:41:13.8|Debug|MigrationLogger|Took: 00:00:00.0003490
  26. 21-9-27 21:41:13.8|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  27. 21-9-27 21:41:13.8|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  28. 21-9-27 21:41:13.8|Debug|MigrationLogger|Took: 00:00:00.0020400
  29. 21-9-27 21:41:13.8|Debug|MigrationLogger|PerformDBOperation
  30. 21-9-27 21:41:13.8|Debug|MigrationLogger|Performing DB Operation
  31. 21-9-27 21:41:14.0|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  32. database disk image is malformed
  33. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  34. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  35. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  36. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  37. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  38. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  39. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  40. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  41. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  42. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  43. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  44. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  45. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  46. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  47. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  48.  
  49. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  50. database disk image is malformed
  51. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  52. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  53. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  54. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  55. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  56. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  57. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  58. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  59. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  60. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  61. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  62. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  63. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  64. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  65. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  66.  
  67. 21-9-27 21:41:14.1|Debug|MigrationLogger|Rolling back transaction
  68. 21-9-27 21:41:14.1|Fatal|ConsoleApp|EPIC FAIL!
  69.  
  70. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  71. database disk image is malformed
  72. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  73. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  74. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  75. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  76. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  77. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  78. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  79. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  80. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  81. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  82. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  83. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  84. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  85. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  86. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  87. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  88. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  89. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  90. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  91. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  92. --- End of inner exception stack trace ---
  93. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  94. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  95. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  96. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  97. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  98. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  99. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  100. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  101. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  102.  
  103. 21-9-27 21:45:05.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  104. 21-9-27 21:45:06.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  105. 21-9-27 21:45:06.0|Debug|ProcessProvider| - [20111] Sonarr
  106. 21-9-27 21:45:06.0|Info|Router|Application mode: Interactive
  107. 21-9-27 21:45:06.0|Debug|Router|Console selected
  108. 21-9-27 21:45:06.6|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  109. 21-9-27 21:45:07.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  110. 21-9-27 21:45:07.0|Debug|MigrationLogger|Beginning Transaction
  111. 21-9-27 21:45:07.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  112. 21-9-27 21:45:07.1|Debug|MigrationLogger|AlterTable EpisodeFiles
  113. 21-9-27 21:45:07.1|Debug|MigrationLogger|
  114. 21-9-27 21:45:07.1|Debug|MigrationLogger|Took: 00:00:00.0013730
  115. 21-9-27 21:45:07.1|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  116. 21-9-27 21:45:07.1|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  117. 21-9-27 21:45:07.1|Debug|MigrationLogger|Took: 00:00:00.0192600
  118. 21-9-27 21:45:07.1|Debug|MigrationLogger|AlterTable History
  119. 21-9-27 21:45:07.1|Debug|MigrationLogger|
  120. 21-9-27 21:45:07.1|Debug|MigrationLogger|Took: 00:00:00.0003440
  121. 21-9-27 21:45:07.1|Debug|MigrationLogger|CreateColumn History Language Int32
  122. 21-9-27 21:45:07.1|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  123. 21-9-27 21:45:07.1|Debug|MigrationLogger|Took: 00:00:00.0021260
  124. 21-9-27 21:45:07.1|Debug|MigrationLogger|AlterTable Blacklist
  125. 21-9-27 21:45:07.1|Debug|MigrationLogger|
  126. 21-9-27 21:45:07.1|Debug|MigrationLogger|Took: 00:00:00.0003550
  127. 21-9-27 21:45:07.1|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  128. 21-9-27 21:45:07.1|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  129. 21-9-27 21:45:07.1|Debug|MigrationLogger|Took: 00:00:00.0020680
  130. 21-9-27 21:45:07.1|Debug|MigrationLogger|PerformDBOperation
  131. 21-9-27 21:45:07.1|Debug|MigrationLogger|Performing DB Operation
  132. 21-9-27 21:45:07.3|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  133. database disk image is malformed
  134. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  135. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  136. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  137. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  138. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  139. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  140. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  141. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  142. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  143. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  144. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  145. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  146. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  147. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  148. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  149.  
  150. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  151. database disk image is malformed
  152. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  153. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  154. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  155. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  156. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  157. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  158. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  159. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  160. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  161. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  162. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  163. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  164. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  165. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  166. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  167.  
  168. 21-9-27 21:45:07.4|Debug|MigrationLogger|Rolling back transaction
  169. 21-9-27 21:45:07.5|Fatal|ConsoleApp|EPIC FAIL!
  170.  
  171. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  172. database disk image is malformed
  173. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  174. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  175. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  176. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  177. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  178. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  179. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  180. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  181. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  182. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  183. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  184. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  185. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  186. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  187. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  188. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  189. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  190. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  191. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  192. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  193. --- End of inner exception stack trace ---
  194. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  195. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  196. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  197. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  198. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  199. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  200. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  201. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  202. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  203.  
  204. 21-9-27 21:45:12.1|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  205. 21-9-27 21:45:12.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  206. 21-9-27 21:45:12.4|Debug|ProcessProvider| - [20128] Sonarr
  207. 21-9-27 21:45:12.5|Info|Router|Application mode: Interactive
  208. 21-9-27 21:45:12.5|Debug|Router|Console selected
  209. 21-9-27 21:45:13.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  210. 21-9-27 21:45:13.4|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  211. 21-9-27 21:45:13.5|Debug|MigrationLogger|Beginning Transaction
  212. 21-9-27 21:45:13.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  213. 21-9-27 21:45:13.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  214. 21-9-27 21:45:13.5|Debug|MigrationLogger|
  215. 21-9-27 21:45:13.5|Debug|MigrationLogger|Took: 00:00:00.0013980
  216. 21-9-27 21:45:13.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  217. 21-9-27 21:45:13.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  218. 21-9-27 21:45:13.5|Debug|MigrationLogger|Took: 00:00:00.0191490
  219. 21-9-27 21:45:13.5|Debug|MigrationLogger|AlterTable History
  220. 21-9-27 21:45:13.5|Debug|MigrationLogger|
  221. 21-9-27 21:45:13.5|Debug|MigrationLogger|Took: 00:00:00.0003710
  222. 21-9-27 21:45:13.5|Debug|MigrationLogger|CreateColumn History Language Int32
  223. 21-9-27 21:45:13.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  224. 21-9-27 21:45:13.5|Debug|MigrationLogger|Took: 00:00:00.0021430
  225. 21-9-27 21:45:13.5|Debug|MigrationLogger|AlterTable Blacklist
  226. 21-9-27 21:45:13.5|Debug|MigrationLogger|
  227. 21-9-27 21:45:13.5|Debug|MigrationLogger|Took: 00:00:00.0003650
  228. 21-9-27 21:45:13.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  229. 21-9-27 21:45:13.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  230. 21-9-27 21:45:13.5|Debug|MigrationLogger|Took: 00:00:00.0021320
  231. 21-9-27 21:45:13.5|Debug|MigrationLogger|PerformDBOperation
  232. 21-9-27 21:45:13.5|Debug|MigrationLogger|Performing DB Operation
  233. 21-9-27 21:45:13.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  234. database disk image is malformed
  235. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  236. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  237. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  238. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  239. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  240. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  241. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  242. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  243. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  244. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  245. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  246. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  247. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  248. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  249. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  250.  
  251. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  252. database disk image is malformed
  253. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  254. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  255. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  256. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  257. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  258. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  259. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  260. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  261. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  262. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  263. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  264. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  265. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  266. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  267. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  268.  
  269. 21-9-27 21:45:13.9|Debug|MigrationLogger|Rolling back transaction
  270. 21-9-27 21:45:13.9|Fatal|ConsoleApp|EPIC FAIL!
  271.  
  272. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  273. database disk image is malformed
  274. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  275. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  276. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  277. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  278. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  279. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  280. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  281. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  282. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  283. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  284. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  285. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  286. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  287. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  288. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  289. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  290. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  291. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  292. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  293. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  294. --- End of inner exception stack trace ---
  295. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  296. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  297. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  298. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  299. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  300. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  301. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  302. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  303. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  304.  
  305. 21-9-27 21:45:18.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  306. 21-9-27 21:45:19.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  307. 21-9-27 21:45:19.0|Debug|ProcessProvider| - [20142] Sonarr
  308. 21-9-27 21:45:19.0|Info|Router|Application mode: Interactive
  309. 21-9-27 21:45:19.0|Debug|Router|Console selected
  310. 21-9-27 21:45:19.6|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  311. 21-9-27 21:45:20.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  312. 21-9-27 21:45:20.1|Debug|MigrationLogger|Beginning Transaction
  313. 21-9-27 21:45:20.1|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  314. 21-9-27 21:45:20.1|Debug|MigrationLogger|AlterTable EpisodeFiles
  315. 21-9-27 21:45:20.1|Debug|MigrationLogger|
  316. 21-9-27 21:45:20.1|Debug|MigrationLogger|Took: 00:00:00.0013910
  317. 21-9-27 21:45:20.1|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  318. 21-9-27 21:45:20.1|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  319. 21-9-27 21:45:20.1|Debug|MigrationLogger|Took: 00:00:00.0192490
  320. 21-9-27 21:45:20.1|Debug|MigrationLogger|AlterTable History
  321. 21-9-27 21:45:20.1|Debug|MigrationLogger|
  322. 21-9-27 21:45:20.1|Debug|MigrationLogger|Took: 00:00:00.0003530
  323. 21-9-27 21:45:20.1|Debug|MigrationLogger|CreateColumn History Language Int32
  324. 21-9-27 21:45:20.1|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  325. 21-9-27 21:45:20.1|Debug|MigrationLogger|Took: 00:00:00.0020620
  326. 21-9-27 21:45:20.1|Debug|MigrationLogger|AlterTable Blacklist
  327. 21-9-27 21:45:20.1|Debug|MigrationLogger|
  328. 21-9-27 21:45:20.1|Debug|MigrationLogger|Took: 00:00:00.0003500
  329. 21-9-27 21:45:20.1|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  330. 21-9-27 21:45:20.1|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  331. 21-9-27 21:45:20.1|Debug|MigrationLogger|Took: 00:00:00.0019940
  332. 21-9-27 21:45:20.1|Debug|MigrationLogger|PerformDBOperation
  333. 21-9-27 21:45:20.1|Debug|MigrationLogger|Performing DB Operation
  334. 21-9-27 21:45:20.4|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  335. database disk image is malformed
  336. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  337. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  338. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  339. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  340. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  341. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  342. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  343. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  344. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  345. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  346. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  347. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  348. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  349. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  350. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  351.  
  352. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  353. database disk image is malformed
  354. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  355. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  356. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  357. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  358. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  359. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  360. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  361. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  362. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  363. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  364. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  365. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  366. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  367. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  368. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  369.  
  370. 21-9-27 21:45:20.5|Debug|MigrationLogger|Rolling back transaction
  371. 21-9-27 21:45:20.5|Fatal|ConsoleApp|EPIC FAIL!
  372.  
  373. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  374. database disk image is malformed
  375. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  376. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  377. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  378. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  379. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  380. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  381. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  382. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  383. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  384. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  385. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  386. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  387. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  388. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  389. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  390. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  391. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  392. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  393. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  394. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  395. --- End of inner exception stack trace ---
  396. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  397. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  398. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  399. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  400. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  401. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  402. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  403. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  404. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  405.  
  406. 21-9-27 21:45:25.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  407. 21-9-27 21:45:25.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  408. 21-9-27 21:45:25.4|Debug|ProcessProvider| - [20154] Sonarr
  409. 21-9-27 21:45:25.5|Info|Router|Application mode: Interactive
  410. 21-9-27 21:45:25.5|Debug|Router|Console selected
  411. 21-9-27 21:45:26.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  412. 21-9-27 21:45:26.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  413. 21-9-27 21:45:26.5|Debug|MigrationLogger|Beginning Transaction
  414. 21-9-27 21:45:26.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  415. 21-9-27 21:45:26.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  416. 21-9-27 21:45:26.5|Debug|MigrationLogger|
  417. 21-9-27 21:45:26.5|Debug|MigrationLogger|Took: 00:00:00.0013700
  418. 21-9-27 21:45:26.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  419. 21-9-27 21:45:26.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  420. 21-9-27 21:45:26.5|Debug|MigrationLogger|Took: 00:00:00.0187700
  421. 21-9-27 21:45:26.5|Debug|MigrationLogger|AlterTable History
  422. 21-9-27 21:45:26.5|Debug|MigrationLogger|
  423. 21-9-27 21:45:26.5|Debug|MigrationLogger|Took: 00:00:00.0003540
  424. 21-9-27 21:45:26.5|Debug|MigrationLogger|CreateColumn History Language Int32
  425. 21-9-27 21:45:26.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  426. 21-9-27 21:45:26.5|Debug|MigrationLogger|Took: 00:00:00.0020890
  427. 21-9-27 21:45:26.5|Debug|MigrationLogger|AlterTable Blacklist
  428. 21-9-27 21:45:26.5|Debug|MigrationLogger|
  429. 21-9-27 21:45:26.5|Debug|MigrationLogger|Took: 00:00:00.0003560
  430. 21-9-27 21:45:26.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  431. 21-9-27 21:45:26.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  432. 21-9-27 21:45:26.5|Debug|MigrationLogger|Took: 00:00:00.0021530
  433. 21-9-27 21:45:26.5|Debug|MigrationLogger|PerformDBOperation
  434. 21-9-27 21:45:26.5|Debug|MigrationLogger|Performing DB Operation
  435. 21-9-27 21:45:26.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  436. database disk image is malformed
  437. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  438. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  439. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  440. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  441. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  442. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  443. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  444. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  445. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  446. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  447. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  448. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  449. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  450. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  451. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  452.  
  453. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  454. database disk image is malformed
  455. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  456. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  457. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  458. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  459. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  460. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  461. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  462. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  463. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  464. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  465. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  466. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  467. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  468. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  469. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  470.  
  471. 21-9-27 21:45:26.9|Debug|MigrationLogger|Rolling back transaction
  472. 21-9-27 21:45:26.9|Fatal|ConsoleApp|EPIC FAIL!
  473.  
  474. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  475. database disk image is malformed
  476. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  477. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  478. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  479. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  480. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  481. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  482. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  483. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  484. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  485. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  486. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  487. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  488. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  489. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  490. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  491. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  492. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  493. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  494. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  495. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  496. --- End of inner exception stack trace ---
  497. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  498. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  499. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  500. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  501. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  502. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  503. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  504. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  505. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  506.  
  507. 21-9-27 21:45:31.4|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  508. 21-9-27 21:45:31.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  509. 21-9-27 21:45:31.7|Debug|ProcessProvider| - [20164] Sonarr
  510. 21-9-27 21:45:31.7|Info|Router|Application mode: Interactive
  511. 21-9-27 21:45:31.7|Debug|Router|Console selected
  512. 21-9-27 21:45:32.2|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  513. 21-9-27 21:45:32.7|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  514. 21-9-27 21:45:32.7|Debug|MigrationLogger|Beginning Transaction
  515. 21-9-27 21:45:32.7|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  516. 21-9-27 21:45:32.7|Debug|MigrationLogger|AlterTable EpisodeFiles
  517. 21-9-27 21:45:32.7|Debug|MigrationLogger|
  518. 21-9-27 21:45:32.7|Debug|MigrationLogger|Took: 00:00:00.0014810
  519. 21-9-27 21:45:32.7|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  520. 21-9-27 21:45:32.8|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  521. 21-9-27 21:45:32.8|Debug|MigrationLogger|Took: 00:00:00.0190020
  522. 21-9-27 21:45:32.8|Debug|MigrationLogger|AlterTable History
  523. 21-9-27 21:45:32.8|Debug|MigrationLogger|
  524. 21-9-27 21:45:32.8|Debug|MigrationLogger|Took: 00:00:00.0003480
  525. 21-9-27 21:45:32.8|Debug|MigrationLogger|CreateColumn History Language Int32
  526. 21-9-27 21:45:32.8|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  527. 21-9-27 21:45:32.8|Debug|MigrationLogger|Took: 00:00:00.0020780
  528. 21-9-27 21:45:32.8|Debug|MigrationLogger|AlterTable Blacklist
  529. 21-9-27 21:45:32.8|Debug|MigrationLogger|
  530. 21-9-27 21:45:32.8|Debug|MigrationLogger|Took: 00:00:00.0003390
  531. 21-9-27 21:45:32.8|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  532. 21-9-27 21:45:32.8|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  533. 21-9-27 21:45:32.8|Debug|MigrationLogger|Took: 00:00:00.0023140
  534. 21-9-27 21:45:32.8|Debug|MigrationLogger|PerformDBOperation
  535. 21-9-27 21:45:32.8|Debug|MigrationLogger|Performing DB Operation
  536. 21-9-27 21:45:33.0|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  537. database disk image is malformed
  538. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  539. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  540. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  541. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  542. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  543. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  544. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  545. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  546. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  547. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  548. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  549. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  550. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  551. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  552. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  553.  
  554. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  555. database disk image is malformed
  556. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  557. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  558. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  559. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  560. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  561. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  562. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  563. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  564. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  565. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  566. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  567. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  568. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  569. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  570. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  571.  
  572. 21-9-27 21:45:33.1|Debug|MigrationLogger|Rolling back transaction
  573. 21-9-27 21:45:33.1|Fatal|ConsoleApp|EPIC FAIL!
  574.  
  575. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  576. database disk image is malformed
  577. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  578. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  579. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  580. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  581. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  582. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  583. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  584. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  585. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  586. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  587. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  588. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  589. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  590. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  591. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  592. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  593. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  594. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  595. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  596. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  597. --- End of inner exception stack trace ---
  598. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  599. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  600. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  601. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  602. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  603. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  604. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  605. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  606. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  607.  
  608. 21-9-27 21:45:38.5|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  609. 21-9-27 21:45:38.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  610. 21-9-27 21:45:38.7|Debug|ProcessProvider| - [20183] Sonarr
  611. 21-9-27 21:45:38.8|Info|Router|Application mode: Interactive
  612. 21-9-27 21:45:38.8|Debug|Router|Console selected
  613. 21-9-27 21:45:39.3|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  614. 21-9-27 21:45:39.8|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  615. 21-9-27 21:45:39.8|Debug|MigrationLogger|Beginning Transaction
  616. 21-9-27 21:45:39.8|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  617. 21-9-27 21:45:39.8|Debug|MigrationLogger|AlterTable EpisodeFiles
  618. 21-9-27 21:45:39.8|Debug|MigrationLogger|
  619. 21-9-27 21:45:39.8|Debug|MigrationLogger|Took: 00:00:00.0014490
  620. 21-9-27 21:45:39.8|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  621. 21-9-27 21:45:39.8|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  622. 21-9-27 21:45:39.8|Debug|MigrationLogger|Took: 00:00:00.0189260
  623. 21-9-27 21:45:39.8|Debug|MigrationLogger|AlterTable History
  624. 21-9-27 21:45:39.8|Debug|MigrationLogger|
  625. 21-9-27 21:45:39.8|Debug|MigrationLogger|Took: 00:00:00.0003550
  626. 21-9-27 21:45:39.8|Debug|MigrationLogger|CreateColumn History Language Int32
  627. 21-9-27 21:45:39.8|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  628. 21-9-27 21:45:39.8|Debug|MigrationLogger|Took: 00:00:00.0021210
  629. 21-9-27 21:45:39.8|Debug|MigrationLogger|AlterTable Blacklist
  630. 21-9-27 21:45:39.8|Debug|MigrationLogger|
  631. 21-9-27 21:45:39.8|Debug|MigrationLogger|Took: 00:00:00.0003590
  632. 21-9-27 21:45:39.8|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  633. 21-9-27 21:45:39.8|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  634. 21-9-27 21:45:39.8|Debug|MigrationLogger|Took: 00:00:00.0023660
  635. 21-9-27 21:45:39.8|Debug|MigrationLogger|PerformDBOperation
  636. 21-9-27 21:45:39.8|Debug|MigrationLogger|Performing DB Operation
  637. 21-9-27 21:45:40.1|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  638. database disk image is malformed
  639. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  640. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  641. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  642. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  643. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  644. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  645. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  646. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  647. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  648. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  649. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  650. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  651. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  652. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  653. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  654.  
  655. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  656. database disk image is malformed
  657. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  658. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  659. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  660. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  661. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  662. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  663. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  664. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  665. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  666. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  667. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  668. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  669. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  670. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  671. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  672.  
  673. 21-9-27 21:45:40.2|Debug|MigrationLogger|Rolling back transaction
  674. 21-9-27 21:45:40.2|Fatal|ConsoleApp|EPIC FAIL!
  675.  
  676. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  677. database disk image is malformed
  678. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  679. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  680. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  681. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  682. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  683. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  684. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  685. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  686. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  687. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  688. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  689. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  690. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  691. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  692. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  693. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  694. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  695. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  696. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  697. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  698. --- End of inner exception stack trace ---
  699. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  700. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  701. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  702. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  703. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  704. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  705. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  706. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  707. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  708.  
  709. 21-9-27 21:45:44.9|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  710. 21-9-27 21:45:45.2|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  711. 21-9-27 21:45:45.2|Debug|ProcessProvider| - [20197] Sonarr
  712. 21-9-27 21:45:45.2|Info|Router|Application mode: Interactive
  713. 21-9-27 21:45:45.2|Debug|Router|Console selected
  714. 21-9-27 21:45:45.7|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  715. 21-9-27 21:45:46.2|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  716. 21-9-27 21:45:46.2|Debug|MigrationLogger|Beginning Transaction
  717. 21-9-27 21:45:46.2|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  718. 21-9-27 21:45:46.2|Debug|MigrationLogger|AlterTable EpisodeFiles
  719. 21-9-27 21:45:46.2|Debug|MigrationLogger|
  720. 21-9-27 21:45:46.2|Debug|MigrationLogger|Took: 00:00:00.0014230
  721. 21-9-27 21:45:46.2|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  722. 21-9-27 21:45:46.2|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  723. 21-9-27 21:45:46.2|Debug|MigrationLogger|Took: 00:00:00.0190020
  724. 21-9-27 21:45:46.2|Debug|MigrationLogger|AlterTable History
  725. 21-9-27 21:45:46.2|Debug|MigrationLogger|
  726. 21-9-27 21:45:46.2|Debug|MigrationLogger|Took: 00:00:00.0003570
  727. 21-9-27 21:45:46.2|Debug|MigrationLogger|CreateColumn History Language Int32
  728. 21-9-27 21:45:46.2|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  729. 21-9-27 21:45:46.2|Debug|MigrationLogger|Took: 00:00:00.0022920
  730. 21-9-27 21:45:46.2|Debug|MigrationLogger|AlterTable Blacklist
  731. 21-9-27 21:45:46.2|Debug|MigrationLogger|
  732. 21-9-27 21:45:46.2|Debug|MigrationLogger|Took: 00:00:00.0003500
  733. 21-9-27 21:45:46.2|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  734. 21-9-27 21:45:46.2|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  735. 21-9-27 21:45:46.2|Debug|MigrationLogger|Took: 00:00:00.0020640
  736. 21-9-27 21:45:46.2|Debug|MigrationLogger|PerformDBOperation
  737. 21-9-27 21:45:46.2|Debug|MigrationLogger|Performing DB Operation
  738. 21-9-27 21:45:46.5|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  739. database disk image is malformed
  740. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  741. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  742. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  743. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  744. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  745. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  746. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  747. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  748. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  749. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  750. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  751. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  752. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  753. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  754. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  755.  
  756. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  757. database disk image is malformed
  758. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  759. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  760. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  761. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  762. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  763. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  764. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  765. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  766. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  767. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  768. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  769. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  770. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  771. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  772. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  773.  
  774. 21-9-27 21:45:46.6|Debug|MigrationLogger|Rolling back transaction
  775. 21-9-27 21:45:46.6|Fatal|ConsoleApp|EPIC FAIL!
  776.  
  777. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  778. database disk image is malformed
  779. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  780. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  781. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  782. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  783. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  784. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  785. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  786. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  787. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  788. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  789. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  790. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  791. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  792. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  793. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  794. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  795. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  796. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  797. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  798. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  799. --- End of inner exception stack trace ---
  800. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  801. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  802. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  803. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  804. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  805. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  806. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  807. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  808. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  809.  
  810. 21-9-27 21:45:51.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  811. 21-9-27 21:45:51.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  812. 21-9-27 21:45:51.4|Debug|ProcessProvider| - [20207] Sonarr
  813. 21-9-27 21:45:51.5|Info|Router|Application mode: Interactive
  814. 21-9-27 21:45:51.5|Debug|Router|Console selected
  815. 21-9-27 21:45:52.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  816. 21-9-27 21:45:52.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  817. 21-9-27 21:45:52.5|Debug|MigrationLogger|Beginning Transaction
  818. 21-9-27 21:45:52.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  819. 21-9-27 21:45:52.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  820. 21-9-27 21:45:52.5|Debug|MigrationLogger|
  821. 21-9-27 21:45:52.5|Debug|MigrationLogger|Took: 00:00:00.0013710
  822. 21-9-27 21:45:52.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  823. 21-9-27 21:45:52.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  824. 21-9-27 21:45:52.5|Debug|MigrationLogger|Took: 00:00:00.0190050
  825. 21-9-27 21:45:52.5|Debug|MigrationLogger|AlterTable History
  826. 21-9-27 21:45:52.5|Debug|MigrationLogger|
  827. 21-9-27 21:45:52.5|Debug|MigrationLogger|Took: 00:00:00.0003480
  828. 21-9-27 21:45:52.5|Debug|MigrationLogger|CreateColumn History Language Int32
  829. 21-9-27 21:45:52.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  830. 21-9-27 21:45:52.5|Debug|MigrationLogger|Took: 00:00:00.0021230
  831. 21-9-27 21:45:52.5|Debug|MigrationLogger|AlterTable Blacklist
  832. 21-9-27 21:45:52.5|Debug|MigrationLogger|
  833. 21-9-27 21:45:52.5|Debug|MigrationLogger|Took: 00:00:00.0003530
  834. 21-9-27 21:45:52.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  835. 21-9-27 21:45:52.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  836. 21-9-27 21:45:52.5|Debug|MigrationLogger|Took: 00:00:00.0024080
  837. 21-9-27 21:45:52.5|Debug|MigrationLogger|PerformDBOperation
  838. 21-9-27 21:45:52.5|Debug|MigrationLogger|Performing DB Operation
  839. 21-9-27 21:45:52.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  840. database disk image is malformed
  841. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  842. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  843. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  844. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  845. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  846. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  847. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  848. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  849. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  850. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  851. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  852. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  853. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  854. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  855. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  856.  
  857. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  858. database disk image is malformed
  859. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  860. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  861. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  862. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  863. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  864. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  865. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  866. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  867. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  868. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  869. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  870. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  871. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  872. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  873. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  874.  
  875. 21-9-27 21:45:52.9|Debug|MigrationLogger|Rolling back transaction
  876. 21-9-27 21:45:52.9|Fatal|ConsoleApp|EPIC FAIL!
  877.  
  878. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  879. database disk image is malformed
  880. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  881. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  882. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  883. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  884. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  885. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  886. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  887. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  888. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  889. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  890. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  891. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  892. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  893. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  894. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  895. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  896. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  897. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  898. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  899. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  900. --- End of inner exception stack trace ---
  901. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  902. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  903. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  904. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  905. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  906. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  907. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  908. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  909. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  910.  
  911. 21-9-27 21:45:57.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  912. 21-9-27 21:45:58.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  913. 21-9-27 21:45:58.0|Debug|ProcessProvider| - [20218] Sonarr
  914. 21-9-27 21:45:58.0|Info|Router|Application mode: Interactive
  915. 21-9-27 21:45:58.0|Debug|Router|Console selected
  916. 21-9-27 21:45:58.6|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  917. 21-9-27 21:45:59.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  918. 21-9-27 21:45:59.0|Debug|MigrationLogger|Beginning Transaction
  919. 21-9-27 21:45:59.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  920. 21-9-27 21:45:59.0|Debug|MigrationLogger|AlterTable EpisodeFiles
  921. 21-9-27 21:45:59.1|Debug|MigrationLogger|
  922. 21-9-27 21:45:59.1|Debug|MigrationLogger|Took: 00:00:00.0013990
  923. 21-9-27 21:45:59.1|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  924. 21-9-27 21:45:59.1|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  925. 21-9-27 21:45:59.1|Debug|MigrationLogger|Took: 00:00:00.0193590
  926. 21-9-27 21:45:59.1|Debug|MigrationLogger|AlterTable History
  927. 21-9-27 21:45:59.1|Debug|MigrationLogger|
  928. 21-9-27 21:45:59.1|Debug|MigrationLogger|Took: 00:00:00.0003530
  929. 21-9-27 21:45:59.1|Debug|MigrationLogger|CreateColumn History Language Int32
  930. 21-9-27 21:45:59.1|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  931. 21-9-27 21:45:59.1|Debug|MigrationLogger|Took: 00:00:00.0021090
  932. 21-9-27 21:45:59.1|Debug|MigrationLogger|AlterTable Blacklist
  933. 21-9-27 21:45:59.1|Debug|MigrationLogger|
  934. 21-9-27 21:45:59.1|Debug|MigrationLogger|Took: 00:00:00.0003510
  935. 21-9-27 21:45:59.1|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  936. 21-9-27 21:45:59.1|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  937. 21-9-27 21:45:59.1|Debug|MigrationLogger|Took: 00:00:00.0020820
  938. 21-9-27 21:45:59.1|Debug|MigrationLogger|PerformDBOperation
  939. 21-9-27 21:45:59.1|Debug|MigrationLogger|Performing DB Operation
  940. 21-9-27 21:45:59.3|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  941. database disk image is malformed
  942. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  943. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  944. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  945. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  946. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  947. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  948. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  949. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  950. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  951. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  952. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  953. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  954. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  955. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  956. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  957.  
  958. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  959. database disk image is malformed
  960. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  961. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  962. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  963. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  964. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  965. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  966. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  967. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  968. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  969. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  970. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  971. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  972. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  973. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  974. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  975.  
  976. 21-9-27 21:45:59.4|Debug|MigrationLogger|Rolling back transaction
  977. 21-9-27 21:45:59.5|Fatal|ConsoleApp|EPIC FAIL!
  978.  
  979. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  980. database disk image is malformed
  981. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  982. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  983. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  984. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  985. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  986. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  987. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  988. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  989. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  990. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  991. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  992. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  993. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  994. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  995. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  996. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  997. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  998. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  999. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1000. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1001. --- End of inner exception stack trace ---
  1002. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1003. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1004. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1005. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1006. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1007. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1008. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1009. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1010. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1011.  
  1012. 21-9-27 21:46:04.1|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1013. 21-9-27 21:46:04.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1014. 21-9-27 21:46:04.4|Debug|ProcessProvider| - [20228] Sonarr
  1015. 21-9-27 21:46:04.4|Info|Router|Application mode: Interactive
  1016. 21-9-27 21:46:04.4|Debug|Router|Console selected
  1017. 21-9-27 21:46:05.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1018. 21-9-27 21:46:05.4|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1019. 21-9-27 21:46:05.4|Debug|MigrationLogger|Beginning Transaction
  1020. 21-9-27 21:46:05.4|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1021. 21-9-27 21:46:05.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  1022. 21-9-27 21:46:05.5|Debug|MigrationLogger|
  1023. 21-9-27 21:46:05.5|Debug|MigrationLogger|Took: 00:00:00.0013570
  1024. 21-9-27 21:46:05.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1025. 21-9-27 21:46:05.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1026. 21-9-27 21:46:05.5|Debug|MigrationLogger|Took: 00:00:00.0190800
  1027. 21-9-27 21:46:05.5|Debug|MigrationLogger|AlterTable History
  1028. 21-9-27 21:46:05.5|Debug|MigrationLogger|
  1029. 21-9-27 21:46:05.5|Debug|MigrationLogger|Took: 00:00:00.0003630
  1030. 21-9-27 21:46:05.5|Debug|MigrationLogger|CreateColumn History Language Int32
  1031. 21-9-27 21:46:05.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1032. 21-9-27 21:46:05.5|Debug|MigrationLogger|Took: 00:00:00.0021780
  1033. 21-9-27 21:46:05.5|Debug|MigrationLogger|AlterTable Blacklist
  1034. 21-9-27 21:46:05.5|Debug|MigrationLogger|
  1035. 21-9-27 21:46:05.5|Debug|MigrationLogger|Took: 00:00:00.0003510
  1036. 21-9-27 21:46:05.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1037. 21-9-27 21:46:05.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1038. 21-9-27 21:46:05.5|Debug|MigrationLogger|Took: 00:00:00.0020210
  1039. 21-9-27 21:46:05.5|Debug|MigrationLogger|PerformDBOperation
  1040. 21-9-27 21:46:05.5|Debug|MigrationLogger|Performing DB Operation
  1041. 21-9-27 21:46:05.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1042. database disk image is malformed
  1043. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1044. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1045. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1046. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1047. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1048. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1049. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1050. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1051. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1052. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1053. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1054. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1055. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1056. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1057. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1058.  
  1059. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1060. database disk image is malformed
  1061. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1062. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1063. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1064. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1065. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1066. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1067. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1068. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1069. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1070. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1071. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1072. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1073. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1074. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1075. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1076.  
  1077. 21-9-27 21:46:05.8|Debug|MigrationLogger|Rolling back transaction
  1078. 21-9-27 21:46:05.9|Fatal|ConsoleApp|EPIC FAIL!
  1079.  
  1080. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1081. database disk image is malformed
  1082. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1083. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1084. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1085. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1086. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1087. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1088. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1089. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1090. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1091. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1092. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1093. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1094. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1095. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1096. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1097. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1098. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1099. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1100. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1101. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1102. --- End of inner exception stack trace ---
  1103. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1104. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1105. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1106. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1107. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1108. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1109. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1110. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1111. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1112.  
  1113. 21-9-27 21:46:10.4|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1114. 21-9-27 21:46:10.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1115. 21-9-27 21:46:10.7|Debug|ProcessProvider| - [20239] Sonarr
  1116. 21-9-27 21:46:10.8|Info|Router|Application mode: Interactive
  1117. 21-9-27 21:46:10.8|Debug|Router|Console selected
  1118. 21-9-27 21:46:11.3|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1119. 21-9-27 21:46:11.8|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1120. 21-9-27 21:46:11.8|Debug|MigrationLogger|Beginning Transaction
  1121. 21-9-27 21:46:11.8|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1122. 21-9-27 21:46:11.8|Debug|MigrationLogger|AlterTable EpisodeFiles
  1123. 21-9-27 21:46:11.8|Debug|MigrationLogger|
  1124. 21-9-27 21:46:11.8|Debug|MigrationLogger|Took: 00:00:00.0013850
  1125. 21-9-27 21:46:11.8|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1126. 21-9-27 21:46:11.8|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1127. 21-9-27 21:46:11.8|Debug|MigrationLogger|Took: 00:00:00.0188840
  1128. 21-9-27 21:46:11.8|Debug|MigrationLogger|AlterTable History
  1129. 21-9-27 21:46:11.8|Debug|MigrationLogger|
  1130. 21-9-27 21:46:11.8|Debug|MigrationLogger|Took: 00:00:00.0003600
  1131. 21-9-27 21:46:11.8|Debug|MigrationLogger|CreateColumn History Language Int32
  1132. 21-9-27 21:46:11.8|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1133. 21-9-27 21:46:11.8|Debug|MigrationLogger|Took: 00:00:00.0021310
  1134. 21-9-27 21:46:11.8|Debug|MigrationLogger|AlterTable Blacklist
  1135. 21-9-27 21:46:11.8|Debug|MigrationLogger|
  1136. 21-9-27 21:46:11.8|Debug|MigrationLogger|Took: 00:00:00.0003530
  1137. 21-9-27 21:46:11.8|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1138. 21-9-27 21:46:11.8|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1139. 21-9-27 21:46:11.8|Debug|MigrationLogger|Took: 00:00:00.0021010
  1140. 21-9-27 21:46:11.8|Debug|MigrationLogger|PerformDBOperation
  1141. 21-9-27 21:46:11.8|Debug|MigrationLogger|Performing DB Operation
  1142. 21-9-27 21:46:12.1|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1143. database disk image is malformed
  1144. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1145. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1146. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1147. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1148. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1149. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1150. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1151. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1152. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1153. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1154. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1155. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1156. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1157. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1158. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1159.  
  1160. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1161. database disk image is malformed
  1162. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1163. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1164. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1165. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1166. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1167. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1168. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1169. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1170. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1171. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1172. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1173. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1174. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1175. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1176. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1177.  
  1178. 21-9-27 21:46:12.2|Debug|MigrationLogger|Rolling back transaction
  1179. 21-9-27 21:46:12.2|Fatal|ConsoleApp|EPIC FAIL!
  1180.  
  1181. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1182. database disk image is malformed
  1183. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1184. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1185. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1186. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1187. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1188. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1189. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1190. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1191. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1192. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1193. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1194. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1195. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1196. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1197. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1198. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1199. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1200. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1201. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1202. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1203. --- End of inner exception stack trace ---
  1204. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1205. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1206. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1207. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1208. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1209. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1210. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1211. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1212. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1213.  
  1214. 21-9-27 21:46:17.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1215. 21-9-27 21:46:17.5|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1216. 21-9-27 21:46:17.5|Debug|ProcessProvider| - [20251] Sonarr
  1217. 21-9-27 21:46:17.5|Info|Router|Application mode: Interactive
  1218. 21-9-27 21:46:17.5|Debug|Router|Console selected
  1219. 21-9-27 21:46:18.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1220. 21-9-27 21:46:18.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1221. 21-9-27 21:46:18.5|Debug|MigrationLogger|Beginning Transaction
  1222. 21-9-27 21:46:18.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1223. 21-9-27 21:46:18.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  1224. 21-9-27 21:46:18.5|Debug|MigrationLogger|
  1225. 21-9-27 21:46:18.5|Debug|MigrationLogger|Took: 00:00:00.0014300
  1226. 21-9-27 21:46:18.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1227. 21-9-27 21:46:18.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1228. 21-9-27 21:46:18.5|Debug|MigrationLogger|Took: 00:00:00.0190590
  1229. 21-9-27 21:46:18.5|Debug|MigrationLogger|AlterTable History
  1230. 21-9-27 21:46:18.5|Debug|MigrationLogger|
  1231. 21-9-27 21:46:18.5|Debug|MigrationLogger|Took: 00:00:00.0003670
  1232. 21-9-27 21:46:18.5|Debug|MigrationLogger|CreateColumn History Language Int32
  1233. 21-9-27 21:46:18.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1234. 21-9-27 21:46:18.5|Debug|MigrationLogger|Took: 00:00:00.0024250
  1235. 21-9-27 21:46:18.5|Debug|MigrationLogger|AlterTable Blacklist
  1236. 21-9-27 21:46:18.5|Debug|MigrationLogger|
  1237. 21-9-27 21:46:18.5|Debug|MigrationLogger|Took: 00:00:00.0003600
  1238. 21-9-27 21:46:18.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1239. 21-9-27 21:46:18.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1240. 21-9-27 21:46:18.5|Debug|MigrationLogger|Took: 00:00:00.0021780
  1241. 21-9-27 21:46:18.5|Debug|MigrationLogger|PerformDBOperation
  1242. 21-9-27 21:46:18.5|Debug|MigrationLogger|Performing DB Operation
  1243. 21-9-27 21:46:18.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1244. database disk image is malformed
  1245. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1246. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1247. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1248. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1249. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1250. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1251. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1252. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1253. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1254. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1255. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1256. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1257. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1258. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1259. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1260.  
  1261. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1262. database disk image is malformed
  1263. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1264. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1265. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1266. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1267. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1268. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1269. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1270. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1271. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1272. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1273. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1274. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1275. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1276. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1277. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1278.  
  1279. 21-9-27 21:46:18.9|Debug|MigrationLogger|Rolling back transaction
  1280. 21-9-27 21:46:18.9|Fatal|ConsoleApp|EPIC FAIL!
  1281.  
  1282. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1283. database disk image is malformed
  1284. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1285. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1286. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1287. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1288. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1289. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1290. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1291. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1292. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1293. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1294. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1295. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1296. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1297. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1298. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1299. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1300. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1301. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1302. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1303. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1304. --- End of inner exception stack trace ---
  1305. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1306. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1307. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1308. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1309. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1310. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1311. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1312. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1313. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1314.  
  1315. 21-9-27 21:46:23.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1316. 21-9-27 21:46:24.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1317. 21-9-27 21:46:24.0|Debug|ProcessProvider| - [20262] Sonarr
  1318. 21-9-27 21:46:24.0|Info|Router|Application mode: Interactive
  1319. 21-9-27 21:46:24.0|Debug|Router|Console selected
  1320. 21-9-27 21:46:24.5|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1321. 21-9-27 21:46:25.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1322. 21-9-27 21:46:25.0|Debug|MigrationLogger|Beginning Transaction
  1323. 21-9-27 21:46:25.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1324. 21-9-27 21:46:25.0|Debug|MigrationLogger|AlterTable EpisodeFiles
  1325. 21-9-27 21:46:25.0|Debug|MigrationLogger|
  1326. 21-9-27 21:46:25.0|Debug|MigrationLogger|Took: 00:00:00.0014040
  1327. 21-9-27 21:46:25.0|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1328. 21-9-27 21:46:25.0|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1329. 21-9-27 21:46:25.1|Debug|MigrationLogger|Took: 00:00:00.0189670
  1330. 21-9-27 21:46:25.1|Debug|MigrationLogger|AlterTable History
  1331. 21-9-27 21:46:25.1|Debug|MigrationLogger|
  1332. 21-9-27 21:46:25.1|Debug|MigrationLogger|Took: 00:00:00.0003770
  1333. 21-9-27 21:46:25.1|Debug|MigrationLogger|CreateColumn History Language Int32
  1334. 21-9-27 21:46:25.1|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1335. 21-9-27 21:46:25.1|Debug|MigrationLogger|Took: 00:00:00.0020520
  1336. 21-9-27 21:46:25.1|Debug|MigrationLogger|AlterTable Blacklist
  1337. 21-9-27 21:46:25.1|Debug|MigrationLogger|
  1338. 21-9-27 21:46:25.1|Debug|MigrationLogger|Took: 00:00:00.0003520
  1339. 21-9-27 21:46:25.1|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1340. 21-9-27 21:46:25.1|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1341. 21-9-27 21:46:25.1|Debug|MigrationLogger|Took: 00:00:00.0020370
  1342. 21-9-27 21:46:25.1|Debug|MigrationLogger|PerformDBOperation
  1343. 21-9-27 21:46:25.1|Debug|MigrationLogger|Performing DB Operation
  1344. 21-9-27 21:46:25.3|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1345. database disk image is malformed
  1346. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1347. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1348. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1349. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1350. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1351. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1352. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1353. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1354. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1355. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1356. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1357. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1358. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1359. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1360. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1361.  
  1362. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1363. database disk image is malformed
  1364. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1365. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1366. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1367. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1368. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1369. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1370. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1371. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1372. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1373. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1374. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1375. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1376. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1377. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1378. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1379.  
  1380. 21-9-27 21:46:25.4|Debug|MigrationLogger|Rolling back transaction
  1381. 21-9-27 21:46:25.4|Fatal|ConsoleApp|EPIC FAIL!
  1382.  
  1383. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1384. database disk image is malformed
  1385. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1386. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1387. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1388. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1389. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1390. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1391. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1392. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1393. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1394. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1395. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1396. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1397. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1398. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1399. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1400. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1401. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1402. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1403. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1404. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1405. --- End of inner exception stack trace ---
  1406. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1407. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1408. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1409. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1410. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1411. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1412. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1413. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1414. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1415.  
  1416. 21-9-27 21:46:30.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1417. 21-9-27 21:46:30.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1418. 21-9-27 21:46:30.4|Debug|ProcessProvider| - [20273] Sonarr
  1419. 21-9-27 21:46:30.5|Info|Router|Application mode: Interactive
  1420. 21-9-27 21:46:30.5|Debug|Router|Console selected
  1421. 21-9-27 21:46:31.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1422. 21-9-27 21:46:31.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1423. 21-9-27 21:46:31.5|Debug|MigrationLogger|Beginning Transaction
  1424. 21-9-27 21:46:31.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1425. 21-9-27 21:46:31.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  1426. 21-9-27 21:46:31.5|Debug|MigrationLogger|
  1427. 21-9-27 21:46:31.5|Debug|MigrationLogger|Took: 00:00:00.0013760
  1428. 21-9-27 21:46:31.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1429. 21-9-27 21:46:31.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1430. 21-9-27 21:46:31.5|Debug|MigrationLogger|Took: 00:00:00.0188840
  1431. 21-9-27 21:46:31.5|Debug|MigrationLogger|AlterTable History
  1432. 21-9-27 21:46:31.5|Debug|MigrationLogger|
  1433. 21-9-27 21:46:31.5|Debug|MigrationLogger|Took: 00:00:00.0003510
  1434. 21-9-27 21:46:31.5|Debug|MigrationLogger|CreateColumn History Language Int32
  1435. 21-9-27 21:46:31.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1436. 21-9-27 21:46:31.5|Debug|MigrationLogger|Took: 00:00:00.0023130
  1437. 21-9-27 21:46:31.5|Debug|MigrationLogger|AlterTable Blacklist
  1438. 21-9-27 21:46:31.5|Debug|MigrationLogger|
  1439. 21-9-27 21:46:31.5|Debug|MigrationLogger|Took: 00:00:00.0003890
  1440. 21-9-27 21:46:31.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1441. 21-9-27 21:46:31.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1442. 21-9-27 21:46:31.5|Debug|MigrationLogger|Took: 00:00:00.0022030
  1443. 21-9-27 21:46:31.5|Debug|MigrationLogger|PerformDBOperation
  1444. 21-9-27 21:46:31.5|Debug|MigrationLogger|Performing DB Operation
  1445. 21-9-27 21:46:31.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1446. database disk image is malformed
  1447. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1448. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1449. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1450. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1451. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1452. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1453. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1454. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1455. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1456. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1457. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1458. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1459. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1460. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1461. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1462.  
  1463. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1464. database disk image is malformed
  1465. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1466. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1467. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1468. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1469. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1470. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1471. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1472. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1473. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1474. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1475. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1476. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1477. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1478. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1479. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1480.  
  1481. 21-9-27 21:46:31.9|Debug|MigrationLogger|Rolling back transaction
  1482. 21-9-27 21:46:31.9|Fatal|ConsoleApp|EPIC FAIL!
  1483.  
  1484. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1485. database disk image is malformed
  1486. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1487. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1488. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1489. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1490. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1491. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1492. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1493. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1494. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1495. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1496. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1497. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1498. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1499. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1500. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1501. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1502. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1503. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1504. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1505. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1506. --- End of inner exception stack trace ---
  1507. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1508. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1509. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1510. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1511. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1512. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1513. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1514. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1515. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1516.  
  1517. 21-9-27 21:46:36.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1518. 21-9-27 21:46:37.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1519. 21-9-27 21:46:37.0|Debug|ProcessProvider| - [20284] Sonarr
  1520. 21-9-27 21:46:37.0|Info|Router|Application mode: Interactive
  1521. 21-9-27 21:46:37.0|Debug|Router|Console selected
  1522. 21-9-27 21:46:37.5|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1523. 21-9-27 21:46:38.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1524. 21-9-27 21:46:38.0|Debug|MigrationLogger|Beginning Transaction
  1525. 21-9-27 21:46:38.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1526. 21-9-27 21:46:38.0|Debug|MigrationLogger|AlterTable EpisodeFiles
  1527. 21-9-27 21:46:38.0|Debug|MigrationLogger|
  1528. 21-9-27 21:46:38.0|Debug|MigrationLogger|Took: 00:00:00.0013970
  1529. 21-9-27 21:46:38.0|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1530. 21-9-27 21:46:38.0|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1531. 21-9-27 21:46:38.0|Debug|MigrationLogger|Took: 00:00:00.0193380
  1532. 21-9-27 21:46:38.0|Debug|MigrationLogger|AlterTable History
  1533. 21-9-27 21:46:38.0|Debug|MigrationLogger|
  1534. 21-9-27 21:46:38.0|Debug|MigrationLogger|Took: 00:00:00.0003510
  1535. 21-9-27 21:46:38.0|Debug|MigrationLogger|CreateColumn History Language Int32
  1536. 21-9-27 21:46:38.0|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1537. 21-9-27 21:46:38.0|Debug|MigrationLogger|Took: 00:00:00.0020870
  1538. 21-9-27 21:46:38.0|Debug|MigrationLogger|AlterTable Blacklist
  1539. 21-9-27 21:46:38.0|Debug|MigrationLogger|
  1540. 21-9-27 21:46:38.0|Debug|MigrationLogger|Took: 00:00:00.0003460
  1541. 21-9-27 21:46:38.0|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1542. 21-9-27 21:46:38.0|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1543. 21-9-27 21:46:38.0|Debug|MigrationLogger|Took: 00:00:00.0020290
  1544. 21-9-27 21:46:38.0|Debug|MigrationLogger|PerformDBOperation
  1545. 21-9-27 21:46:38.0|Debug|MigrationLogger|Performing DB Operation
  1546. 21-9-27 21:46:38.3|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1547. database disk image is malformed
  1548. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1549. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1550. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1551. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1552. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1553. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1554. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1555. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1556. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1557. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1558. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1559. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1560. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1561. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1562. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1563.  
  1564. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1565. database disk image is malformed
  1566. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1567. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1568. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1569. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1570. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1571. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1572. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1573. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1574. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1575. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1576. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1577. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1578. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1579. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1580. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1581.  
  1582. 21-9-27 21:46:38.4|Debug|MigrationLogger|Rolling back transaction
  1583. 21-9-27 21:46:38.4|Fatal|ConsoleApp|EPIC FAIL!
  1584.  
  1585. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1586. database disk image is malformed
  1587. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1588. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1589. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1590. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1591. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1592. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1593. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1594. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1595. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1596. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1597. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1598. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1599. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1600. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1601. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1602. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1603. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1604. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1605. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1606. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1607. --- End of inner exception stack trace ---
  1608. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1609. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1610. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1611. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1612. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1613. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1614. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1615. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1616. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1617.  
  1618. 21-9-27 21:46:43.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1619. 21-9-27 21:46:43.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1620. 21-9-27 21:46:43.4|Debug|ProcessProvider| - [20298] Sonarr
  1621. 21-9-27 21:46:43.5|Info|Router|Application mode: Interactive
  1622. 21-9-27 21:46:43.5|Debug|Router|Console selected
  1623. 21-9-27 21:46:44.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1624. 21-9-27 21:46:44.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1625. 21-9-27 21:46:44.5|Debug|MigrationLogger|Beginning Transaction
  1626. 21-9-27 21:46:44.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1627. 21-9-27 21:46:44.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  1628. 21-9-27 21:46:44.5|Debug|MigrationLogger|
  1629. 21-9-27 21:46:44.5|Debug|MigrationLogger|Took: 00:00:00.0013830
  1630. 21-9-27 21:46:44.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1631. 21-9-27 21:46:44.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1632. 21-9-27 21:46:44.5|Debug|MigrationLogger|Took: 00:00:00.0192980
  1633. 21-9-27 21:46:44.5|Debug|MigrationLogger|AlterTable History
  1634. 21-9-27 21:46:44.5|Debug|MigrationLogger|
  1635. 21-9-27 21:46:44.5|Debug|MigrationLogger|Took: 00:00:00.0003650
  1636. 21-9-27 21:46:44.5|Debug|MigrationLogger|CreateColumn History Language Int32
  1637. 21-9-27 21:46:44.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1638. 21-9-27 21:46:44.5|Debug|MigrationLogger|Took: 00:00:00.0021160
  1639. 21-9-27 21:46:44.5|Debug|MigrationLogger|AlterTable Blacklist
  1640. 21-9-27 21:46:44.5|Debug|MigrationLogger|
  1641. 21-9-27 21:46:44.5|Debug|MigrationLogger|Took: 00:00:00.0003660
  1642. 21-9-27 21:46:44.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1643. 21-9-27 21:46:44.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1644. 21-9-27 21:46:44.5|Debug|MigrationLogger|Took: 00:00:00.0020380
  1645. 21-9-27 21:46:44.5|Debug|MigrationLogger|PerformDBOperation
  1646. 21-9-27 21:46:44.5|Debug|MigrationLogger|Performing DB Operation
  1647. 21-9-27 21:46:44.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1648. database disk image is malformed
  1649. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1650. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1651. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1652. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1653. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1654. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1655. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1656. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1657. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1658. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1659. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1660. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1661. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1662. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1663. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1664.  
  1665. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1666. database disk image is malformed
  1667. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1668. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1669. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1670. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1671. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1672. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1673. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1674. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1675. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1676. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1677. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1678. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1679. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1680. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1681. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1682.  
  1683. 21-9-27 21:46:44.9|Debug|MigrationLogger|Rolling back transaction
  1684. 21-9-27 21:46:44.9|Fatal|ConsoleApp|EPIC FAIL!
  1685.  
  1686. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1687. database disk image is malformed
  1688. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1689. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1690. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1691. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1692. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1693. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1694. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1695. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1696. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1697. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1698. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1699. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1700. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1701. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1702. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1703. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1704. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1705. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1706. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1707. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1708. --- End of inner exception stack trace ---
  1709. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1710. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1711. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1712. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1713. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1714. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1715. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1716. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1717. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1718.  
  1719. 21-9-27 21:46:49.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1720. 21-9-27 21:46:50.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1721. 21-9-27 21:46:50.0|Debug|ProcessProvider| - [20308] Sonarr
  1722. 21-9-27 21:46:50.0|Info|Router|Application mode: Interactive
  1723. 21-9-27 21:46:50.0|Debug|Router|Console selected
  1724. 21-9-27 21:46:50.6|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1725. 21-9-27 21:46:51.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1726. 21-9-27 21:46:51.0|Debug|MigrationLogger|Beginning Transaction
  1727. 21-9-27 21:46:51.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1728. 21-9-27 21:46:51.1|Debug|MigrationLogger|AlterTable EpisodeFiles
  1729. 21-9-27 21:46:51.1|Debug|MigrationLogger|
  1730. 21-9-27 21:46:51.1|Debug|MigrationLogger|Took: 00:00:00.0015270
  1731. 21-9-27 21:46:51.1|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1732. 21-9-27 21:46:51.1|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1733. 21-9-27 21:46:51.1|Debug|MigrationLogger|Took: 00:00:00.0197290
  1734. 21-9-27 21:46:51.1|Debug|MigrationLogger|AlterTable History
  1735. 21-9-27 21:46:51.1|Debug|MigrationLogger|
  1736. 21-9-27 21:46:51.1|Debug|MigrationLogger|Took: 00:00:00.0003630
  1737. 21-9-27 21:46:51.1|Debug|MigrationLogger|CreateColumn History Language Int32
  1738. 21-9-27 21:46:51.1|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1739. 21-9-27 21:46:51.1|Debug|MigrationLogger|Took: 00:00:00.0021840
  1740. 21-9-27 21:46:51.1|Debug|MigrationLogger|AlterTable Blacklist
  1741. 21-9-27 21:46:51.1|Debug|MigrationLogger|
  1742. 21-9-27 21:46:51.1|Debug|MigrationLogger|Took: 00:00:00.0003560
  1743. 21-9-27 21:46:51.1|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1744. 21-9-27 21:46:51.1|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1745. 21-9-27 21:46:51.1|Debug|MigrationLogger|Took: 00:00:00.0022460
  1746. 21-9-27 21:46:51.1|Debug|MigrationLogger|PerformDBOperation
  1747. 21-9-27 21:46:51.1|Debug|MigrationLogger|Performing DB Operation
  1748. 21-9-27 21:46:51.4|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1749. database disk image is malformed
  1750. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1751. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1752. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1753. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1754. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1755. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1756. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1757. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1758. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1759. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1760. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1761. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1762. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1763. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1764. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1765.  
  1766. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1767. database disk image is malformed
  1768. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1769. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1770. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1771. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1772. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1773. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1774. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1775. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1776. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1777. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1778. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1779. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1780. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1781. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1782. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1783.  
  1784. 21-9-27 21:46:51.4|Debug|MigrationLogger|Rolling back transaction
  1785. 21-9-27 21:46:51.5|Fatal|ConsoleApp|EPIC FAIL!
  1786.  
  1787. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1788. database disk image is malformed
  1789. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1790. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1791. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1792. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1793. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1794. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1795. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1796. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1797. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1798. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1799. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1800. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1801. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1802. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1803. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1804. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1805. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1806. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1807. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1808. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1809. --- End of inner exception stack trace ---
  1810. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1811. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1812. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1813. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1814. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1815. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1816. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1817. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1818. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1819.  
  1820. 21-9-27 21:46:56.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1821. 21-9-27 21:46:56.5|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1822. 21-9-27 21:46:56.5|Debug|ProcessProvider| - [20320] Sonarr
  1823. 21-9-27 21:46:56.5|Info|Router|Application mode: Interactive
  1824. 21-9-27 21:46:56.5|Debug|Router|Console selected
  1825. 21-9-27 21:46:57.1|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1826. 21-9-27 21:46:57.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1827. 21-9-27 21:46:57.5|Debug|MigrationLogger|Beginning Transaction
  1828. 21-9-27 21:46:57.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1829. 21-9-27 21:46:57.6|Debug|MigrationLogger|AlterTable EpisodeFiles
  1830. 21-9-27 21:46:57.6|Debug|MigrationLogger|
  1831. 21-9-27 21:46:57.6|Debug|MigrationLogger|Took: 00:00:00.0016800
  1832. 21-9-27 21:46:57.6|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1833. 21-9-27 21:46:57.6|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1834. 21-9-27 21:46:57.6|Debug|MigrationLogger|Took: 00:00:00.0190140
  1835. 21-9-27 21:46:57.6|Debug|MigrationLogger|AlterTable History
  1836. 21-9-27 21:46:57.6|Debug|MigrationLogger|
  1837. 21-9-27 21:46:57.6|Debug|MigrationLogger|Took: 00:00:00.0003710
  1838. 21-9-27 21:46:57.6|Debug|MigrationLogger|CreateColumn History Language Int32
  1839. 21-9-27 21:46:57.6|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1840. 21-9-27 21:46:57.6|Debug|MigrationLogger|Took: 00:00:00.0020870
  1841. 21-9-27 21:46:57.6|Debug|MigrationLogger|AlterTable Blacklist
  1842. 21-9-27 21:46:57.6|Debug|MigrationLogger|
  1843. 21-9-27 21:46:57.6|Debug|MigrationLogger|Took: 00:00:00.0003520
  1844. 21-9-27 21:46:57.6|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1845. 21-9-27 21:46:57.6|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1846. 21-9-27 21:46:57.6|Debug|MigrationLogger|Took: 00:00:00.0020920
  1847. 21-9-27 21:46:57.6|Debug|MigrationLogger|PerformDBOperation
  1848. 21-9-27 21:46:57.6|Debug|MigrationLogger|Performing DB Operation
  1849. 21-9-27 21:46:57.9|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1850. database disk image is malformed
  1851. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1852. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1853. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1854. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1855. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1856. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1857. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1858. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1859. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1860. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1861. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1862. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1863. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1864. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1865. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1866.  
  1867. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1868. database disk image is malformed
  1869. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1870. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1871. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1872. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1873. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1874. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1875. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1876. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1877. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1878. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1879. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1880. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1881. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1882. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1883. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1884.  
  1885. 21-9-27 21:46:57.9|Debug|MigrationLogger|Rolling back transaction
  1886. 21-9-27 21:46:58.0|Fatal|ConsoleApp|EPIC FAIL!
  1887.  
  1888. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1889. database disk image is malformed
  1890. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1891. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1892. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1893. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1894. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1895. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1896. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1897. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1898. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1899. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1900. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1901. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1902. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1903. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1904. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1905. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1906. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1907. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1908. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  1909. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  1910. --- End of inner exception stack trace ---
  1911. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  1912. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  1913. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  1914. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  1915. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  1916. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  1917. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  1918. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  1919. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  1920.  
  1921. 21-9-27 21:47:02.7|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  1922. 21-9-27 21:47:03.0|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  1923. 21-9-27 21:47:03.0|Debug|ProcessProvider| - [20330] Sonarr
  1924. 21-9-27 21:47:03.0|Info|Router|Application mode: Interactive
  1925. 21-9-27 21:47:03.0|Debug|Router|Console selected
  1926. 21-9-27 21:47:03.5|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  1927. 21-9-27 21:47:04.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  1928. 21-9-27 21:47:04.0|Debug|MigrationLogger|Beginning Transaction
  1929. 21-9-27 21:47:04.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  1930. 21-9-27 21:47:04.0|Debug|MigrationLogger|AlterTable EpisodeFiles
  1931. 21-9-27 21:47:04.0|Debug|MigrationLogger|
  1932. 21-9-27 21:47:04.0|Debug|MigrationLogger|Took: 00:00:00.0014600
  1933. 21-9-27 21:47:04.0|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  1934. 21-9-27 21:47:04.0|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1935. 21-9-27 21:47:04.0|Debug|MigrationLogger|Took: 00:00:00.0193900
  1936. 21-9-27 21:47:04.0|Debug|MigrationLogger|AlterTable History
  1937. 21-9-27 21:47:04.0|Debug|MigrationLogger|
  1938. 21-9-27 21:47:04.0|Debug|MigrationLogger|Took: 00:00:00.0003730
  1939. 21-9-27 21:47:04.0|Debug|MigrationLogger|CreateColumn History Language Int32
  1940. 21-9-27 21:47:04.0|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1941. 21-9-27 21:47:04.0|Debug|MigrationLogger|Took: 00:00:00.0021010
  1942. 21-9-27 21:47:04.0|Debug|MigrationLogger|AlterTable Blacklist
  1943. 21-9-27 21:47:04.0|Debug|MigrationLogger|
  1944. 21-9-27 21:47:04.0|Debug|MigrationLogger|Took: 00:00:00.0003530
  1945. 21-9-27 21:47:04.0|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  1946. 21-9-27 21:47:04.0|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  1947. 21-9-27 21:47:04.0|Debug|MigrationLogger|Took: 00:00:00.0020340
  1948. 21-9-27 21:47:04.0|Debug|MigrationLogger|PerformDBOperation
  1949. 21-9-27 21:47:04.0|Debug|MigrationLogger|Performing DB Operation
  1950. 21-9-27 21:47:04.3|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1951. database disk image is malformed
  1952. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1953. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1954. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1955. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1956. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1957. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1958. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1959. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1960. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1961. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1962. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1963. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1964. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1965. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1966. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1967.  
  1968. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  1969. database disk image is malformed
  1970. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1971. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1972. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1973. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1974. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1975. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1976. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1977. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1978. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  1979. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1980. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  1981. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1982. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1983. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1984. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  1985.  
  1986. 21-9-27 21:47:04.4|Debug|MigrationLogger|Rolling back transaction
  1987. 21-9-27 21:47:04.4|Fatal|ConsoleApp|EPIC FAIL!
  1988.  
  1989. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  1990. database disk image is malformed
  1991. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1992. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1993. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1994. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1995. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  1996. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1997. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1998. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  1999. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2000. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2001. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2002. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2003. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2004. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2005. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2006. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2007. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2008. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2009. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  2010. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  2011. --- End of inner exception stack trace ---
  2012. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  2013. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  2014. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  2015. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  2016. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  2017. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  2018. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  2019. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  2020. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  2021.  
  2022. 21-9-27 21:47:09.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  2023. 21-9-27 21:47:09.5|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  2024. 21-9-27 21:47:09.5|Debug|ProcessProvider| - [20340] Sonarr
  2025. 21-9-27 21:47:09.5|Info|Router|Application mode: Interactive
  2026. 21-9-27 21:47:09.5|Debug|Router|Console selected
  2027. 21-9-27 21:47:10.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  2028. 21-9-27 21:47:10.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  2029. 21-9-27 21:47:10.5|Debug|MigrationLogger|Beginning Transaction
  2030. 21-9-27 21:47:10.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  2031. 21-9-27 21:47:10.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  2032. 21-9-27 21:47:10.5|Debug|MigrationLogger|
  2033. 21-9-27 21:47:10.5|Debug|MigrationLogger|Took: 00:00:00.0014030
  2034. 21-9-27 21:47:10.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  2035. 21-9-27 21:47:10.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2036. 21-9-27 21:47:10.5|Debug|MigrationLogger|Took: 00:00:00.0195900
  2037. 21-9-27 21:47:10.5|Debug|MigrationLogger|AlterTable History
  2038. 21-9-27 21:47:10.5|Debug|MigrationLogger|
  2039. 21-9-27 21:47:10.5|Debug|MigrationLogger|Took: 00:00:00.0003870
  2040. 21-9-27 21:47:10.5|Debug|MigrationLogger|CreateColumn History Language Int32
  2041. 21-9-27 21:47:10.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2042. 21-9-27 21:47:10.5|Debug|MigrationLogger|Took: 00:00:00.0021390
  2043. 21-9-27 21:47:10.5|Debug|MigrationLogger|AlterTable Blacklist
  2044. 21-9-27 21:47:10.5|Debug|MigrationLogger|
  2045. 21-9-27 21:47:10.5|Debug|MigrationLogger|Took: 00:00:00.0003570
  2046. 21-9-27 21:47:10.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  2047. 21-9-27 21:47:10.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2048. 21-9-27 21:47:10.5|Debug|MigrationLogger|Took: 00:00:00.0021030
  2049. 21-9-27 21:47:10.5|Debug|MigrationLogger|PerformDBOperation
  2050. 21-9-27 21:47:10.6|Debug|MigrationLogger|Performing DB Operation
  2051. 21-9-27 21:47:10.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2052. database disk image is malformed
  2053. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2054. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2055. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2056. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2057. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2058. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2059. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2060. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2061. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2062. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2063. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2064. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2065. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2066. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2067. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2068.  
  2069. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2070. database disk image is malformed
  2071. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2072. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2073. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2074. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2075. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2076. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2077. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2078. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2079. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2080. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2081. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2082. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2083. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2084. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2085. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2086.  
  2087. 21-9-27 21:47:10.9|Debug|MigrationLogger|Rolling back transaction
  2088. 21-9-27 21:47:10.9|Fatal|ConsoleApp|EPIC FAIL!
  2089.  
  2090. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  2091. database disk image is malformed
  2092. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2093. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2094. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2095. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2096. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2097. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2098. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2099. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2100. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2101. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2102. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2103. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2104. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2105. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2106. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2107. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2108. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2109. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2110. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  2111. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  2112. --- End of inner exception stack trace ---
  2113. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  2114. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  2115. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  2116. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  2117. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  2118. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  2119. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  2120. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  2121. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  2122.  
  2123. 21-9-27 21:47:15.6|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  2124. 21-9-27 21:47:15.9|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  2125. 21-9-27 21:47:15.9|Debug|ProcessProvider| - [20353] Sonarr
  2126. 21-9-27 21:47:16.0|Info|Router|Application mode: Interactive
  2127. 21-9-27 21:47:16.0|Debug|Router|Console selected
  2128. 21-9-27 21:47:16.5|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  2129. 21-9-27 21:47:17.0|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  2130. 21-9-27 21:47:17.0|Debug|MigrationLogger|Beginning Transaction
  2131. 21-9-27 21:47:17.0|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  2132. 21-9-27 21:47:17.0|Debug|MigrationLogger|AlterTable EpisodeFiles
  2133. 21-9-27 21:47:17.0|Debug|MigrationLogger|
  2134. 21-9-27 21:47:17.0|Debug|MigrationLogger|Took: 00:00:00.0017340
  2135. 21-9-27 21:47:17.0|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  2136. 21-9-27 21:47:17.0|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2137. 21-9-27 21:47:17.0|Debug|MigrationLogger|Took: 00:00:00.0191140
  2138. 21-9-27 21:47:17.0|Debug|MigrationLogger|AlterTable History
  2139. 21-9-27 21:47:17.0|Debug|MigrationLogger|
  2140. 21-9-27 21:47:17.0|Debug|MigrationLogger|Took: 00:00:00.0003650
  2141. 21-9-27 21:47:17.0|Debug|MigrationLogger|CreateColumn History Language Int32
  2142. 21-9-27 21:47:17.0|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2143. 21-9-27 21:47:17.0|Debug|MigrationLogger|Took: 00:00:00.0021680
  2144. 21-9-27 21:47:17.0|Debug|MigrationLogger|AlterTable Blacklist
  2145. 21-9-27 21:47:17.0|Debug|MigrationLogger|
  2146. 21-9-27 21:47:17.0|Debug|MigrationLogger|Took: 00:00:00.0003590
  2147. 21-9-27 21:47:17.0|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  2148. 21-9-27 21:47:17.0|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2149. 21-9-27 21:47:17.0|Debug|MigrationLogger|Took: 00:00:00.0020450
  2150. 21-9-27 21:47:17.0|Debug|MigrationLogger|PerformDBOperation
  2151. 21-9-27 21:47:17.0|Debug|MigrationLogger|Performing DB Operation
  2152. 21-9-27 21:47:17.3|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2153. database disk image is malformed
  2154. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2155. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2156. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2157. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2158. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2159. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2160. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2161. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2162. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2163. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2164. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2165. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2166. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2167. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2168. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2169.  
  2170. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2171. database disk image is malformed
  2172. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2173. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2174. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2175. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2176. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2177. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2178. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2179. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2180. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2181. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2182. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2183. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2184. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2185. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2186. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2187.  
  2188. 21-9-27 21:47:17.4|Debug|MigrationLogger|Rolling back transaction
  2189. 21-9-27 21:47:17.4|Fatal|ConsoleApp|EPIC FAIL!
  2190.  
  2191. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  2192. database disk image is malformed
  2193. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2194. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2195. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2196. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2197. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2198. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2199. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2200. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2201. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2202. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2203. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2204. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2205. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2206. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2207. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2208. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2209. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2210. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2211. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  2212. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  2213. --- End of inner exception stack trace ---
  2214. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  2215. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  2216. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  2217. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  2218. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  2219. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  2220. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  2221. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  2222. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  2223.  
  2224. 21-9-27 21:47:22.2|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  2225. 21-9-27 21:47:22.4|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  2226. 21-9-27 21:47:22.4|Debug|ProcessProvider| - [20367] Sonarr
  2227. 21-9-27 21:47:22.5|Info|Router|Application mode: Interactive
  2228. 21-9-27 21:47:22.5|Debug|Router|Console selected
  2229. 21-9-27 21:47:23.0|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  2230. 21-9-27 21:47:23.5|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  2231. 21-9-27 21:47:23.5|Debug|MigrationLogger|Beginning Transaction
  2232. 21-9-27 21:47:23.5|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  2233. 21-9-27 21:47:23.5|Debug|MigrationLogger|AlterTable EpisodeFiles
  2234. 21-9-27 21:47:23.5|Debug|MigrationLogger|
  2235. 21-9-27 21:47:23.5|Debug|MigrationLogger|Took: 00:00:00.0013670
  2236. 21-9-27 21:47:23.5|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  2237. 21-9-27 21:47:23.5|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2238. 21-9-27 21:47:23.5|Debug|MigrationLogger|Took: 00:00:00.0189650
  2239. 21-9-27 21:47:23.5|Debug|MigrationLogger|AlterTable History
  2240. 21-9-27 21:47:23.5|Debug|MigrationLogger|
  2241. 21-9-27 21:47:23.5|Debug|MigrationLogger|Took: 00:00:00.0003600
  2242. 21-9-27 21:47:23.5|Debug|MigrationLogger|CreateColumn History Language Int32
  2243. 21-9-27 21:47:23.5|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2244. 21-9-27 21:47:23.5|Debug|MigrationLogger|Took: 00:00:00.0021440
  2245. 21-9-27 21:47:23.5|Debug|MigrationLogger|AlterTable Blacklist
  2246. 21-9-27 21:47:23.5|Debug|MigrationLogger|
  2247. 21-9-27 21:47:23.5|Debug|MigrationLogger|Took: 00:00:00.0003520
  2248. 21-9-27 21:47:23.5|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  2249. 21-9-27 21:47:23.5|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2250. 21-9-27 21:47:23.5|Debug|MigrationLogger|Took: 00:00:00.0023670
  2251. 21-9-27 21:47:23.5|Debug|MigrationLogger|PerformDBOperation
  2252. 21-9-27 21:47:23.5|Debug|MigrationLogger|Performing DB Operation
  2253. 21-9-27 21:47:23.8|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2254. database disk image is malformed
  2255. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2256. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2257. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2258. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2259. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2260. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2261. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2262. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2263. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2264. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2265. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2266. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2267. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2268. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2269. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2270.  
  2271. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2272. database disk image is malformed
  2273. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2274. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2275. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2276. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2277. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2278. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2279. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2280. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2281. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2282. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2283. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2284. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2285. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2286. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2287. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2288.  
  2289. 21-9-27 21:47:23.9|Debug|MigrationLogger|Rolling back transaction
  2290. 21-9-27 21:47:23.9|Fatal|ConsoleApp|EPIC FAIL!
  2291.  
  2292. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  2293. database disk image is malformed
  2294. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2295. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2296. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2297. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2298. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2299. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2300. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2301. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2302. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2303. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2304. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2305. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2306. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2307. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2308. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2309. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2310. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2311. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2312. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  2313. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  2314. --- End of inner exception stack trace ---
  2315. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  2316. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  2317. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  2318. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  2319. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  2320. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  2321. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  2322. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  2323. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
  2324.  
  2325. 21-9-27 21:47:28.5|Debug|ProcessProvider|Found 0 processes with the name: Sonarr.Console
  2326. 21-9-27 21:47:28.7|Debug|ProcessProvider|Found 1 processes with the name: Sonarr
  2327. 21-9-27 21:47:28.7|Debug|ProcessProvider| - [20386] Sonarr
  2328. 21-9-27 21:47:28.8|Info|Router|Application mode: Interactive
  2329. 21-9-27 21:47:28.8|Debug|Router|Console selected
  2330. 21-9-27 21:47:29.3|Info|MigrationLogger|*** Checking database for required migrations data source=/var/lib/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
  2331. 21-9-27 21:47:29.8|Info|MigrationLogger|*** 102: add_language_to_episodeFiles_history_and_blacklist migrating ***
  2332. 21-9-27 21:47:29.8|Debug|MigrationLogger|Beginning Transaction
  2333. 21-9-27 21:47:29.8|Info|add_language_to_episodeFiles_history_and_blacklist|Starting migration to 102
  2334. 21-9-27 21:47:29.8|Debug|MigrationLogger|AlterTable EpisodeFiles
  2335. 21-9-27 21:47:29.8|Debug|MigrationLogger|
  2336. 21-9-27 21:47:29.8|Debug|MigrationLogger|Took: 00:00:00.0013800
  2337. 21-9-27 21:47:29.8|Debug|MigrationLogger|CreateColumn EpisodeFiles Language Int32
  2338. 21-9-27 21:47:29.8|Debug|MigrationLogger|ALTER TABLE "EpisodeFiles" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2339. 21-9-27 21:47:29.8|Debug|MigrationLogger|Took: 00:00:00.0193490
  2340. 21-9-27 21:47:29.8|Debug|MigrationLogger|AlterTable History
  2341. 21-9-27 21:47:29.8|Debug|MigrationLogger|
  2342. 21-9-27 21:47:29.8|Debug|MigrationLogger|Took: 00:00:00.0003750
  2343. 21-9-27 21:47:29.8|Debug|MigrationLogger|CreateColumn History Language Int32
  2344. 21-9-27 21:47:29.8|Debug|MigrationLogger|ALTER TABLE "History" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2345. 21-9-27 21:47:29.8|Debug|MigrationLogger|Took: 00:00:00.0022920
  2346. 21-9-27 21:47:29.8|Debug|MigrationLogger|AlterTable Blacklist
  2347. 21-9-27 21:47:29.8|Debug|MigrationLogger|
  2348. 21-9-27 21:47:29.8|Debug|MigrationLogger|Took: 00:00:00.0003550
  2349. 21-9-27 21:47:29.8|Debug|MigrationLogger|CreateColumn Blacklist Language Int32
  2350. 21-9-27 21:47:29.8|Debug|MigrationLogger|ALTER TABLE "Blacklist" ADD COLUMN "Language" INTEGER NOT NULL DEFAULT 0
  2351. 21-9-27 21:47:29.8|Debug|MigrationLogger|Took: 00:00:00.0021070
  2352. 21-9-27 21:47:29.8|Debug|MigrationLogger|PerformDBOperation
  2353. 21-9-27 21:47:29.8|Debug|MigrationLogger|Performing DB Operation
  2354. 21-9-27 21:47:30.1|Error|MigrationLogger|System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2355. database disk image is malformed
  2356. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2357. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2358. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2359. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2360. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2361. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2362. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2363. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2364. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2365. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2366. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2367. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2368. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2369. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2370. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2371.  
  2372. [v3.0.6.1196] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
  2373. database disk image is malformed
  2374. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2375. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2376. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2377. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2378. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2379. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2380. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2381. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2382. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2383. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2384. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2385. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2386. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2387. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2388. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x0006c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2389.  
  2390. 21-9-27 21:47:30.2|Debug|MigrationLogger|Rolling back transaction
  2391. 21-9-27 21:47:30.2|Fatal|ConsoleApp|EPIC FAIL!
  2392.  
  2393. [v3.0.6.1196] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /var/lib/sonarr/sonarr.db is corrupt, restore from backup if available. See: https://wiki.servarr.com/Sonarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
  2394. database disk image is malformed
  2395. at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2396. at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2397. at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2398. at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2399. at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
  2400. at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2401. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2402. at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
  2403. at NzbDrone.Core.Datastore.Migration.add_language_to_episodeFiles_history_and_blacklist.UpdateLanguage (System.Data.IDbConnection conn, System.Data.IDbTransaction tran) [0x001e7] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\102_add_language_to_episodeFiles_history_and_blacklist.cs:87
  2404. at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Process (FluentMigrator.Builders.Execute.PerformDBOperationExpression expression) [0x00038] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2405. at FluentMigrator.Builders.Execute.PerformDBOperationExpression.ExecuteWith (FluentMigrator.IMigrationProcessor processor) [0x00000] in <c16130ff2bfb4746b4fb36de17115e3e>:0
  2406. at FluentMigrator.Runner.MigrationRunner+<>c__DisplayClass72_0.<ExecuteExpressions>b__1 () [0x00011] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2407. at FluentMigrator.Runner.StopWatch.Time (System.Action action) [0x00006] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2408. at FluentMigrator.Runner.MigrationRunner.AnnounceTime (System.String message, System.Action action) [0x0000c] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2409. at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions (System.Collections.Generic.ICollection`1[T] expressions) [0x000a5] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2410. at FluentMigrator.Runner.MigrationRunner.ExecuteMigration (FluentMigrator.IMigration migration, System.Action`2[T1,T2] getExpressions) [0x0005a] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2411. at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp (FluentMigrator.Infrastructure.IMigrationInfo migrationInfo, System.Boolean useTransaction) [0x0010f] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2412. at FluentMigrator.Runner.MigrationRunner.MigrateUp (System.Boolean useAutomaticTransactionManagement) [0x000af] in <137fb96feee44f379d6a8fba4e172d1c>:0
  2413. at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000c0] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:60
  2414. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0000b] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:117
  2415. --- End of inner exception stack trace ---
  2416. at NzbDrone.Core.Datastore.DbFactory.CreateMain (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00045] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:128
  2417. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00027] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:82
  2418. at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:70
  2419. at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\DbFactory.cs:48
  2420. at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\ApplicationServer.cs:60
  2421. at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Router.cs:56
  2422. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:78
  2423. at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x0007f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:41
  2424. at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:42
RAW Paste Data