Unable to open database file v3.0.3.913

Sonarr version v3.0.3.913:
Mono version (if Sonarr is not running on Windows):
OS: Win 7 Pro
Debug logs:
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here. Post in .txt not .doc, .rtf or some other formatted document)
Description of issue:
After full installation with 704 Series. System crashed a bunch of times. Trying by copying backup to main directory fails even with reboot.
Note: System was working fine until I had to do a weekly reboot. Everything in the logs seems ok until the reboot. Then you get this:

Edited last part only of log file. Not to fill the system too much. Hope this helps. Love the V3 verson. So many extra features.

[v3.0.3.913] System.Data.SQLite.SQLiteException (0x80004005): unable to open database file
unable to open database file
   at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at Marr.Data.QGen.UpdateQueryBuilder`1.Execute() in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\QGen\UpdateQueryBuilder.cs:line 156
   at Marr.Data.DataMapper.Update[T](T entity, Expression`1 filter) in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\DataMapper.cs:line 674
   at NzbDrone.Core.Datastore.BasicRepository`1.UpdateMany(IList`1 models) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\BasicRepository.cs:line 175
   at NzbDrone.Core.Tv.EpisodeService.UpdateMany(List`1 episodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\EpisodeService.cs:line 198
   at NzbDrone.Core.Tv.RefreshEpisodeService.RefreshEpisodeInfo(Series series, IEnumerable`1 remoteEpisodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshEpisodeService.cs:line 99
   at NzbDrone.Core.Tv.RefreshSeriesService.RefreshSeriesInfo(Int32 seriesId) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 119
   at NzbDrone.Core.Tv.RefreshSeriesService.Execute(RefreshSeriesCommand message) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 227

20-9-18 09:10:46.3|Info|DiskScanService|Scanning Food Unwrapped
20-9-18 09:10:46.5|Info|DiskScanService|Completed scanning disk for Food Unwrapped
20-9-18 09:10:46.5|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:46.5|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:46.5|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:46.5|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:46.6|Info|RefreshSeriesService|Skipping refresh of series: The Foods that Make Billions
20-9-18 09:10:46.6|Info|DiskScanService|Scanning The Foods that Make Billions
20-9-18 09:10:46.6|Info|DiskScanService|Completed scanning disk for The Foods that Make Billions
20-9-18 09:10:46.6|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:46.6|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:46.6|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:46.6|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:46.6|Info|RefreshSeriesService|Updating For All Mankind
20-9-18 09:10:47.0|Info|RefreshEpisodeService|Starting episode info refresh for: [356202][For All Mankind]
20-9-18 09:10:47.0|Error|RefreshSeriesService|Couldn't refresh info for [356202][For All Mankind]

[v3.0.3.913] System.Data.SQLite.SQLiteException (0x80004005): unable to open database file
unable to open database file
   at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at Marr.Data.QGen.UpdateQueryBuilder`1.Execute() in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\QGen\UpdateQueryBuilder.cs:line 156
   at Marr.Data.DataMapper.Update[T](T entity, Expression`1 filter) in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\DataMapper.cs:line 674
   at NzbDrone.Core.Datastore.BasicRepository`1.UpdateMany(IList`1 models) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\BasicRepository.cs:line 175
   at NzbDrone.Core.Tv.EpisodeService.UpdateMany(List`1 episodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\EpisodeService.cs:line 198
   at NzbDrone.Core.Tv.RefreshEpisodeService.RefreshEpisodeInfo(Series series, IEnumerable`1 remoteEpisodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshEpisodeService.cs:line 99
   at NzbDrone.Core.Tv.RefreshSeriesService.RefreshSeriesInfo(Int32 seriesId) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 119
   at NzbDrone.Core.Tv.RefreshSeriesService.Execute(RefreshSeriesCommand message) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 227

20-9-18 09:10:47.0|Info|DiskScanService|Scanning For All Mankind
20-9-18 09:10:47.0|Info|DiskScanService|Completed scanning disk for For All Mankind
20-9-18 09:10:47.0|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:47.0|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:47.0|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:47.0|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:47.0|Info|RefreshSeriesService|Updating Forensic Files II
20-9-18 09:10:47.3|Info|RefreshEpisodeService|Starting episode info refresh for: [376763][Forensic Files II]
20-9-18 09:10:47.3|Error|RefreshSeriesService|Couldn't refresh info for [376763][Forensic Files II]

[v3.0.3.913] System.Data.SQLite.SQLiteException (0x80004005): unable to open database file
unable to open database file
   at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at Marr.Data.QGen.UpdateQueryBuilder`1.Execute() in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\QGen\UpdateQueryBuilder.cs:line 156
   at Marr.Data.DataMapper.Update[T](T entity, Expression`1 filter) in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\DataMapper.cs:line 674
   at NzbDrone.Core.Datastore.BasicRepository`1.UpdateMany(IList`1 models) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\BasicRepository.cs:line 175
   at NzbDrone.Core.Tv.EpisodeService.UpdateMany(List`1 episodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\EpisodeService.cs:line 198
   at NzbDrone.Core.Tv.RefreshEpisodeService.RefreshEpisodeInfo(Series series, IEnumerable`1 remoteEpisodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshEpisodeService.cs:line 99
   at NzbDrone.Core.Tv.RefreshSeriesService.RefreshSeriesInfo(Int32 seriesId) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 119
   at NzbDrone.Core.Tv.RefreshSeriesService.Execute(RefreshSeriesCommand message) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 227

20-9-18 09:10:47.3|Info|DiskScanService|Scanning Forensic Files II
20-9-18 09:10:47.3|Info|DiskScanService|Completed scanning disk for Forensic Files II
20-9-18 09:10:47.3|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:47.3|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:47.3|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:47.3|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:47.3|Info|RefreshSeriesService|Skipping refresh of series: Forever (2014)
20-9-18 09:10:47.3|Info|DiskScanService|Scanning Forever (2014)
20-9-18 09:10:47.3|Info|DiskScanService|Completed scanning disk for Forever (2014)
20-9-18 09:10:47.4|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:47.4|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:47.4|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:47.4|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:47.4|Info|RefreshSeriesService|Updating Forged in Fire
20-9-18 09:10:47.8|Info|RefreshEpisodeService|Starting episode info refresh for: [296830][Forged in Fire]
20-9-18 09:10:47.8|Error|RefreshSeriesService|Couldn't refresh info for [296830][Forged in Fire]

[v3.0.3.913] System.Data.SQLite.SQLiteException (0x80004005): unable to open database file
unable to open database file
   at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at Marr.Data.QGen.UpdateQueryBuilder`1.Execute() in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\QGen\UpdateQueryBuilder.cs:line 156
   at Marr.Data.DataMapper.Update[T](T entity, Expression`1 filter) in M:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\DataMapper.cs:line 674
   at NzbDrone.Core.Datastore.BasicRepository`1.UpdateMany(IList`1 models) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\BasicRepository.cs:line 175
   at NzbDrone.Core.Tv.EpisodeService.UpdateMany(List`1 episodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\EpisodeService.cs:line 198
   at NzbDrone.Core.Tv.RefreshEpisodeService.RefreshEpisodeInfo(Series series, IEnumerable`1 remoteEpisodes) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshEpisodeService.cs:line 99
   at NzbDrone.Core.Tv.RefreshSeriesService.RefreshSeriesInfo(Int32 seriesId) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 119
   at NzbDrone.Core.Tv.RefreshSeriesService.Execute(RefreshSeriesCommand message) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Tv\RefreshSeriesService.cs:line 227

