Database file: /config/nzbdrone.db is corrupt, restore from backup if available

Sonar version: Version 2.0.0.5322
Mono version: Not sure where to find this information
OS: UnRAID 6.6.0-rc4
Logs: https://drive.google.com/open?id=1MMFRO8EeTLpWzwh36wFp7NH28ZR1nBu7

Sonarr no longer will start. Been running perfectly for several years and have never had an issue.

Get the following error message upon start:

ErrorWarningSystemArrayLogin

Created by…
. . ._
_ |__ || ____ | | ____ ___ ___
| __ | |/ | | _/ __ \ / /
| _\ \ | | \ Y \ / > <
|
/|| /| /_ >/_
/ / / / /
https://hub.docker.com/u/binhex/

2019-04-09 21:58:38.768917 [info] System information Linux d8a37c5d0079 4.18.8-unRAID #1 SMP Sat Sep 15 09:15:50 PDT 2018 x86_64 GNU/Linux
2019-04-09 21:58:38.793762 [info] PUID defined as ‘99’
2019-04-09 21:58:38.947697 [info] PGID defined as ‘100’
2019-04-09 21:58:39.144747 [info] UMASK defined as ‘000’
2019-04-09 21:58:39.168639 [info] Setting permissions recursively on volume mappings…
2019-04-09 21:58:39.302923 [info] Starting Supervisor…
2019-04-09 21:58:39,777 INFO Included extra file “/etc/supervisor/conf.d/sonarr.conf” during parsing
2019-04-09 21:58:39,777 INFO Set uid to user 0 succeeded
2019-04-09 21:58:39,783 INFO supervisord started with pid 8
2019-04-09 21:58:40,785 INFO spawned: ‘sonarr’ with pid 50
2019-04-09 21:58:40,785 INFO reaped unknown pid 9
2019-04-09 21:58:41,068 DEBG ‘sonarr’ stdout output:
[Info] Bootstrap: Starting Sonarr - /usr/lib/sonarr/NzbDrone.exe - Version 2.0.0.5322

2019-04-09 21:58:41,422 DEBG ‘sonarr’ stdout output:
[Info] AppFolderInfo: Data directory is being overridden to [/config]

2019-04-09 21:58:41,521 DEBG ‘sonarr’ stdout output:
[Info] Router: Application mode: Interactive

2019-04-09 21:58:41,667 DEBG ‘sonarr’ stdout output:
[Info] MigrationLogger: *** Migrating data source=/config/nzbdrone.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***

2019-04-09 21:58:41,794 DEBG ‘sonarr’ stdout output:

2019-04-09 21:58:41,794 INFO success: sonarr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-04-09 21:58:42,472 DEBG ‘sonarr’ stdout output:
[Fatal] ConsoleApp: EPIC FAIL!

[v2.0.0.5322] NzbDrone.Core.Datastore.CorruptDatabaseException: Database file: /config/nzbdrone.db is corrupt, restore from backup if available. See: https://github.com/Sonarr/Sonarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed —> System.Data.SQLite.SQLiteException: disk I/O error
disk I/O error
at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00083] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0003c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteDataReader.NextResult () [0x0016b] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteDataReader…ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x00090] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader…ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteCommand.ExecuteDbDataReader (System.Data.CommandBehavior behavior) [0x00000] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader () [0x00000] in /build/mono/src/mono/external/corefx/src/System.Data.Common/src/System/Data/Common/DbCommand.cs:112
at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Exists (System.String template, System.Object[] args) [0x0001f] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\Processors\SQLite\SQLiteProcessor.cs:81
at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.TableExists (System.String schemaName, System.String tableName) [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\Processors\SQLite\SQLiteProcessor.cs:47
at FluentMigrator.Runner.VersionLoader.get_AlreadyCreatedVersionTable () [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:124
at FluentMigrator.Runner.VersionLoader.LoadVersionInfo () [0x00028] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:160
at FluentMigrator.Runner.VersionLoader…ctor (FluentMigrator.Runner.IMigrationRunner runner, FluentMigrator.Infrastructure.IAssemblyCollection assemblies, FluentMigrator.IMigrationConventions conventions) [0x00077] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:50
at FluentMigrator.Runner.MigrationRunner…ctor (FluentMigrator.Infrastructure.IAssemblyCollection assemblies, FluentMigrator.Runner.Initialization.IRunnerContext runnerContext, FluentMigrator.IMigrationProcessor processor) [0x00167] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\MigrationRunner.cs:102
at FluentMigrator.Runner.MigrationRunner…ctor (System.Reflection.Assembly assembly, FluentMigrator.Runner.Initialization.IRunnerContext runnerContext, FluentMigrator.IMigrationProcessor processor) [0x00000] in C:\Users\Mark\Source\Repos\fluentmigrator\src\FluentMigrator.Runner\MigrationRunner.cs:72
at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x000b5] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Datastore\Migration\Framework\MigrationController.cs:58
at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00048] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Datastore\DbFactory.cs:94
— End of inner exception stack trace —
at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x00121] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Datastore\DbFactory.cs:126
at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationType migrationType) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Datastore\DbFactory.cs:66
at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00000] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Datastore\DbFactory.cs:46
at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\ApplicationServer.cs:60
at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007b] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Router.cs:47
at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0003d] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Bootstrap.cs:78
at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00075] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Bootstrap.cs:41
at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00029] in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Console\ConsoleApp.cs:37

2019-04-09 21:58:42,484 DEBG ‘sonarr’ stdout output:
Press enter to exit…

There’s even a link to the FAQ for that error in there…

1 Like

How would I go about performing those commands within UnRAID? Sorry for the newbie questions!

Please see my thread surrounding a similar problem. As your sonarr will no longer start. I would expect you’ll need to navigate to /appdata/sonarr first and use Midnight Commander to copy the .zip backups to another share so you can more readily manipulate them.

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