EpisodeMonitoredService - Keeps resetting Season/episode to Monitored


#1

Sonarr version (exact version): 3.0.1.411
OS: 2012r2
Description of issue:
When Sonarr is doing an refresh for some reason it goes through and changes the monitored status of a Season/Episode from unMonitored to Monitored

This only happens to newly added series and in debug logs you see
19-3-24 08:51:40.7|Info|SeriesScannedHandler|[Deadwind] was recently added, performing post-add actions
19-3-24 08:51:40.8|Debug|EpisodeMonitoredService|[Deadwind] Monitoring all episodes
or
19-3-24 08:52:39.3|Info|SeriesScannedHandler|[The Umbrella Academy] was recently added, performing post-add actions
19-3-24 08:52:39.3|Debug|EpisodeMonitoredService|[The Umbrella Academy] Monitoring all episodes

The episodes for Deadwind/The Umbrella Academy have already been downloaded, i have manually reset the monitored status to unmonitored - and removed the episodes from sonarr (deleted through the UI) as i dont let sonarr monitor my media folders as have Emby for that and if i have a download file i dont need sonarr to go and get it again as i am happy with the “quality” of what i have already. Just want sonarr to pick up new episodes i dont have as they become available etc.

If i shut down sonarr and restart - let the normal refresh happen after a couple of minutes - the unmonitored episodes get unmonitored again! or i hit the refresh/scan option the files become monitored again - This is a PIA

Happens on more than one series - at some point this stops - i guess after sonarr does not consider it “as recently added”

Am i missing a setting somewhere or is this a bug as sonarr should not override the monitored status?


#2

We’re going to need a lot more of the logs.

Normally, when you add a show to Sonarr you specify what you want monitored (Future, Last, etc), this choice gets stored in the database and processed AFTER the first Series refresh. Once that happened successfully the stored choice gets discarded.

The only way this can repeatedly happen if something goes wrong during the refresh.

So get some trace level log files.


#3

I think you are misunderstanding

I add the series, download the episodes for the season(s), then remove these from sonarr (remove episodes to another drive), delete through the UI all files from sonarr, which sets the monitored status to none.

Then on a refresh - either at start up or a manual refresh - re sets the monitored status- why would it do that when the files have been downloaded and then deleted?

As of today The Umbrella Company - does not get re monitored?? Deadwind still does ??

Have no idea what you mean by future last etc - as i just add a series, add a quality profile, get sonarr to search for episodes if they are available they get downloaded etc


#4

When adding series:
image

That setting is stored when adding a series, and used once when the first series refresh occurs. And is used to determine which episodes must be monitored and which not… once right after adding the series.
Your log snippet indicates that this happened, but you provided no other log details that confirms whether it happens repeatedly.

This is unmonitored:
image

And this is monitored:
image

