Console App: Epic Fail

**Sonarr version **: 2.0.0.3953
Mono version (if Sonarr is not running on Windows): 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 09:52:44 UTC 2015)
OS: Ubuntu Server 14.04 Lts
Debug logs (posted to hastebin or similar):

16-4-14 15:21:59.5|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.3953] System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.ParseExactMultiple (System.String s, System.String[] formats, System.Globalization.DateTimeFormatInfo dtfi, DateTimeStyles style) $
at System.DateTime.ParseExact (System.String s, System.String[] formats, IFormatProvider provider, DateTimeStyles style) <0x7f8b70364720 + 0x00049> in <fi$
at System.Data.SQLite.SQLiteConvert.ToDateTime (System.String dateText, SQLiteDateFormats format, DateTimeKind kind, System.String formatString) <0x4026c3$
at System.Data.SQLite.SQLiteConvert.ToDateTime (System.String dateText) <0x4026c310 + 0x00027> in :0
at System.Data.SQLite.SQLiteConvert.ToDateTime (IntPtr ptr, Int32 len) <0x4026c290 + 0x00027> in :0
at System.Data.SQLite.SQLite3.GetDateTime (System.Data.SQLite.SQLiteStatement stmt, Int32 index) <0x4026c100 + 0x00133> in :0
at System.Data.SQLite.SQLite3.GetValue (System.Data.SQLite.SQLiteStatement stmt, SQLiteConnectionFlags flags, Int32 index, System.Data.SQLite.SQLiteType t$
at System.Data.SQLite.SQLiteDataReader.GetValue (Int32 i) <0x402456c0 + 0x00164> in :0
at System.Data.SQLite.SQLiteDataReader.GetValues (System.Object[] values) <0x402531f0 + 0x00056> in :0
at System.Data.ProviderBase.DataReaderContainer+CommonLanguageSubsetDataReader.GetValues (System.Object[] values) <0x402531c0 + 0x00027> in <filename unkn$
at System.Data.ProviderBase.SchemaMapping.LoadDataRow () <0x40252fc0 + 0x00030> in :0
at System.Data.Common.DataAdapter.FillLoadDataRow (System.Data.ProviderBase.SchemaMapping mapping) <0x40252e10 + 0x00137> in :0
at System.Data.Common.DataAdapter.FillFromReader (System.Data.DataSet dataset, System.Data.DataTable datatable, System.String srcTable, System.Data.Provid$
at System.Data.Common.DataAdapter.Fill (System.Data.DataSet dataSet, System.String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) $
at System.Data.Common.DbDataAdapter.FillInternal (System.Data.DataSet dataset, System.Data.DataTable[] datatables, Int32 startRecord, Int32 maxRecords, Sy$
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataSet dataSet, Int32 startRecord, Int32 maxRecords, System.String srcTable, IDbCommand command, Co$
at System.Data.Common.DbDataAdapter.Fill (System.Data.DataSet dataSet) <0x40249890 + 0x00094> in :0
at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.Read (System.String template, System.Object[] args) [0x00032] in c:\Community\schambers\fluentm$
at FluentMigrator.Runner.Processors.SQLite.SQLiteProcessor.ReadTableData (System.String schemaName, System.String tableName) [0x00000] in c:\Community\sch$
at FluentMigrator.Runner.VersionLoader.LoadVersionInfo () [0x000b4] in c:\Community\schambers\fluentmigrator\src\FluentMigrator.Runner\VersionLoader.cs:18$
at FluentMigrator.Runner.VersionLoader…ctor (IMigrationRunner runner, IAssemblyCollection assemblies, IMigrationConventions conventions) [0x00077] in c:$
at FluentMigrator.Runner.MigrationRunner…ctor (IAssemblyCollection assemblies, IRunnerContext runnerContext, IMigrationProcessor processor) [0x0016e] in $
at FluentMigrator.Runner.MigrationRunner…ctor (System.Reflection.Assembly assembly, IRunnerContext runnerContext, IMigrationProcessor processor) [0x00000$
at NzbDrone.Core.Datastore.Migration.Framework.MigrationController.Migrate (System.String connectionString, NzbDrone.Core.Datastore.Migration.Framework.Mi$
at NzbDrone.Core.Datastore.DbFactory.Create (NzbDrone.Core.Datastore.Migration.Framework.MigrationContext migrationContext) [0x0004e] in m:\BuildAgent\wor$
at NzbDrone.Core.Datastore.DbFactory.Create (MigrationType migrationType) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Datastore\DbF$
at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (IContainer container) [0x00019] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Datastore$
at NzbDrone.Host.Bootstrap.Start (ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x0002e] in m:\BuildA$
at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, IUserAlert userAlert, System.Action`1 startCallback) [0x0$
at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000f] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Console\ConsoleApp.cs:20

16-4-14 15:21:59.9|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.3953
16-4-14 15:22:00.2|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
16-4-14 15:22:00.3|Debug|ProcessProvider|Found 1 processes with the name: NzbDrone
16-4-14 15:22:00.3|Debug|ProcessProvider| - [7723] NzbDrone
16-4-14 15:22:00.4|Info|MigrationLogger|*** Migrating data source=/home/hackarre/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal $
16-4-14 15:22:00.6|Debug|MigrationLogger|Took: 00:00:00.1267407
16-4-14 15:22:00.6|Info|MigrationLogger|*** Migrating data source=/home/hackarre/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode$

Description of issue (if you think you’ve found a bug please include steps to reproduce):

Everything was running fine, but upon reboot sonarr won’t start and this is the error I found in the logs files. Not sure what the problem may be.

Thanks for the help!

Please put the logs on hastebin next time.

It looks like its failing to migrate the database, but it looks like the logs start with the end of one error and end with the startup of Sonarr. Try deleting the logs and posting a fresh copy, but ultimately you’ll likely need to ((restore)) your database.

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