Port 8989 is already in use, please ensure NzbDrone is not already running

Sonarr version (exact version): v2.0.0.4689
Mono version (if Sonarr is not running on Windows): n/a
OS: Windows 7 Home Premium
((Debug logs)): https://pastebin.com/qATYnpFY
Description of issue: I have successfully used Sonarr for almost a year now, and recently have been unable to launch the browser interface. I have uninstalled, reinstalled, replaced db and config files (and not) all to no success. If I check running processes, it looks like nzbdrone is listed, so I End Process. Launch localhost:8989 and get: This page isnā€™t working. localhost didnā€™t send any data. ERR_EMPTY_RESPONSE. If I try to launch I get the dialogue box, noted in Title of this post. Canā€™t seem to find my way around this, appreciate the help!!

((Trace logs)), would be helpful here, youā€™ll need to set that directly in the configuration file (config.xml), by setting the Loglevel to Trace.

Updated Trace log level pastebin: https://pastebin.com/mWw3uyKJ

Youā€™ll need to post the contents of sonarr.trace.txt, the log posted doesnā€™t have any trace level events.

Hm, Iā€™m confused. I donā€™t see any file named sonarr.trace.txt in the folder. I am not able to access the UI at all, since I cannot get it to launch. I updated the config file to say ā€œtraceā€ at the level> prompt, but not sure what else I might be missing here. Apologies for my lack of understanding, and thanks for the patience.

Did you also restart Sonarr after changing it by stopping and starting the service or process?

Ahhh I did, but I realized I placed the ā€œtraceā€ in the wrong part of the line for log level in config file. Edited, restarted and got 2 more logs in the folder:

Debug Log: https://pastebin.com/SVhadADy
Trace Log: https://pastebin.com/8CibGxcK

Thanks.

At an admin command prompt can you run: netsh http delete urlacl url=http://*:8989/ and then restart Sonarr? (run Sonarr as admin the first time to re-register the URL with Windows).

Iā€™m at work, but will do that when I get home and get back to you! When you refer to running Sonarr as admin, do I just need to right-click, ā€œrun as adminā€ on NZBDrone.exe in the main folder?

Yes, exactly that.

ok I shut down the process, ran the command as admin, restarted nzbdrone.exe as admin, got the same error exactly. I also have like 15 more trace and debug log files, please advise next step. Thanks!!

The command did run successfully correct?

What if you change the port in config.xml to something else, say 18989 and then restart Sonarr?

Yes, the command ran successfully and I can certainly try updating to a new port in config file when I get home tonight. Is that the only place Iā€™d need to change it? Also, is there any easy way to find what ports are already in use? Wondering if something else ā€˜stoleā€™ the port from Sonarr - if so knowing what it will allow me to remove it.

Thanks again for the help!

You can use netstat, netstat /aob will give you all connections with the binary name and process ID.

1 Like

So creating a new port, 18989 resolved the issue! I did the netstat /aob and found the following:
TCP 0.0.0.0:8989
[java.exe]

Any clue why it might be holding/using it; any way to clear/release it?

Thanks!!!

Java or something running under it, might just be a randomly selected outbound port, restarting the system and trying port 8989 again would probably be easiest. Or just kill the process.

Yeah I guess i could kill Java, start sonarr with the old port in there so itā€™s not avail for java and then restart it. Not a big deal sounds like either way. Just mad at whatever it was that caused Sonarr issuesā€¦ :slight_smile:
Thanks for all the help, I really appreciate it!!

See my previous thread about this exact same problem - it was fixed and I am back running on port 8989

Very cool. I will try your modified syntax to delete what is on 8989, reset config file then try launching again.
Worst case scenario I can go back to the ā€˜newā€™ port.

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