Closed bbaldino closed 4 years ago
This is likely caused from the plugin settings page refreshing.
Essentially, when the settings page refreshes, it checks the current installed version on Sonarr by running: Nzbdrone.exe /?
That prints the version information and some other information then exits. It appears though that if the plugin is starting up Sonarr, and checks the version at the same time, they detect each other. If this is something new you see, it's possible that the 'SingleInstancePolicy' is something the Sonarr author recently implemented. Perhaps the Sonarr dev can make it so when the /? is called it bypasses the single instance policy.
Sounds like a good theory...also might explain why it seemed to go away all of a sudden...I think I may have restarted the array and doing it from there, where sonarr would start up on the disks mounted trigger as opposed to the settings page which does the auto refresh for status.
I just started seeing this recently, didn't see other references to it so maybe something is wrong on my end, but I can repro it with a completely (?) clean install, so maybe not. Basically when I install the sonarr plugin and start it up, it gets started twice. I see the following in the sonarr logs:
I tried adding some debug logs and I don't see the script invoking it twice or anything, so I don't know what's causing it. What's also weird is that if I run the start command manually (sudo -H -u nobody /bin/bash -c '. ...), then things start up fine. Any ideas?