Update failing on Fedora

Hi Guys,

When I try to update in Fedora 21 I get the following error, any ideas why it won’t update?

15-8-3 15:25:26.4|Info|UpdateApp|Starting Sonarr Update Client
15-8-3 15:25:26.9|Info|UpdateApp|Updating Sonarr to version 2.0.0.3357
15-8-3 15:25:27.1|Fatal|UpdateApp|An error has occurred while applying update package.

TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Update.UpdateApp ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Update.UpdateEngine.IInstallUpdateService ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Update.UpdateEngine.InstallUpdateService ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Update.UpdateEngine.IDetectApplicationType ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Update.UpdateEngine.DetectApplicationType ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Common.IServiceProvider ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Common.ServiceProvider ---> System.TypeLoadException: Could not load type 'NzbDrone.Common.ServiceProvider' from assembly 'NzbDrone.Common, Version=2.0.0.3357, Culture=neutral, PublicKeyToken=null'.
  at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo,bool)
  at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x0032c] in /builddir/build/BUILD/mono-2.10.8/mcs/class/corlib/System/Delegate.cs:260 
  at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) [0x00000] in /builddir/build/BUILD/mono-2.10.8/mcs/class/corlib/System/Delegate.cs:268 
  at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType, System.Object target) [0x00017] in /builddir/build/BUILD/mono-2.10.8/mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs:178 
  at System.Dynamic.Utils.TypeExtensions.CreateDelegate (System.Reflection.MethodInfo methodInfo, System.Type delegateType, System.Object target) [0x00013] in /builddir/build/BUILD/mono-2.10.8/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Utils/TypeExtensions.cs:34 
  at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate () [0x00000] in /builddir/build/BUILD/mono-2.10.8/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.cs:296 
  at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x0001d] in /builddir/build/BUILD/mono-2.10.8/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.cs:209 
  at System.Linq.Expressions.LambdaExpression.Compile () [0x00000] in /builddir/build/BUILD/mono-2.10.8/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs:129 
  at TinyIoC.TinyIoCContainer.CreateObjectConstructionDelegateWithCache (System.Reflection.ConstructorInfo constructor) [0x00079] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3712 
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x0011e] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3676 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00134] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3684 
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.ResolveOptions options) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3601 
  at TinyIoC.TinyIoCContainer+SingletonFactory.GetObject (System.Type requestedType, TinyIoC.TinyIoCContainer container, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x0002c] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:2834 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00010] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3344 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer+DelegateFactory.GetObject (System.Type requestedType, TinyIoC.TinyIoCContainer container, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00011] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:2547 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00010] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3344 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x000fa] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3665 
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.ResolveOptions options) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3601 
  at TinyIoC.TinyIoCContainer+SingletonFactory.GetObject (System.Type requestedType, TinyIoC.TinyIoCContainer container, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x0002c] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:2834 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00010] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3344 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer+DelegateFactory.GetObject (System.Type requestedType, TinyIoC.TinyIoCContainer container, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00011] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:2547 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00010] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3344 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x000fa] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3665 
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.ResolveOptions options) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3601 
  at TinyIoC.TinyIoCContainer+SingletonFactory.GetObject (System.Type requestedType, TinyIoC.TinyIoCContainer container, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x0002c] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:2834 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00010] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3344 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer+DelegateFactory.GetObject (System.Type requestedType, TinyIoC.TinyIoCContainer container, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00011] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:2547 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00010] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3344 
  --- End of inner exception stack trace ---
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x000fa] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3665 
  at TinyIoC.TinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3606 
  at TinyIoC.TinyIoCContainer.ResolveInternal (TinyIoC.TypeRegistration registration, TinyIoC.NamedParameterOverloads parameters, TinyIoC.ResolveOptions options) [0x001b6] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:3435 
  at TinyIoC.TinyIoCContainer.Resolve (System.Type resolveType) [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:1459 
  at TinyIoC.TinyIoCContainer.Resolve[UpdateApp] () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:1578 
  at NzbDrone.Common.Composition.Container.Resolve[UpdateApp] () [0x00000] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:34 
  at NzbDrone.Update.UpdateApp.Main (System.String[] args) [0x00042] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:43

Haven’t seen this one before (that I recall). Which version of mono are you running?

Sorry what do you mean by mono?

mono is used to run Sonarr on non-Windows systems. You can get the version from System: Status in Sonarr.

If its less than 3.10 (and it looks like it might be 2.10.8), it will need to be updated.

I do have version 2.10.8, just need to figure out how to install version 3 :slight_smile:

I have now installed version 4 of Mono and it still won’t update.

15-8-5 22:56:42.6|Info|DownloadDecisionMaker|Processing 499 releases

15-8-5 22:57:03.9|Info|RssSyncService|RSS Sync Completed. Reports found: 499, Reports grabbed: 0
15-8-5 23:01:22.8|Info|InstallUpdateService|Deleting old update files
15-8-5 23:01:22.9|Info|InstallUpdateService|Downloading update 2.0.0.3357
15-8-5 23:02:37.7|Info|InstallUpdateService|Verifying update package
15-8-5 23:02:38.4|Info|InstallUpdateService|Update package verified successfully
15-8-5 23:02:38.5|Info|InstallUpdateService|Extracting Update package
15-8-5 23:02:40.5|Info|InstallUpdateService|Update package extracted successfully
15-8-5 23:02:40.5|Info|BackupService|Starting Backup
15-8-5 23:02:52.1|Info|InstallUpdateService|Preparing client
15-8-5 23:02:52.2|Info|InstallUpdateService|Starting update client /tmp/nzbdrone_update/NzbDrone.Update.exe
15-8-5 23:02:52.3|Info|InstallUpdateService|Sonarr will restart shortly.
15-8-5 23:02:58.4|Error|mono|Stacktrace:
15-8-5 23:02:58.6|Error|mono| at <0xffffffff>
15-8-5 23:02:58.7|Error|mono| at (wrapper managed-to-native) System.MonoCustomAttrs.IsDefinedInternal (System.Reflection.ICustomAttributeProvider,System.Type) <IL 0x0000e, 0xffffffff>
15-8-5 23:05:32.7|Info|Bootstrap|Starting Sonarr - /opt/NzbDrone/NzbDrone.exe - Version 2.0.0.3212
15-8-5 23:05:35.0|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
15-8-5 23:05:35.3|Debug|ProcessProvider|Found 1 processes with the name: NzbDrone
15-8-5 23:05:36.4|Info|MigrationLogger|*** Migrating data source=/home/sonarr/.config/NzbDrone/nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
15-8-5 23:05:37.2|Debug|MigrationLogger|Took: 00:00:00.7744292
15-8-5 23:05:37.2|Info|MigrationLogger|*** Migrating data source=/home/sonarr/.config/NzbDrone/logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
15-8-5 23:05:37.3|Debug|MigrationLogger|Took: 00:00:00.1279512
15-8-5 23:05:37.5|Info|Router|Application mode: Interactive
15-8-5 23:05:37.5|Debug|Router|Console selected
15-8-5 23:05:37.6|Info|OwinHostController|Listening on the following URLs:
15-8-5 23:05:37.6|Info|OwinHostController| http://*:8989/
15-8-5 23:05:38.1|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
15-8-5 23:05:38.1|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
15-8-5 23:05:38.1|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
15-8-5 23:05:38.3|Info|NancyBootstrapper|Starting NzbDrone API
15-8-5 23:05:39.3|Trace|EventAggregator|Publishing ApplicationStartedEvent
15-8-5 23:05:41.4|Trace|EventAggregator|ApplicationStartedEvent -> UserService
15-8-5 23:05:41.5|Trace|EventAggregator|ApplicationStartedEvent <- UserService
15-8-5 23:05:41.5|Trace|EventAggregator|ApplicationStartedEvent -> DownloadClientFactory
15-8-5 23:05:41.5|Debug|DownloadClientFactory|Initializing Providers. Count 8
15-8-5 23:05:42.0|Trace|EventAggregator|ApplicationStartedEvent <- DownloadClientFactory
15-8-5 23:05:42.0|Trace|EventAggregator|ApplicationStartedEvent -> IndexerFactory
15-8-5 23:05:42.0|Debug|IndexerFactory|Initializing Providers. Count 12

Please hastebin the entire update log file.

I would try mono 3.10. Mono 4 seems to give problems on some systems.

Any ideas how to install version 3 on Fedora 21?

I will get the log tonight, there isn’t a log file for the update just the main drone txt file.

What version does mono --version show?

I’d like to see update logs before trying 3.10.

Is mono running with the --debug flag? There is an error logged right around the time the update process is supposed to start, something in mono failing.

That’s why you’re the dev, and I’m the dummy user :stuck_out_tongue:

Here is the pastebin - Pastebin

The logs don’t show anything, make sure mono is running with the --debug flag and exactly which version? Also trace logs showing the update process (clear the log files before posting) and the kernel version.

Added --debug to end of mono - Logs

This is the table log - enter link description here

Mono version 4.0.1 (tarball Wed Jun 3 06:56:08 UTC 2015)

Kernel Version - 4.0.8-200.fc21.x86_64

Is trace logging enabled for this log file snippet?

Sorry it isn’t but I will do it later when home after work.

New Log - Trace Log 070815

Update command is on line 200.
The error on line 215/221 is to generic for me to google. The file itself should be availvabl as it’s moved on line 159.

Is mono 2.10.8 still installed on that system?

If you run mono --version (just that, not a full path to mono) from a shell which version do you get?