Sonarr QNAP h1688x - cant log in

**Sonarr version 3.0.3.698 QSonarr from Qnapclub EU
**Mono version 6.8.0.115:
OS: QNAP h1688x f/w: h4.5.1.1491:
Debug logs:
****: I can not log into sonarr.

System.ArgumentException: ID does not match a known language

Parameter name: id
at NzbDrone.Core.Languages.Language.FindById (System.Int32 id) [0x0003b] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Languages.Language.op_Explicit (System.Int32 id) [0x00000] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Datastore.Converters.LanguageIntConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x0000d] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) [0x00055] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00056] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00280] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00161] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (System.Collections.IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00173] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x000dc] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in :0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in :0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in :0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in :0
at NzbDrone.Core.Datastore.Converters.EmbeddedDocumentConverter.FromDB (Marr.Data.Converters.ConverterContext context) [0x00035] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at Marr.Data.Mapping.MappingHelper.LoadExistingEntity (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Object ent, System.Boolean useAltName) [0x00067] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
— End of inner exception stack trace —
at Marr.Data.Mapping.MappingHelper.LoadExistingEntity (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Object ent, System.Boolean useAltName) [0x000b3] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity (System.Type entityType, Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Boolean useAltName) [0x00012] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity[T] (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Boolean useAltName) [0x00000] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at Marr.Data.DataMapper.Query[T] (System.String sql, System.Collections.Generic.ICollection1[T] entityList, System.Boolean useAltName) [0x0008d] in <48e3a7dc043947e39c3ad04baa08e6c6>:0 at Marr.Data.QGen.QueryBuilder1[T].ToList () [0x00052] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at NzbDrone.Core.Datastore.BasicRepository`1[TModel].All () [0x0000b] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Profiles.Languages.LanguageProfileService.All () [0x00000] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Profiles.Languages.LanguageProfileService.Handle (NzbDrone.Core.Lifecycle.ApplicationStartedEvent message) [0x00000] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (TEvent event) [0x0011a] in <30a5140f7bbb41669c8f5c0d020be3cd>:0

[Error] EventAggregator: CommandQueueManager failed while processing [ApplicationStartedEvent]

[v3.0.3.698] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
database disk image is malformed
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.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at Marr.Data.DataMapper.ExecuteNonQuery (System.String sql) [0x00030] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at NzbDrone.Core.Messaging.Commands.CommandRepository.OrphanStarted () [0x00064] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Handle (NzbDrone.Core.Lifecycle.ApplicationStartedEvent message) [0x00010] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (TEvent event) [0x0011a] in <30a5140f7bbb41669c8f5c0d020be3cd>:0

[Warn] MonoDebugCheck: Mono is not running with --debug switch

—>

Full error log below:

[/share/ZFS531_DATA/.qpkg/QSonarr3] # ./QSonarr3.sh start
share SONARR3_CONFIG exists
[/share/ZFS531_DATA/.qpkg/QSonarr3] # [Info] Bootstrap: Starting Sonarr - /share/ZFS531_DATA/.qpkg/QSonarr3/Sonarr/Sonarr.exe - Version 3.0.3.698
[Info] AppFolderInfo: Data directory is being overridden to [/share/ZFS1_DATA/SONARR3_CONFIG]
[Info] Router: Application mode: Interactive
[Info] MigrationLogger: *** Migrating data source=/share/ZFS1_DATA/SONARR3_CONFIG/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** Migrating data source=/share/ZFS1_DATA/SONARR3_CONFIG/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController: http://*:8989/
[Info] SonarrBootstrapper: Starting Web Server
[Error] EventAggregator: LanguageProfileService failed while processing [ApplicationStartedEvent]

[v3.0.3.698] Marr.Data.DataMappingException: The DataMapper was unable to load the following field: ‘Languages’ value: ‘[
{
“language”: 27,
“allowed”: false
},
{
“language”: 26,
“allowed”: false
},
{
“language”: 0,
“allowed”: false
},
{
“language”: 13,
“allowed”: false
},
{
“language”: 17,
“allowed”: false
},
{
“language”: 14,
“allowed”: false
},
{
“language”: 3,
“allowed”: false
},
{
“language”: 11,
“allowed”: false
},
{
“language”: 18,
“allowed”: false
},
{
“language”: 12,
“allowed”: false
},
{
“language”: 15,
“allowed”: false
},
{
“language”: 24,
“allowed”: false
},
{
“language”: 21,
“allowed”: false
},
{
“language”: 8,
“allowed”: false
},
{
“language”: 5,
“allowed”: false
},
{
“language”: 9,
“allowed”: false
},
{
“language”: 22,
“allowed”: false
},
{
“language”: 23,
“allowed”: false
},
{
“language”: 20,
“allowed”: false
},
{
“language”: 4,
“allowed”: false
},
{
“language”: 2,
“allowed”: false
},
{
“language”: 19,
“allowed”: false
},
{
“language”: 16,
“allowed”: false
},
{
“language”: 1,
“allowed”: true
},
{
“language”: 7,
“allowed”: false
},
{
“language”: 6,
“allowed”: false
},
{
“language”: 25,
“allowed”: false
},
{
“language”: 10,
“allowed”: false
}
]’. ID does not match a known language
Parameter name: id —> System.ArgumentException: ID does not match a known language
Parameter name: id
at NzbDrone.Core.Languages.Language.FindById (System.Int32 id) [0x0003b] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Languages.Language.op_Explicit (System.Int32 id) [0x00000] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Datastore.Converters.LanguageIntConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x0000d] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) [0x00055] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00056] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00280] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00161] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (System.Collections.IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00173] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x000dc] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in :0
at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in :0
at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in :0
at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in :0
at NzbDrone.Core.Datastore.Converters.EmbeddedDocumentConverter.FromDB (Marr.Data.Converters.ConverterContext context) [0x00035] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at Marr.Data.Mapping.MappingHelper.LoadExistingEntity (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Object ent, System.Boolean useAltName) [0x00067] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
— End of inner exception stack trace —
at Marr.Data.Mapping.MappingHelper.LoadExistingEntity (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Object ent, System.Boolean useAltName) [0x000b3] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity (System.Type entityType, Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Boolean useAltName) [0x00012] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity[T] (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, System.Boolean useAltName) [0x00000] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at Marr.Data.DataMapper.Query[T] (System.String sql, System.Collections.Generic.ICollection1[T] entityList, System.Boolean useAltName) [0x0008d] in <48e3a7dc043947e39c3ad04baa08e6c6>:0 at Marr.Data.QGen.QueryBuilder1[T].ToList () [0x00052] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at NzbDrone.Core.Datastore.BasicRepository`1[TModel].All () [0x0000b] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Profiles.Languages.LanguageProfileService.All () [0x00000] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Profiles.Languages.LanguageProfileService.Handle (NzbDrone.Core.Lifecycle.ApplicationStartedEvent message) [0x00000] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (TEvent event) [0x0011a] in <30a5140f7bbb41669c8f5c0d020be3cd>:0

[Error] EventAggregator: CommandQueueManager failed while processing [ApplicationStartedEvent]

[v3.0.3.698] System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed
database disk image is malformed
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.ExecuteNonQuery (System.Data.CommandBehavior behavior) [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery () [0x00006] in <61a20cde294d4a3eb43b9d9f6284613b>:0
at Marr.Data.DataMapper.ExecuteNonQuery (System.String sql) [0x00030] in <48e3a7dc043947e39c3ad04baa08e6c6>:0
at NzbDrone.Core.Messaging.Commands.CommandRepository.OrphanStarted () [0x00064] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Handle (NzbDrone.Core.Lifecycle.ApplicationStartedEvent message) [0x00010] in <30a5140f7bbb41669c8f5c0d020be3cd>:0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[TEvent] (TEvent event) [0x0011a] in <30a5140f7bbb41669c8f5c0d020be3cd>:0

[Warn] MonoDebugCheck: Mono is not running with --debug switch

This is an extremely old version of Sonarr and you were likely running a much newer one recently. You’ll either need to update outside of Sonarr to the latest or make a backup of your db/rename it, upgrade from within Sonarr and then restore your db.