Cannot connect to local host, port 8989 in use

Sonarr v2 or v3:
Windows:
OS windows 10:
Debug logs:
**cannot connect to localhost, i have deleted and uninstalled all versions, removed all files from c:/programdata, reinstalled, changed ports in the config.xml, rebooted and nothing. netsh deleted reserved url, nothing. Nothing works. here is my latest log when trying to run the console

20-4-4 23:11:30.8|Info|Bootstrap|Starting Sonarr - C:\ProgramData\NzbDrone\bin\NzbDrone.Console.exe - Version 2.0.0.5344
20-4-4 23:11:31.0|Info|Router|Application mode: Interactive
20-4-4 23:11:31.1|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\NzbDrone\nzbdrone.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
20-4-4 23:11:31.2|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\NzbDrone\logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
20-4-4 23:11:31.4|Info|OwinHostController|Listening on the following URLs:
20-4-4 23:11:31.4|Info|OwinHostController| http://192.168.1.40:8989//
20-4-4 23:11:31.4|Info|OwinHostController| http://192.168.1.40:8989/
20-4-4 23:11:31.4|Info|OwinHostController| http://localhost:8989/
/
20-4-4 23:11:31.4|Info|OwinHostController| http://localhost:8989/
20-4-4 23:11:31.5|Info|NancyBootstrapper|Starting Web Server
20-4-4 23:11:32.0|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.5344] 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 parameter is incorrect
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 C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 52 --- End of inner exception stack trace --- at NzbDrone.Host.Owin.OwinAppFactory.CreateApp(List1 urls) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 63
at NzbDrone.Host.Owin.OwinHostController.StartServer() in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Owin\OwinHostController.cs:line 53
at NzbDrone.Host.NzbDroneServiceFactory.Start() in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\ApplicationServer.cs:line 61
at NzbDrone.Host.Router.Route(ApplicationModes applicationModes) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Router.cs:line 47
at NzbDrone.Host.Bootstrap.Start(ApplicationModes applicationModes, StartupContext startupContext) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Bootstrap.cs:line 78
at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action`1 startCallback) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Bootstrap.cs:line 41
at NzbDrone.Console.ConsoleApp.Main(String[] args) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Console\ConsoleApp.cs:line 37

**:

Clear the BindAddress in the config file (in the AppData Folder) and/or run Sonarr as admin at least one time.

Did that, bind address says *, ran NzbDrone as admin. Nothing

The bind address is set to 192.168.1.40 based on the logs.

sorry here is the newest, also, nzbdrone process is stopped and cannot start so no other instance is running, checked services, programs, task and nothing is running

20-4-5 11:15:12.5|Info|Bootstrap|Starting Sonarr - C:\ProgramData\NzbDrone\bin\NzbDrone.exe - Version 2.0.0.5344
20-4-5 11:15:12.7|Info|Router|Application mode: Interactive
20-4-5 11:15:12.8|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\NzbDrone\nzbdrone.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
20-4-5 11:15:12.9|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\NzbDrone\logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
20-4-5 11:15:13.2|Info|OwinHostController|Listening on the following URLs:
20-4-5 11:15:13.2|Info|OwinHostController|  http://*:8989/
20-4-5 11:15:13.5|Info|NancyBootstrapper|Starting Web Server
20-4-5 11:15:13.8|Fatal|WindowsApp|EPIC FAIL

[v2.0.0.5344] 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, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
   at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 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(List`1 urls) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 52
   --- End of inner exception stack trace ---
   at NzbDrone.Host.Owin.OwinAppFactory.CreateApp(List`1 urls) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Owin\OwinServiceProvider.cs:line 63
   at NzbDrone.Host.Owin.OwinHostController.StartServer() in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Owin\OwinHostController.cs:line 53
   at NzbDrone.Host.NzbDroneServiceFactory.Start() in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\ApplicationServer.cs:line 61
   at NzbDrone.Host.Router.Route(ApplicationModes applicationModes) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Router.cs:line 47
   at NzbDrone.Host.Bootstrap.Start(ApplicationModes applicationModes, StartupContext startupContext) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Bootstrap.cs:line 78
   at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action`1 startCallback) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Host\Bootstrap.cs:line 41
   at NzbDrone.WindowsApp.Main(String[] args) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone\WindowsApp.cs:line 23

If you run netsh http show urlacl url=http://*:8989/ what do you see?

Also worth running netsh http show urlacl amd looking for anything with port 8989.

You can then delete them with:

netsh http delete urlacl url=http://*:8989/ (replacing the URL as necessary).

Reserved URL            : http://*:8989/
    User: \Everyone
        Listen: Yes
        Delegate: No
        SDDL: D:(A;;GX;;;WD)

did the delete, and deleted the url associated above, as soon as i run nzbscraper.exe it goes to the same error of already in use when obviously its not.

also, on the random chance it does run and tries to load the web page it says connection refused, check firewall and port 8989 incoming and outgoing is allowed.

Nothing else is registered for that port?

If you run netsh http show urlacl it’ll show everything. If you redirect to a file you can search by port.

netstat -b will also show if anything is using that port, it’s rare but I’ve seen Chrome hold onto it.

image

then i launch nzbdrone.exe or sonarr i get the same error
image

Nothing else with port 8989 when you ran netsh http show urlacl? No https record?
Nothing for 8989 in netstat -b?

I’m not sure what else it could be.

I dont know either

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