Win10 - Sonarr (not installed as service) not able to launch automatically

Sonarr version (exact version): 2.0.0.4326
Mono version (if Sonarr is not running on Windows):
OS: Windows 10
((Debug logs)):
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)
Description of issue: Sonarr is not launching automatically when I place it in the startup folder. I have also tried creating a task using task scheduler to start Sonarr when Sabnzbd starts, but I get the following error.

“Task Scheduler failed to launch action “C:\ProgramData\NzbDrone\bin\NzbDrone.exe” in instance “{ba7e83b6-f3be-4363-be9d-a4d1af9da481}” of task “\Start Sonarr”. Additional Data: Error Value: 2147943140.”

I also set this task to launch Chrome just to test and that works fine.

I am able to launch Sonarr manually without a problem. I would like to avoid running Sonarr as a service. Any ideas?

I have enabled the debug logging, but there was nothing in the log after the task scheduler failed to launch the action.

Any issues if you manually run C:\ProgramData\NzbDrone\bin\NzbDrone.exe? What if you try to run C:\ProgramData\NzbDrone\bin\NzbDrone.Console.exe via the startup folder?

I can run NzbDrone.exe manually without any issues. If I try to run NzbDrone.Console.exe via the startup folder it gives the following readout in the console window.

http://pastebin.com/233vuvfx

I can also run NzbDrone.exe manually after NzbDrone.Console.exe fails when it is trying to startup from the startup folder so I don’t really understand the error regarding the port already being in use.

Did you setup a Bind Address in Sonarr’s general settings? It looks like that was setup and is causing some issues (it doesn’t work the way it’s expected to in a number of cases and causes issues).

I’d recommend the following:

  1. Start Sonarr (anyway it will start)
  2. Removing the bind address (if you can’t start Sonarr remove it from the config file directly, the config file is in the ((AppData Folder))
  3. Stop Sonarr
  4. Run the following command in a command prompt with admin privileges: netsh http delete urlacl http://192.168.1.15:38081/
  5. Run Sonarr once as Admin (either NzbDrone.exe or NzbDrone.Console.exe)

Thanks, that appears to have solved the problem.

1 Like

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