Closed mihaif7 closed 2 months ago
I assume the user you're using for Jellyfin to delete assets (this is required) has the correct access to the library it's trying to delete from?
I would double check your permissions. Nobody else has reported anything like it and I've been running my own for months without issues like that.
I'd also recommend getting off the latest tag and at least use stable or native-stable, depending on what you prefer.
The user that I'm using for the cleanup has the following permissions and also has access to all libraries.
Am I missing something? Because it's only happening for TV shows, movies get deleted just fine
PS: Changed from latest to stable.
Ok managed to fix the issue but not sure what did the fix.
I changed the leaving-soon directories ownership to be the same folder as the Movies
and TV
folders and I also provided the PUID
and the PGID
as env variables to the Janitorr container. Was thrown off by the 401
thrown by Jellyfin and assumed that it was an Issue with the user/permission in Jellyfin.
Anyway thanks for the help
Are you using whole-show or season by season?
Can you confirm the ID above in the error log exists. It says:
Items/45583a7d63e4936a7316df8739199efd
When you open your server as your Jellyfin user and go to a random TV show or season, the URl should look like:
https://jellyfin.yours/web/#/details?id=900500dc5bf2dbd2316b0b213960afd4&serverId=ba136f1bd03e473b8cedfcf910527b30
If you exchange 900500dc5bf2dbd2316b0b213960afd4 with 45583a7d63e4936a7316df8739199efd, what does it show? Can you see this item and can you delete it?
It could technically happen that Janitorr deletes an item via Sonarr and Jellyfin picks up on this deletion SO quickly via directory scan, that before Janitorr even sends the delete request to Jellyfin, it's already gone. This is unlikely and has never happened to me, but I can imagine it could technically happen.
Was thrown off by the 401 thrown by Jellyfin and assumed that it was an Issue with the user/permission in Jellyfin.
I suspect that Janitorr created a the subfolders which it then told Jellyfin to use. If Jelly tried to delete something inside the Leaving Soon library that was created physically on disk by Janitorr but cannot be accessed by Jellyfin, Jellyfin will throw a 401 apparently.
I've not seen that before, but I think it's time to start a wiki/FAQ with these "common errors" and their solutions. So thank you a lot of reporting and reporting the solution too.
Are you using whole-show or season by season?
Can you confirm the ID above in the error log exists. It says:
Items/45583a7d63e4936a7316df8739199efd
When you open your server as your Jellyfin user and go to a random TV show or season, the URl should look like:
https://jellyfin.yours/web/#/details?id=900500dc5bf2dbd2316b0b213960afd4&serverId=ba136f1bd03e473b8cedfcf910527b30
If you exchange 900500dc5bf2dbd2316b0b213960afd4 with 45583a7d63e4936a7316df8739199efd, what does it show? Can you see this item and can you delete it?
It could technically happen that Janitorr deletes an item via Sonarr and Jellyfin picks up on this deletion SO quickly via directory scan, that before Janitorr even sends the delete request to Jellyfin, it's already gone. This is unlikely and has never happened to me, but I can imagine it could technically happen.
Unfortunately I already cleaned everything up and didn't think to check if the files were still working in Jellyfin, but I suspect they were still accessible. The shows in question should have been deleted directly since they were way above the threshold set in Janitorr. And to make things worse for Movies it worked without an Issue.
Movies above threshold -> deleted TV Shows above threshold -> error
Was thrown off by the 401 thrown by Jellyfin and assumed that it was an Issue with the user/permission in Jellyfin.
I suspect that Janitorr created a the subfolders which it then told Jellyfin to use. If Jelly tried to delete something inside the Leaving Soon library that was created physically on disk by Janitorr but cannot be accessed by Jellyfin, Jellyfin will throw a 401 apparently.
I've not seen that before, but I think it's time to start a wiki/FAQ with these "common errors" and their solutions. So thank you a lot of reporting and reporting the solution too.
The items were not in the leaving-soon directory. They were in the TV
directory that I've been using for a long time without an issue. Permissions for the files were ok. It fixed itself after I fixed the leaving-soon
permissions.
Another thing I noticed was that it added a TV show to the leaving-soon
section but the TV show was under the treshold and it only added the seasons without any episodes. It happened a few times. If it happens again I'll get back to you with as much info as I can.
Another thing I noticed was that it added a TV show to the leaving-soon section but the TV show was under the treshold and it only added the seasons without any episodes. It happened a few times. If it happens again I'll get back to you with as much info as I can.
It could still be some bug with the whole-show option that treats empty Sonarr seasons differently, somehow. If this happens again and you can provide some logs, that'd be great.
Hello, been using Janitorr for a while now but I noticed that I get a 401 Error when trying to delete TV shows/seasons.
Here's the error message it's showing in the container:
I use docker-compose for everything. My docker-compose looks something like this
Directories are mapped the same in the *arr stack and in Jellyfin. The Jellyfin config in application.yml is configured with the correct values (user + password works and api key shows up in Jellyfin)
Not sure if this is a bug or I missconfigured something.
Thanks for all the work on this amazing project :)