Description of issue:
Randomly after about 2 weeks of working properly my Sonarr instance just goes crazy. It deletes ALL of my shows from the list, but before doing so grabs hundreds of releases that it thinks it doesn’t have. I have been having to restore from a backup everytime this happens. It is quite frustrating. Any help would be appreciated.
The main error i’m seeing within the logs is: Error occurred while executing task SeasonSearch: Series with ID 239 does not exist — But for every Series ID that it has i guess…
Sonarr has no functionality to delete shows on it’s own. This sounds like Sonarr is publicly available, without authentication and someone is messing with it.
It is definitely not available from the internet. I believe that something is corrupting the db in the background. I’ve looked through the logs and there are a lot of errors when attempting to get status from Qbitorrent…though there are no problems with my qbitorrent instance.
18-9-20 17:39:49.3|Warn|DownloadMonitoringService|Unable to retrieve queue and history items from Qbit
Not sure what other context I can give. The shows aren’t deleted properly if the system still thinks they’re there, correct? If a show was to be deleted how would the system still have a Series ID available that it doesn’t know how to search for? It would clean that up if some nefarious user went through and deleted the series…
Enable trace logging and you’ll get a whole lot more (50 for debug and another 50 for trace). Trace will show a lot of detail, but rolls over pretty quickly, it will show API calls, for things like searches and deletes.
Sonarr doesn’t automatically search for entire seasons (unless it’s told to search when the series is added), I can really only see them being triggered by someone/something (a 3rd party app using the API), but if you can catch the initial requests in the API you might be able to pinpoint what it is.
At this point I would enable a username and password on Sonarr and reset the API key, that way no one with the API key already can still use it and no one can gain access.
If Sonarr isn’t accessible from the internet make sure nothing using it’s API is as well, Ombi for example.
Good idea on the API thing. I didn’t even have search enabled in Ombi…but disabled it now. Maybe that will help. I have trace on for now as well and will take a look at logs.