Mar 12 Update: Windows - Sonarr failing to start

Sonarr version (March 12 2016): .3953
Mono version (if Sonarr is not running on Windows):Windows
OS:Windows 7 Ultimate
Debug logs (posted to hastebin or similar):

http://hastebin.com/owusutiqox.tex

Description of issue (if you think you’ve found a bug please include steps to reproduce):
“This site cannot be reached”
“Localhost refused to connect”
“ERR_CONNECTION_REFUSED”

Will post logs when collected.

In mean time I installed a Sept 15 version .3357 of Sonarr and now have a working system.

Is there anywhere that there is a storage repository of all available incremental versions, so that I can update to a version just before last?

You need to check the logs of Sonarr, not the updater.

http://hastebin.com/mapomuquqa.tex

The Sonar.trace.txt log

http://hastebin.com/qiwecudaha.tex

The Sonarr.debug.txt

http://hastebin.com/cirosumubu.tex

The Sonarr.txt log

I cant’t paste the nzbdrone.*.txt due to limitations on Hastebin’s capacity. Anyway around this?

http://hastebin.com/esofomexeg.tex

NZBDRONE.2.txt

created after install of previous version [sept 2015] of Sonarr. Partial capture of file. More to be had if desired.

Error found in update log, any importance?

16-3-12 14:32:27.4|Fatal|UpdateApp|An error has occurred while applying update package.

[v2.0.0.3953] System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
at NzbDrone.Common.ServiceProvider.Start(String serviceName) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\ServiceProvider.cs:line 173
at NzbDrone.Update.UpdateEngine.StartNzbDrone.StartService() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\StartNzbDrone.cs:line 60
at NzbDrone.Update.UpdateEngine.StartNzbDrone.Start(AppType appType, String installationFolder) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\StartNzbDrone.cs:line 38
at NzbDrone.Update.UpdateEngine.InstallUpdateService.Start(String installationFolder, Int32 processId) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateEngine\InstallUpdateService.cs:line 120
at NzbDrone.Update.UpdateApp.Start(String[] args) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:line 59
at NzbDrone.Update.UpdateApp.Main(String[] args) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Update\UpdateApp.cs:line 43

Yea I get the same issue and log detail as above.

I have two computer one Win7-x64 were the autoupdate worked perfectly. But the other is a WinXp-x86 were the autoupdate failed, so i tried to uninstall and then reinstall agine - no difference, same error message:

The only thing that seems to have anything to do with the bug in the logs was in sonarr.txt;