When the series is refreshed, it rescans the series folder as specified. It won’t suddenly start monitoring and episode. At most it’ll unmonitor an episode of there related episode file was removed (it
's assuming the user deleted the file via a mediacenter and no longer wants sonarr to monitor it).


#5

Ok setup trace logging and refreshed Deadwind

19-3-26 14:02:54.2|Info|DiskScanService|Scanning Deadwind 19-3-26 14:02:54.2|Trace|EventAggregator|Publishing CommandUpdatedEvent 19-3-26 14:02:54.2|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule 19-3-26 14:02:54.2|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule 19-3-26 14:02:54.2|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule 19-3-26 14:02:54.2|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule 19-3-26 14:02:54.3|Debug|DiskScanService|Scanning ‘Z:\NZBRecs\Series\Deadwind’ for video files 19-3-26 14:02:54.3|Trace|DiskScanService|0 files were found in Z:\NZBRecs\Series\Deadwind 19-3-26 14:02:54.3|Debug|DiskScanService|0 video files were found in Z:\NZBRecs\Series\Deadwind 19-3-26 14:02:54.3|Trace|HttpClient|Res: [HEAD] https://www.thetvdb.com/banners/fanart/original/344444-3.jpg: 200.OK (133 ms) 19-3-26 14:02:54.3|Trace|DiskScanService|Finished getting episode files for: [344444][Deadwind] [00:00:00.0689054] 19-3-26 14:02:54.3|Trace|HttpClient|Req: [HEAD] https://www.thetvdb.com/banners/graphical/5b7f3374f1322.jpg 19-3-26 14:02:54.4|Trace|ConfigService|Using default config value for ‘proxyenabled’ defaultValue:‘False’ 19-3-26 14:02:54.4|Debug|DiskScanService|[344444][Deadwind] Cleaning up media files in DB 19-3-26 14:02:54.4|Debug|ImportDecisionMaker|Analyzing 0/0 files. 19-3-26 14:02:54.4|Trace|DiskScanService|Import decisions complete for: [344444][Deadwind] [00:00:00.0320959] 19-3-26 14:02:54.5|Trace|HttpClient|Res: [HEAD] https://www.thetvdb.com/banners/graphical/5b7f3374f1322.jpg: 200.OK (78 ms) 19-3-26 14:02:54.5|Trace|HttpClient|Req: [HEAD] https://www.thetvdb.com/banners/posters/5b7f3133a5367.jpg 19-3-26 14:02:54.5|Trace|ConfigService|Using default config value for ‘proxyenabled’ defaultValue:‘False’ 19-3-26 14:02:54.5|Trace|ConfigService|Using default config value for ‘deleteemptyfolders’ defaultValue:‘False’ 19-3-26 14:02:54.5|Info|DiskScanService|Completed scanning disk for Deadwind 19-3-26 14:02:54.6|Trace|EventAggregator|Publishing SeriesScannedEvent 19-3-26 14:02:54.6|Trace|HttpClient|Res: [HEAD] https://www.thetvdb.com/banners/posters/5b7f3133a5367.jpg: 200.OK (89 ms) 19-3-26 14:02:54.6|Trace|EventAggregator|Publishing MediaCoversUpdatedEvent 19-3-26 14:02:54.6|Trace|EventAggregator|SeriesScannedEvent -> SeriesScannedHandler 19-3-26 14:02:54.6|Trace|EventAggregator|MediaCoversUpdatedEvent -> ExtraService 19-3-26 14:02:54.6|Info|SeriesScannedHandler|[Deadwind] was recently added, performing post-add actions 19-3-26 14:02:54.7|Debug|CleanExtraFileService|Cleaning missing metadata files for series: Deadwind 19-3-26 14:02:54.7|Debug|EpisodeMonitoredService|[Deadwind] Monitoring all episodes 19-3-26 14:02:54.8|Trace|EventAggregator|MediaCoversUpdatedEvent <- ExtraService 19-3-26 14:02:54.8|Trace|EventAggregator|MediaCoversUpdatedEvent -> SeriesModule 19-3-26 14:02:54.8|Trace|EventAggregator|Publishing SeriesEditedEvent 19-3-26 14:02:54.8|Trace|EventAggregator|SeriesEditedEvent -> SeriesEditedService 19-3-26 14:02:54.8|Trace|EventAggregator|SeriesEditedEvent <- SeriesEditedService 19-3-26 14:02:54.8|Trace|EventAggregator|SeriesEditedEvent -> SeriesModule

As you can see its still resetting the monitored status 3-4 days after i added the series and d/l the episodes and then removed them to other storage.

Ok i see what you mean about ALL, future etc - i have not changed that so it will be the default of All - as 99% of the time i am adding new series i have not seen before - and want all episodes

If it supposed to get updated after the first refresh - then i dont think that is working - hence the constant re monitoring of the episodes.

And yes it happens repeatedly with different Series its not just Deadwind


#6

The log you posted is formatted horribly, I suggest you post it on pastebin/hastebin instead so that the newlines are properly readable and post the link here.

Also include more context, the first line ‘Scanning Deadwind’ is most certainly not the first one since it’s supposed to be preceded with a CommandExecutor log entry.

The last line is most certainly not the last one since the event that initiates the post-add logic is logged here:

Trace|EventAggregator|SeriesScannedEvent -> SeriesScannedHandler

, yet there’s no accompanying log entry marking the end of that particular event.
Also, there should be an CommandExecutor event marking the end of the RefreshSeries command.

When in doubt, include more log entries, not less.


#7

This is the couple of lines that show its resetting the database monitoring status

19-3-26 14:02:54.7|Debug|CleanExtraFileService|Cleaning missing metadata files for series: Deadwind 19-3-26 14:02:54.7|Debug|EpisodeMonitoredService|[Deadwind] Monitoring all episodes 19-3-26

the rest is just for context - i.e prior to me manually refreshing the series and after the couple of lines above

never said it was the first or last line - by the way

its a logic error not a error in the logs - sonarr is marking episodes as monitored that have been marked manually to be unmonitored - thats the error


#8

This is ridiculous… I’m trying to help you, yet you seem to completely ignore what I’m asking for.

POST MORE OF THE LOG. Heck, post from 10min before to 10min after and ensure that the CommandExecutor log lines pertaining to RefreshSeries are included in it.


closed #9

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