No quality/profiles listed after upgrade

Sonarr version (exact version): 2.0.0.3934
Mono version (if Sonarr is not running on Windows): Mono JIT compiler version 4.2.1
OS: Ubuntu 14.04
Debug logs (posted to hastebin or similar): http://termbin.com/3292
Description of issue (if you think you’ve found a bug please include steps to reproduce):

Since updating to 3934, all my quality/profiles have dissapeared. Seems to fail around here:

Marr.Data.DataMappingException: The DataMapper was unable to load the following field: 'Items' value

and then

Parameter name: id ---> System.ArgumentException: ID does not match a known quality
Parameter name: id
  at NzbDrone.Core.Qualities.Quality.FindById (Int32 id) [0x0004b] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Qualities\Quality.cs:122 
  at NzbDrone.Core.Qualities.Quality.op_Explicit (Int32 id) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Qualities\Quality.cs:127 
  at NzbDrone.Core.Datastore.Converters.QualityIntConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x00007] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Datastore\Converters\QualityIntConverter.cs:57 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable (Newtonsoft.Json.JsonConverter converter, Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue) <0x404fc080 + 0x001b1> in <filename unknown>: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) <0x404dd6d0 + 0x00137> in <filename unknown>: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) <0x404da920 + 0x0089f> in <filename unknown>: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, Boolean useAltName) [0x000b1] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\Mapping\MappingHelper.cs:79 
  at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity (System.Type entityType, Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, Boolean useAltName) [0x00012] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\Mapping\MappingHelper.cs:40 
  at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity[T] (Marr.Data.Mapping.ColumnMapCollection mappings, System.Data.Common.DbDataReader reader, Boolean useAltName) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\Mapping\MappingHelper.cs:25 
  at Marr.Data.DataMapper.Query[T] (System.String sql, ICollection`1 entityList, Boolean useAltName) [0x0008d] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\DataMapper.cs:577 
  at Marr.Data.QGen.QueryBuilder`1[T].ToList () [0x00052] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\QGen\QueryBuilder.cs:279 
  at Marr.Data.QGen.SortBuilder`1[T].ToList () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\QGen\SortBuilder.cs:176 
  at Marr.Data.QGen.SortBuilder`1[T].GetEnumerator () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\QGen\SortBuilder.cs:247 
  at System.Linq.Enumerable.SingleOrDefault[TSource] (IEnumerable`1 source) <0x40497e20 + 0x000cb> in <filename unknown>:0 
  at NzbDrone.Core.Datastore.Extensions.RelationshipExtensions+<>c__DisplayClass2`2[TParent,TChild].<HasOne>b__1 (IDataMapper db, TParent parent) [0x0001f] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Datastore\Extensions\RelationshipExtensions.cs:21 
  at Marr.Data.LazyLoaded`2[TParent,TChild].LazyLoad () [0x0002f] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\LazyLoaded.cs:108 
  at Marr.Data.LazyLoaded`1[TChild].get_Value () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\Marr.Data\LazyLoaded.cs:34 
  at NzbDrone.Core.DecisionEngine.Specifications.QualityAllowedByProfileSpecification.IsSatisfiedBy (NzbDrone.Core.Parser.Model.RemoteEpisode subject, NzbDrone.Core.IndexerSearch.Definitions.SearchCriteriaBase searchCriteria) [0x0002d] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\DecisionEngine\Specifications\QualityAllowedByProfileSpecification.cs:21 
  at NzbDrone.Core.DecisionEngine.DownloadDecisionMaker.EvaluateSpec (IDecisionEngineSpecification spec, NzbDrone.Core.Parser.Model.RemoteEpisode remoteEpisode, NzbDrone.Core.IndexerSearch.Definitions.SearchCriteriaBase searchCriteriaBase) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\DecisionEngine\DownloadDecisionMaker.cs:132 

Any ideas?

Sidenote, I’m not sure how I got on to version 3934 since the latest (according to sonarr itself) is 3913, possible I’m on a diff version from the apt repository?

Thanks!

2.0.0.3934 only went out to apt-get incorrectly. The issue here is you were running develop and you’ve “upgraded” (newer version, older code) and no longer have a version running that reflects the database changes.

The easiest solution is to download: http://download.sonarr.tv/v2/develop/latest/NzbDrone.develop.tar.gz and extract the contents of the NzbDrone folder to /opt/NzbDrone

Its also advisable to either remove the apt-get configuration that points to our apt-get server or at the very least update it to use develop instead of master. You should not mix apt-get updates with Sonarr’s built in update mechanism as apt-get will mess up the permissions required for the built-in updater to run.

1 Like

Got it. Overwriting with develop and killing the apt repo line. Seems to work now :slight_smile:

Thanks!

1 Like

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