PortInUseException and windows service won't stay running

Sonarr version (exact version): Latest
OS: Windows
((Debug logs)):
https://pastebin.com/RDRRuq4B
Description of issue:
Whenever I try to start up Sonarr, I get the PortInUseException error. I have even tried changing the port number multiple times in the config file, still getting the same error. I’ve even tried deleted the log files and config files and running the exe as an administrator and it gives me the same error. It always shows NzbDrone.exe process running. The windows service is never running though, and when I try to manually start it, it claims that it started but then stopped. I have also tried uninstalling the service and running the NzbDrone.exe again, but it gives me the same issue. Uninstalling and reinstalling it doesn’t fix it either. I’m at a complete loss of what to try next.

It looks like tr URL Sonarr is attempting to us is invalid, if you go to C:\ProgramData\NzbDrone and rename config.xml does the issue persist?

Does ilthe issue ocurr if you stop the server and run NzbDrone.exe or NzbDrone.Console.exe directly?

Yes, the issue still persists with renaming or deleting the config file. And I currently have the windows service uninstalled. The only thing I hadn’t tried was running the NzbDrone.Console.exe, but that still gives me the same Epic fail.

I let the NzbDrone.Console.exe run even after the Epic Fail error, and it said starting RSS Sync. I’m not sure if that’s of any significance. I still cannot access it via localhost:8989
https://pastebin.com/hJ65wZkv

Can you open a command prompt then run netsh http show urlacl > netsh.txt and then post the contents of netsh.txt?

Here is the output from that. I have already tried deleting the 8989 port entry and then running NzbDrone.exe as an administrator, and that didn’t work.

What if you delete it and run it normally (not as an admin)? It’ll bind to localhost instead of * that way.

I’ve tried that now, and I still get the Port In Use error. But now the 8989 port doesn’t show up under netsh http show urlacl

Which version of the .net framework do you have installed? You can get the latest here: https://www.microsoft.com/en-us/download/details.aspx?id=55170&desc=dotnet47
Which version of Windows?

I already have version 4.7 installed. I’m on Windows 10, but not yet the creator’s update.

I’ve just updated to the Creator’s Update to see if that could be a cause of the issue, but I’m still getting the same error. I’m at quite a loss of what the issue could be.

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