-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show does not delete after "Take action after days" = 0 #1140
Comments
Also have the same problem, running on both older versions and the most recent version. The logs aren't overly helpful. I can see there's a problem but it's just logging out a generic error.
|
Hey, something else re-adds the media. Mostly this is a due to Overseerr’s auto watchlist download feature. Make sure something like that isn’t enabled |
I don't use watchlists with Overseer so the media is not being re-added. It never gets deleted. |
Any update on this issue? |
Hey, Sorry for the late reply. I haven't seen any related reports and haven't been able to replicate this myself. So i'm actually unsure what's going on. Do you happen to have logs from Plex, Sonarr, and perhaps Overseerr during the deletion timeframe? I think it has something to do with a failure to fetch the tvdb id, which is used for removal through Sonarr. Altough it should log a message when this is the case. This error is due to a failure while fetching the tvdb ID from tmdb. But there are a few fallback mechanisms, so it's possible one of those did find the ID. |
So this just happened to happen again this morning. Shows got removed by Maintainer, but are still on Plex. The shows were re-added and the counter started again at 30 days. I check Sonarr logs and didn't see anything around the time these were supposed to be deleted. The closest I found was below However these are just refreshes and nothing re-downloaded to my server. |
I pushed a few changes that might fix your issue. If not, it'll hopefully log more 'debug' level info this time, You can try it out with the 'ghcr.io/jorenn92/maintainerr:main' image. This image gets build after each git change. |
I just installed the main version. Will let you know in 4 days what happens. |
@jorenn92 Unfortunately the same thing is occurring. Here is what the logs show.
|
Unfortunately, the above log seems fine. It successfully unmonitored the show and removed all episodes. At least, the API calls to Sonarr were successful from Maintainer's point of view. Did you enable the 'DEBUG=true' flag in your environment variables? If not, maybe that'll give us some more info. If you did enable it, it looks like everything went alright. Also, could you check the history of an episode of these shows in Sonarr to make sure it wasn't redownloaded? I did push some minor changes today, one of which fixes a small issue where seasons would stay monitored while the show is unmonitored. But I don't think this has any functional impact, since Sonarr wouldn't download episodes of an unmonitored show anyway. |
I did not have DEBUG enabled. Sonarr does not re-download the shows (I would get a notification at several stages of the download/addition to Plex). I've deleted the shows manually for now. |
Okay, hopefully you won't run into it again! But If you do, could you share a log file when the DEBUG flag has been set? |
I'm seeing a similar problem, the files are deleted from disks and it is removed from Sonarr. However the problem is that the TV shows are still showing in Plex, though when I try to play a show the files are unavailable. |
Another quick update, I have " Empty trash automatically after every scan" in Plex Library settings disabled. |
Good catch! I can confirm your theory: If the item is still showing in Plex, Maintainerr assumes it's still available, which is why it keeps coming back. |
What's the solution in the scenario, could maintainerr be set-up to take into account if the content is available or not? |
I could explore a way for Maintainerr to check if any files are associated with the Plex item, assuming Plex updates its file path to be empty. However, I don't have the time to implement this right now. For the foreseeable future, Plex servers should be configured to always reflect the actual state. |
Ok |
I have a similar problem. Mostly with movies. When looking at Radarr, there are no API calls to remove the files and delete the movie from Radarr. It seems like maintainerr is just skipping the whole Radarr part but removes the movie from itself, then at the next scan, he re-adds the movie again. This has been happening for a long time now in multiple maintainerr versions. When looking at the XML from Plex for this movie, it does have all the necessary IDs:
|
I
Do you have logs of these executions as well? This looks quite bizarre. It seems that something else is removing the item from the collection between runs, which causes Maintainer to re-add it. (However, when manually removed from the Plex collection, Maintainerr should create an exclusion) Regarding the 'Removed ...' log line without a corresponding 'Successfully handled ...' message: This can occur if the item no longer matches the rule criteria before the removal takes place. In such cases, the item is removed again, and you'll only see the 'removed' message. |
Are you seeing anything in your Sonarr logs? Are there any entries about deleting or failure to delete? This has happened to a few people in the past, and the answer was usually a change to the hostname they were using in the Sonarr/Radarr settings of Maintainerr. I even had this problem when I started because I was using the docker container hostname. When I switched to the IP address it started to work. Even though my connection test were coming back as successful. |
This issue has been marked stale because it has been 30 days with no activity. |
Hi @macstainless, that should be the case yes. I presume you have Allow media deletion enabled in Plex? |
Yes I do have that enabled on Plex. |
I have the same issue, media is not being deleted for the past months is there a solution or has it been fixed? |
I would like to see what we can get figured out on Discord. Mind coming over there and we can take a look? |
Describe the bug
I have a rule that deletes stale shows that haven't been watched in over 1 year. Currently 2 shows fit this description. I have watched the countdown reach 0 twice and neither time did it delete the show. Instead the logs show it's been removed from the collection and then it re-adds and restarts the timer.
Expected behavior
To delete said shows after 30 days.
Screenshots
Device (please complete the following information):
Other notes
I have a rule to delete movies not watched after X years and it removes these with no issues.
The text was updated successfully, but these errors were encountered: