"Port in use" and "Connection refused"

Sonarr was working fine last night and then no more today.It will not start up or show web UI.

Develop Branch

Windows 10

Chrome

15-11-30 21:33:10.1|Info|Bootstrap|Starting Sonarr - C:\ProgramData\NzbDrone\bin\NzbDrone.exe - Version 2.0.0.3594
15-11-30 21:33:10.7|Debug|ProcessProvider|Found 0 processes with the name: NzbDrone.Console
15-11-30 21:33:10.8|Debug|ProcessProvider|Found 1 processes with the name: NzbDrone
15-11-30 21:33:10.8|Debug|ProcessProvider| - [17088] NzbDrone
15-11-30 21:33:11.1|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\NzbDrone\nzbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
15-11-30 21:33:11.3|Debug|MigrationLogger|Took: 00:00:00.2477116
15-11-30 21:33:11.4|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\NzbDrone\logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
15-11-30 21:33:11.5|Debug|MigrationLogger|Took: 00:00:00.0861484
15-11-30 21:33:11.5|Debug|netsh.exe|Starting netsh.exe http show urlacl
15-11-30 21:33:11.7|Debug|netsh.exe|URL Reservations:
15-11-30 21:33:11.8|Debug|netsh.exe|-----------------
15-11-30 21:33:11.8|Debug|netsh.exe| Reserved URL : http://:5357/
15-11-30 21:33:11.8|Debug|netsh.exe| User: BUILTIN\Users
15-11-30 21:33:11.8|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:11.8|Debug|netsh.exe| Delegate: No
15-11-30 21:33:11.9|Debug|netsh.exe| User: NT AUTHORITY\LOCAL SERVICE
15-11-30 21:33:11.9|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:11.9|Debug|netsh.exe| Delegate: No
15-11-30 21:33:11.9|Debug|netsh.exe| SDDL: D:(A;;GX;;;BU)(A;;GX;;;LS)
15-11-30 21:33:12.0|Debug|netsh.exe| Reserved URL : http://+:80/Temporary_Listen_Addresses/
15-11-30 21:33:12.0|Debug|netsh.exe| User: \Everyone
15-11-30 21:33:12.0|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.0|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.0|Debug|netsh.exe| SDDL: D:(A;;GX;;;WD)
15-11-30 21:33:12.1|Debug|netsh.exe| Reserved URL : https://
:5358/
15-11-30 21:33:12.1|Debug|netsh.exe| User: BUILTIN\Users
15-11-30 21:33:12.1|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.1|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.1|Debug|netsh.exe| User: NT AUTHORITY\LOCAL SERVICE
15-11-30 21:33:12.1|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.2|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.2|Debug|netsh.exe| SDDL: D:(A;;GX;;;BU)(A;;GX;;;LS)
15-11-30 21:33:12.2|Debug|netsh.exe| Reserved URL : http://+:10247/apps/
15-11-30 21:33:12.2|Debug|netsh.exe| User: NT AUTHORITY\Authenticated Users
15-11-30 21:33:12.2|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.2|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.2|Debug|netsh.exe| SDDL: D:(A;;GX;;;AU)
15-11-30 21:33:12.2|Debug|netsh.exe| Reserved URL : https://+:10245/WMPNSSv4/
15-11-30 21:33:12.2|Debug|netsh.exe| User: NT SERVICE\WMPNetworkSvc
15-11-30 21:33:12.3|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.3|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.3|Debug|netsh.exe| SDDL: D:(A;;GX;;;S-1-5-80-2375682873-768044350-3534595160-1005545032-2873800392)
15-11-30 21:33:12.3|Debug|netsh.exe| Reserved URL : http://+:10243/WMPNSSv4/
15-11-30 21:33:12.3|Debug|netsh.exe| User: NT SERVICE\WMPNetworkSvc
15-11-30 21:33:12.3|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.3|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.3|Debug|netsh.exe| SDDL: D:(A;;GX;;;S-1-5-80-2375682873-768044350-3534595160-1005545032-2873800392)
15-11-30 21:33:12.3|Debug|netsh.exe| Reserved URL : http://*:2869/
15-11-30 21:33:12.3|Debug|netsh.exe| User: NT AUTHORITY\LOCAL SERVICE
15-11-30 21:33:12.3|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.3|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.3|Debug|netsh.exe| SDDL: D:(A;;GX;;;LS)
15-11-30 21:33:12.3|Debug|netsh.exe| Reserved URL : http://+:10246/MDEServer/
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT AUTHORITY\Authenticated Users
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.4|Debug|netsh.exe| SDDL: D:(A;;GX;;;AU)
15-11-30 21:33:12.4|Debug|netsh.exe| Reserved URL : https://+:5986/wsman/
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT SERVICE\WinRM
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT SERVICE\Wecsvc
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.4|Debug|netsh.exe| SDDL: D:(A;;GX;;;S-1-5-80-569256582-2953403351-2909559716-1301513147-412116970)(A;;GX;;;S-1-5-80-4059739203-877974739-1245631912-527174227-2996563517)
15-11-30 21:33:12.4|Debug|netsh.exe| Reserved URL : http://+:47001/wsman/
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT SERVICE\WinRM
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT SERVICE\Wecsvc
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.4|Debug|netsh.exe| SDDL: D:(A;;GX;;;S-1-5-80-569256582-2953403351-2909559716-1301513147-412116970)(A;;GX;;;S-1-5-80-4059739203-877974739-1245631912-527174227-2996563517)
15-11-30 21:33:12.4|Debug|netsh.exe| Reserved URL : http://+:5985/wsman/
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT SERVICE\WinRM
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.4|Debug|netsh.exe| User: NT SERVICE\Wecsvc
15-11-30 21:33:12.4|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.4|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.5|Debug|netsh.exe| SDDL: D:(A;;GX;;;S-1-5-80-569256582-2953403351-2909559716-1301513147-412116970)(A;;GX;;;S-1-5-80-4059739203-877974739-1245631912-527174227-2996563517)
15-11-30 21:33:12.5|Debug|netsh.exe| Reserved URL : http://+:80/0131501b-d67f-491b-9a40-c4bf27bcb4d4/
15-11-30 21:33:12.5|Debug|netsh.exe| User: NT AUTHORITY\NETWORK SERVICE
15-11-30 21:33:12.5|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.5|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.5|Debug|netsh.exe| SDDL: D:(A;;GX;;;NS)
15-11-30 21:33:12.5|Debug|netsh.exe| Reserved URL : https://+:443/C574AC30-5794-4AEE-B1BB-6651C5315029/
15-11-30 21:33:12.5|Debug|netsh.exe| User: NT AUTHORITY\NETWORK SERVICE
15-11-30 21:33:12.5|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.5|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.5|Debug|netsh.exe| SDDL: D:(A;;GX;;;NS)
15-11-30 21:33:12.5|Debug|netsh.exe| Reserved URL : http://+:80/116B50EB-ECE2-41ac-8429-9F9E963361B7/
15-11-30 21:33:12.5|Debug|netsh.exe| User: NT AUTHORITY\NETWORK SERVICE
15-11-30 21:33:12.5|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.5|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.5|Debug|netsh.exe| SDDL: D:(A;;GX;;;NS)
15-11-30 21:33:12.5|Debug|netsh.exe| Reserved URL : https://+:443/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/
15-11-30 21:33:12.5|Debug|netsh.exe| User: NT SERVICE\SstpSvc
15-11-30 21:33:12.5|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.5|Debug|netsh.exe| Delegate: Yes
15-11-30 21:33:12.5|Debug|netsh.exe| User: BUILTIN\Administrators
15-11-30 21:33:12.5|Debug|netsh.exe| Listen: No
15-11-30 21:33:12.5|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.6|Debug|netsh.exe| User: NT AUTHORITY\SYSTEM
15-11-30 21:33:12.6|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.6|Debug|netsh.exe| Delegate: Yes
15-11-30 21:33:12.6|Debug|netsh.exe| SDDL: D:(A;;GA;;;S-1-5-80-3435701886-799518250-3791383489-3228296122-2938884314)(A;;GR;;;BA)(A;;GA;;;SY)
15-11-30 21:33:12.6|Debug|netsh.exe| Reserved URL : http://74.133.132.1:8989/
15-11-30 21:33:12.6|Debug|netsh.exe| User: \Everyone
15-11-30 21:33:12.6|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.6|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.6|Debug|netsh.exe| SDDL: D:(A;;GX;;;WD)
15-11-30 21:33:12.6|Debug|netsh.exe| Reserved URL : http://74.133.132.1:9090/
15-11-30 21:33:12.6|Debug|netsh.exe| User: \Everyone
15-11-30 21:33:12.6|Debug|netsh.exe| Listen: Yes
15-11-30 21:33:12.6|Debug|netsh.exe| Delegate: No
15-11-30 21:33:12.6|Debug|netsh.exe| SDDL: D:(A;;GX;;;WD)
15-11-30 21:33:12.6|Info|Router|Application mode: Interactive
15-11-30 21:33:12.6|Debug|Router|Console selected
15-11-30 21:33:12.7|Info|OwinHostController|Listening on the following URLs:
15-11-30 21:33:12.7|Info|OwinHostController| http://74.133.132.1:8989/
15-11-30 21:33:12.7|Info|OwinHostController| http://localhost:8989/
15-11-30 21:33:13.2|Debug|OwinAppFactory|Attaching NzbDroneVersionMiddleWare to host
15-11-30 21:33:13.2|Debug|OwinAppFactory|Attaching SignalRMiddleWare to host
15-11-30 21:33:13.2|Debug|OwinAppFactory|Attaching NancyMiddleWare to host
15-11-30 21:33:13.3|Info|NancyBootstrapper|Starting NzbDrone API
15-11-30 21:33:13.6|Trace|EventAggregator|Publishing ApplicationStartedEvent
15-11-30 21:33:14.7|Trace|EventAggregator|ApplicationStartedEvent -> UserService
15-11-30 21:33:14.7|Trace|EventAggregator|ApplicationStartedEvent <- UserService
15-11-30 21:33:14.7|Trace|EventAggregator|ApplicationStartedEvent -> DownloadClientFactory
15-11-30 21:33:14.7|Debug|DownloadClientFactory|Initializing Providers. Count 9
15-11-30 21:33:14.9|Trace|EventAggregator|ApplicationStartedEvent <- DownloadClientFactory
15-11-30 21:33:14.9|Trace|EventAggregator|ApplicationStartedEvent -> IndexerFactory
15-11-30 21:33:14.9|Debug|IndexerFactory|Initializing Providers. Count 15
15-11-30 21:33:15.0|Trace|EventAggregator|ApplicationStartedEvent <- IndexerFactory
15-11-30 21:33:15.0|Trace|EventAggregator|ApplicationStartedEvent -> ReconfigureLogging
15-11-30 21:33:16.8|Fatal|WindowsApp|EPIC FAIL: Port 8989 is already in use, please ensure NzbDrone is not already running.

NzbDrone.Host.Owin.PortInUseException: Port 8989 is already in use, please ensure NzbDrone is not already running. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Net.HttpListenerException: The format of the specified network name is invalid
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func2 appFunc, IList1 addresses, IDictionary2 capabilities, Func2 loggerFactory)
at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func2 app, IDictionary2 properties)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder)
at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer(StartContext context)
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
at NzbDrone.Host.Owin.OwinAppFactory.CreateApp(List1 urls) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 52 --- End of inner exception stack trace --- at NzbDrone.Host.Owin.OwinAppFactory.CreateApp(List1 urls) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 63
at NzbDrone.Host.Owin.OwinHostController.StartServer() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Owin\OwinHostController.cs:line 56
at NzbDrone.Host.NzbDroneServiceFactory.Start() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\ApplicationServer.cs:line 55
at NzbDrone.Host.Router.Route(ApplicationModes applicationModes) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Router.cs:line 38
at NzbDrone.Host.Bootstrap.Start(ApplicationModes applicationModes, StartupContext startupContext) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Bootstrap.cs:line 70
at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action`1 startCallback) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Host\Bootstrap.cs:line 38
at NzbDrone.WindowsApp.Main(String[] args) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone\WindowsApp.cs:line 23

I suspect it has to do with the Bind Address that was specified, you’ll need to clear it from C:\ProgramData\NzbDrone\config.xml

Thats a master release as well, not develop.

Changed both of those and now it’s working. Thank for the help!

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