16-3-13 09:26:51.9|Info|OwinHostController|Listening on the following URLs:
16-3-13 09:26:51.9|Info|OwinHostController| http://*:8989/
16-3-13 09:26:52.1|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
16-3-13 09:26:52.1|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
16-3-13 09:26:52.1|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
16-3-13 09:26:52.2|Info|NancyBootstrapper|Starting NzbDrone API
16-3-13 09:26:53.2|Trace|EventAggregator|Publishing ApplicationStartedEvent
16-3-13 09:26:54.6|Fatal|WindowsApp|EPIC FAIL: Unable to resolve type: NzbDrone.Core.Messaging.Events.IHandle`1[[NzbDrone.Core.Lifecycle.ApplicationStartedEvent, NzbDrone.Core, Version=2.0.0.3953, Culture=neutral, PublicKeyToken=null]]

[v2.0.0.3953] TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Messaging.Events.IHandle1[[NzbDrone.Core.Lifecycle.ApplicationStartedEvent, NzbDrone.Core, Version=2.0.0.3953, Culture=neutral, PublicKeyToken=null]] ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.DownloadClientFactory ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.IDownloadClient ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.Clients.RTorrent.RTorrent ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.Clients.rTorrent.IRTorrentDirectoryValidator ---> TinyIoC.TinyIoCResolutionException: Unable to resolve type: NzbDrone.Core.Download.Clients.rTorrent.RTorrentDirectoryValidator ---> System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)** ** at NzbDrone.Core.Download.Clients.rTorrent.RTorrentDirectoryValidator..ctor(RootFolderValidator rootFolderValidator, PathExistsValidator pathExistsValidator, DroneFactoryValidator droneFactoryValidator, MappedNetworkDriveValidator mappedNetworkDriveValidator)** ** at lambda_method(Closure , Object[] )** ** at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3677** ** --- End of inner exception stack trace ---** ** at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3684** ** at TinyIoC.TinyIoCContainer.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2834** ** at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346** ** at TinyIoC.TinyIoCContainer.Resolve(Type resolveType, String name) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 1486** ** at NzbDrone.Common.Composition.Container.<>c__DisplayClass4.<CreateSingletonImplementationFactory>b__3(TinyIoCContainer c, NamedParameterOverloads p) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:line 81** ** at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2543** ** --- End of inner exception stack trace ---** ** at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2547** ** at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346** ** at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3652** ** --- End of inner exception stack trace ---** ** at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3665** ** at TinyIoC.TinyIoCContainer.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2834** ** at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346** ** at TinyIoC.TinyIoCContainer.Resolve(Type resolveType, String name) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 1486** ** at NzbDrone.Common.Composition.Container.<>c__DisplayClass4.<CreateSingletonImplementationFactory>b__3(TinyIoCContainer c, NamedParameterOverloads p) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:line 81** ** at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2543** ** --- End of inner exception stack trace ---** ** at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2547** ** at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346** ** at TinyIoC.TinyIoCContainer.<ResolveAllInternal>b__43(TypeRegistration registration) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3766** ** at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
** at System.Linq.Enumerable.d__b11.MoveNext()** ** at System.Collections.Generic.List1…ctor(IEnumerable1 collection)** ** at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)**
** at lambda_method(Closure , Object )**
** at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3677**
** — End of inner exception stack trace —**
** at TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3684**
** at TinyIoC.TinyIoCContainer.SingletonFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2834**
** at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346**
** at TinyIoC.TinyIoCContainer.Resolve(Type resolveType, String name) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 1486**
** at NzbDrone.Common.Composition.Container.<>c__DisplayClass4.b__3(TinyIoCContainer c, NamedParameterOverloads p) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Composition\Container.cs:line 81**
** at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2543**
** — End of inner exception stack trace —**
** at TinyIoC.TinyIoCContainer.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 2547**
** at TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3346**
** at TinyIoC.TinyIoCContainer.b__43(TypeRegistration registration) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\TinyIoC.cs:line 3766**
** at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()** ** at System.Linq.Enumerable.<CastIterator>d__b11.MoveNext()**

Previous versions available here:
https://download.sonarr.tv/v2/master/windows/

That’s all great to use a previous version, but in windows it auto updates. :frowning: . So far i cant find a way to disable it.

FYI: You can’t blindly roll back without restoring the correct database too.

In any case, the above errors point to a missing .Net update (an rather old one btw). It should be a Windows Update.

Related:

Here’s some quick temporary steps to get you back up on the last public release for the time being… And the database is okay without reverting it seems.

Temporarily disable auto updates:
Edit your c:\windows\system32\drivers\etc\hosts file
127.0.0.1 download.sonarr.tv

You can remove that line from the hosts file once a fixed Sonarr release is available, you can check the latest version/date of release here: https://download.sonarr.tv/v2/master/windows/

In your Sonarr/NZBDrone directory:
Rename bin to bin.bad
Create new bin folder
Download https://download.sonarr.tv/v2/master/windows/NzbDrone.master.2.0.0.3732.windows.zip
Extract all the files inside NZBDrone directory in that ZIP into the new/empty bin folder

Start the Sonarr/NZBDrone service (if you’re using the service), otherwise start NZBDrone.exe in the bin directory.

And reading that other thread, appears installing .NET Windows Updates may fix the error.

I will investigate this, but it’s on a server, so it tends to not get taken offline often for updates.

Updated .Net solved my issue. Up to current release with no crash.

Thanks.

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