Api queue error on develop branch

On develop branch, just added reverse proxy using nginx and getting these errors

Message
Request Failed: The DataMapper was unable to load the following field: 'Settings' value: '{
  "host": "localhost",
  "port": 7070,
  "username": "username",
  "password": "password",
  "tvCategory": "tv-drone",
  "recentTvPriority": 0,
  "olderTvPriority": 0
}'. Couldn't find config contract UTorrentSettings

Exception
Marr.Data.DataMappingException: The DataMapper was unable to load the following field: 'Settings' value: '{
  "host": "localhost",
  "port": 7070,
  "username": "username",
  "password": "password",
  "tvCategory": "tv-drone",
  "recentTvPriority": 0,
  "olderTvPriority": 0
}'. Couldn't find config contract UTorrentSettings ---> NzbDrone.Core.ThingiProvider.ConfigContractNotFoundException: Couldn't find config contract UTorrentSettings
   at NzbDrone.Core.Datastore.Converters.ProviderSettingConverter.FromDB(ConverterContext context) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Datastore\Converters\ProviderSettingConverter.cs:line 33
   at Marr.Data.Mapping.MappingHelper.LoadExistingEntity(ColumnMapCollection mappings, DbDataReader reader, Object ent, Boolean useAltName) in m:\BuildAgent\work\328d72309b633a8\src\Marr.Data\Mapping\MappingHelper.cs:line 58
   --- End of inner exception stack trace ---
   at Marr.Data.Mapping.MappingHelper.LoadExistingEntity(ColumnMapCollection mappings, DbDataReader reader, Object ent, Boolean useAltName) in m:\BuildAgent\work\328d72309b633a8\src\Marr.Data\Mapping\MappingHelper.cs:line 79
   at Marr.Data.Mapping.MappingHelper.CreateAndLoadEntity[T](ColumnMapCollection mappings, DbDataReader reader, Boolean useAltName) in m:\BuildAgent\work\328d72309b633a8\src\Marr.Data\Mapping\MappingHelper.cs:line 25
   at Marr.Data.DataMapper.Query[T](String sql, ICollection`1 entityList, Boolean useAltName) in m:\BuildAgent\work\328d72309b633a8\src\Marr.Data\DataMapper.cs:line 577
   at Marr.Data.QGen.QueryBuilder`1.ToList() in m:\BuildAgent\work\328d72309b633a8\src\Marr.Data\QGen\QueryBuilder.cs:line 279
   at NzbDrone.Core.Datastore.BasicRepository`1.All() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Datastore\BasicRepository.cs:line 68
   at NzbDrone.Core.ThingiProvider.ProviderFactory`2.All() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\ThingiProvider\ProviderFactory.cs:line 39
   at NzbDrone.Core.ThingiProvider.ProviderFactory`2.Active() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\ThingiProvider\ProviderFactory.cs:line 138
   at NzbDrone.Core.Download.DownloadClientFactory.Active() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadClientFactory.cs:line 27
   at NzbDrone.Core.ThingiProvider.ProviderFactory`2.GetAvailableProviders() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\ThingiProvider\ProviderFactory.cs:line 86
   at NzbDrone.Core.Download.DownloadClientProvider.GetDownloadClients() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadClientProvider.cs:line 30
   at NzbDrone.Core.Download.DownloadTrackingService.UpdateTrackedDownloads(List`1 grabbedHistory) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadTrackingService.cs:line 130
   at NzbDrone.Core.Download.DownloadTrackingService.<GetQueuedDownloads>b__4() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadTrackingService.cs:line 82
   at NzbDrone.Common.Cache.Cached`1.Get(String key, Func`1 function, Nullable`1 lifeTime) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Common\Cache\Cached.cs:line 87
   at NzbDrone.Core.Download.DownloadTrackingService.GetQueuedDownloads() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadTrackingService.cs:line 80
   at NzbDrone.Core.Queue.QueueService.GetQueue() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Core\Queue\QueueService.cs:line 24
   at NzbDrone.Api.Queue.QueueModule.GetQueueItems() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Api\Queue\QueueModule.cs:line 32
   at NzbDrone.Api.NzbDroneRestModule`1.ToListResource[TModel](Func`1 function) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Api\NzbDroneRestModule.cs:line 37
   at NzbDrone.Api.Queue.QueueModule.GetQueue() in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Api\Queue\QueueModule.cs:line 27
   at NzbDrone.Api.REST.RestModule`1.<set_GetResourceAll>b__c(Object options) in m:\BuildAgent\work\328d72309b633a8\src\NzbDrone.Api\REST\RestModule.cs:line 111
   at CallSite.Target(Closure , CallSite , Func`2 , Object )
   at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken c

Which version? Looks like you’re back on master.

Something is all messed up. I am on develop but it has somehow switched me back to master, when I click update all of Sonarr just disappears and my opt/Nzbdrone folder only has a UI folder and an update.zip.

What else do you need from me to debug this?

Check the Update Logs, sounds like permissions though.

Did you apt-get a new version of Sonarr after switching to develop?

Reinstall via apt-get, fix the permissions on /opt/NzbDrone then update via the UI, shoud also switch the source to be develop instead of master so apt-get won’t cause issues.

Weird, because i chown -R the /opt/NzbDrone folder and run the upstart script as non-root.

I did not apt-get a new version after switching to develop I just used the built-in update method, was that a mistake?

I have renstalled through apt-get and updated through the UI after switching from master to develop. Very strange.

Did you apt-get upgrade?

No you should update via the API.