20-9-18 09:10:47.8|Info|DiskScanService|Scanning Forged in Fire
20-9-18 09:10:48.0|Info|DiskScanService|Completed scanning disk for Forged in Fire
20-9-18 09:10:48.1|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.1|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.1|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.1|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.1|Info|RefreshSeriesService|Skipping refresh of series: Fractured Fairy Tales
20-9-18 09:10:48.1|Info|DiskScanService|Scanning Fractured Fairy Tales
20-9-18 09:10:48.1|Info|DiskScanService|Completed scanning disk for Fractured Fairy Tales
20-9-18 09:10:48.2|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.2|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.2|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.2|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.2|Info|RefreshSeriesService|Skipping refresh of series: Fraggle Rock
20-9-18 09:10:48.2|Info|DiskScanService|Scanning Fraggle Rock
20-9-18 09:10:48.2|Info|DiskScanService|Completed scanning disk for Fraggle Rock
20-9-18 09:10:48.3|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.3|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.3|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.3|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.3|Info|RefreshSeriesService|Skipping refresh of series: Frequency
20-9-18 09:10:48.3|Info|DiskScanService|Scanning Frequency
20-9-18 09:10:48.3|Info|DiskScanService|Completed scanning disk for Frequency
20-9-18 09:10:48.3|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.3|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.3|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.3|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.3|Info|RefreshSeriesService|Skipping refresh of series: Fresh Off the Boat
20-9-18 09:10:48.3|Info|DiskScanService|Scanning Fresh Off the Boat
20-9-18 09:10:48.4|Info|DiskScanService|Completed scanning disk for Fresh Off the Boat
20-9-18 09:10:48.5|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.5|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.5|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.5|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.5|Info|RefreshSeriesService|Skipping refresh of series: Fringe
20-9-18 09:10:48.5|Info|DiskScanService|Scanning Fringe
20-9-18 09:10:48.5|Info|DiskScanService|Completed scanning disk for Fringe
20-9-18 09:10:48.5|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.5|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.5|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.5|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.6|Info|RefreshSeriesService|Skipping refresh of series: The Funky Phantom
20-9-18 09:10:48.6|Info|DiskScanService|Scanning The Funky Phantom
20-9-18 09:10:48.6|Info|DiskScanService|Completed scanning disk for The Funky Phantom
20-9-18 09:10:48.6|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.6|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.6|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.6|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.6|Info|RefreshSeriesService|Skipping refresh of series: Future Man
20-9-18 09:10:48.6|Info|DiskScanService|Scanning Future Man
20-9-18 09:10:48.6|Info|DiskScanService|Completed scanning disk for Future Man
20-9-18 09:10:48.6|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.6|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.6|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.6|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.7|Info|RefreshSeriesService|Skipping refresh of series: Galactica 1980
20-9-18 09:10:48.7|Info|DiskScanService|Scanning Galactica 1980
20-9-18 09:10:48.7|Info|DiskScanService|Completed scanning disk for Galactica 1980
20-9-18 09:10:48.7|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.7|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.7|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.7|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.7|Info|RefreshSeriesService|Skipping refresh of series: Game of Thrones
20-9-18 09:10:48.7|Info|DiskScanService|Scanning Game of Thrones
20-9-18 09:10:48.7|Info|DiskScanService|Completed scanning disk for Game of Thrones
20-9-18 09:10:48.8|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-9-18 09:10:48.8|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-9-18 09:10:48.8|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-9-18 09:10:48.8|Info|ExistingExtraFileService|Found 0 extra files
20-9-18 09:10:48.8|Info|RefreshSeriesService|Skipping refresh of series: Get Smart (1995)
20-9-18 09:10:48.8|Info|DiskScanService|Scanning Get Smart (1995)
20-9-18 09:10:54.1|Info|NzbDroneServiceFactory|Attempting to stop application.
20-9-18 09:10:54.1|Info|OwinHostController|Attempting to stop OWIN host
20-9-18 09:10:54.1|Info|OwinHostController|Host has stopped
20-9-18 09:10:54.1|Info|NzbDroneServiceFactory|Application has finished stop routine.
20-9-18 09:10:54.1|Info|ConsoleApp|Exiting main.
20-9-18 09:10:59.9|Info|Bootstrap|Starting Sonarr - C:\ProgramData\Sonarr\bin\Sonarr.Console.exe - Version 3.0.3.913
20-9-18 09:11:00.0|Fatal|ConsoleApp|EPIC FAIL!

[v3.0.3.913] System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNet.SignalR.Core, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.AspNet.SignalR.Core, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at NzbDrone.Host.MainAppContainerBuilder..ctor(StartupContext args, List`1 assemblies)
   at NzbDrone.Host.MainAppContainerBuilder.BuildContainer(StartupContext args) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\MainAppContainerBuilder.cs:line 24
   at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action`1 startCallback) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Host\Bootstrap.cs:line 32
   at NzbDrone.Console.ConsoleApp.Main(String[] args) in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp.cs:line 41

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Looks like the DB is corrupt, specifically the Episodes table, restoring from backup is your best bet.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.