PortInUseException Port 8989 is already in use

Ok first time posting a fault to a forum in my life, but this has really got on nerves. I have a WHS with NzbDrone on it and when it tries to load i get this error saying the port is already in use. it doesn’t matter what i change the port to in the config file it always gives me the same error. i have deleted everything and reinstalled it to no success same error comes up.

30% of the time ill come home from work and the thing is running which i have no idea why and then the next day after restarting it wont load again and say the port is in use. Any ideas on this matter would be greatly appreciated, might be the easiest fix in the world and a fresh brain on the case may be whats needed.

http://imgur.com/XhQFz1m (error message)

Check the logs files: https://github.com/NzbDrone/NzbDrone/wiki/Log-Files

Could be a number of things, without the logs we won be able to know for sure what it is.

14-3-30 19:45:35.0|Info|Bootstrap|Starting NzbDrone - C:\Documents and Settings\All Users\Application Data\zbDrone\bin\zbDrone.exe - Version 2.0.0.1269
14-3-30 19:45:42.5|Info|MigrationLogger|*** Migrating data source=“C:\Documents and Settings\All Users\Application Data\zbDrone
zbdrone.db”;cache size=-10485760;datetimekind=Utc;journal mode=Wal ***
14-3-30 19:45:47.3|Info|DbFactory|Vacuuming database
14-3-30 19:45:49.2|Info|DbFactory|Database Compressed
14-3-30 19:45:49.2|Info|MigrationLogger|*** Migrating data source=“C:\Documents and Settings\All Users\Application Data\zbDrone\logs.db”;cache size=-10485760;datetimekind=Utc;journal mode=Wal ***
14-3-30 19:45:49.3|Info|DbFactory|Vacuuming database
14-3-30 19:45:49.5|Error|DbFactory|An Error occurred while vacuuming database.
14-3-30 19:45:49.8|Info|Router|Application mode: Interactive
14-3-30 19:45:50.2|Info|OwinHostController|Listening on the following URLs:
14-3-30 19:45:50.2|Info|OwinHostController| http://:8989/
14-3-30 19:45:50.2|Info|OwinHostController| https://
:9898/
14-3-30 19:45:53.2|Info|lambda_method|Starting NzbDrone API
14-3-30 19:46:02.3|Info|SceneMappingService|Updating Scene mapping
14-3-30 19:46:03.2|Info|HousekeepingService|Running housecleaning tasks
14-3-30 19:46:09.4|Debug|CleanupOrphanedEpisodeFiles|Running orphaned episode files cleanup
14-3-30 19:46:09.4|Debug|FixFutureRunScheduledTasks|Running scheduled task last execution cleanup
14-3-30 19:46:09.6|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 tracking (workstation) service is not running
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.ServerFactory.Create(Func2 app, IDictionary2 properties)
— End of inner exception stack trace —
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
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 Microsoft.Owin.Hosting.WebApp.StartImplementation(IServiceProvider services, StartOptions options, Action1 startup) at NzbDrone.Host.Owin.OwinHostController.StartServer() in m:\\BuildAgent1\\work\\328d72309b633a8\\src\zbDrone.Host\\Owin\\OwinHostController.cs:line 47 --- End of inner exception stack trace --- at NzbDrone.Host.Owin.OwinHostController.StartServer() in m:\\BuildAgent1\\work\\328d72309b633a8\\src\zbDrone.Host\\Owin\\OwinHostController.cs:line 86 at NzbDrone.Host.NzbDroneServiceFactory.Start() in m:\\BuildAgent1\\work\\328d72309b633a8\\src\zbDrone.Host\\ApplicationServer.cs:line 62 at NzbDrone.Host.Router.Route(ApplicationModes applicationModes) in m:\\BuildAgent1\\work\\328d72309b633a8\\src\zbDrone.Host\\Router.cs:line 38 at NzbDrone.Host.Bootstrap.Start(ApplicationModes applicationModes, StartupContext startupContext) in m:\\BuildAgent1\\work\\328d72309b633a8\\src\zbDrone.Host\\Bootstrap.cs:line 72 at NzbDrone.Host.Bootstrap.Start(StartupContext startupContext, IUserAlert userAlert, Action1 startCallback) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone.Host\Bootstrap.cs:line 40
at NzbDrone.WindowsApp.Main(String[] args) in m:\BuildAgent1\work\328d72309b633a8\src\zbDrone\WindowsApp.cs:line 23

There ya go i cleared it before trying to run NzbDrone again, Maybe you can make sense of it then buddy.

Thanks

Looks like a service is not started and is required: System.Net.HttpListenerException: The tracking (workstation) service is not running

I’ll look at adding it as a dependency for drone’s service.

Might just be being stupid saying this but in services it says it has started and is running fine, even restarted the service and NzbDrone still wont start, When you say you will look into it, does this mean this is not a simple fix ? i need NzbDrone in my life!

Not sure if it’s simple or not.

If you’re getting that error and it’s started them maybe you’re seeing multiple reasons preventing it from starting, or there is something that else causing issues.

Can you try it on another system or VM and see if you have issues?

i tried all the files that my WHS uses on my main computer running windows 8.1 and they seem to load but without the tv shows i added, that could be because i was reinstalling everything earlier whilst trying things im sure i have it somewhere. but yes the program does open instantly on my desktop just not on the home server. This is annoying me so much i am thinking of doing recovery on the home server when i get time as im sure it will resolve it, i was just hoping anyone on here could save me from doing it.

i dont want to go back to sickbeard NZBDrone is so much nicer on the eyes and easier to use.

This does seem like an underlying issue with the Windows installation, not sure if a recovery will solve it or not (or the risks involved).

This is not a Windows issue. I am getting the same issue on Mac Lion. I even changed the port from 8989 to 8987 and restarted and it continues to give me this fatal error. I am using the latest version of nzbdrone (or Sonarr) and all updates to my system have been applied.

Log files would help.
Which version of mono?
How are you running it?
OS X 10.10?