shemanaev / jellyfin-plugin-media-cleaner

Automatically delete played media files after specified amount of time.
MIT License
71 stars 1 forks source link

[Bug]: Unable to run shudle task #55

Open BreizhHardware opened 3 weeks ago

BreizhHardware commented 3 weeks ago

What happened?

I want to manually run my media cleaner schudled task but I encounter this error message:

[18:50:28] [ERR] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task

System.NullReferenceException: Object reference not set to an instance of an object.

   at MediaCleaner.Filtering.SeriesFilter.Apply(List`1 items)

   at MediaCleaner.JunkCollectors.BaseJunkCollector.ExecuteNotPlayed(List`1 users, IEnumerable`1 filters, CancellationToken cancellationToken)

   at MediaCleaner.MediaCleanupTask.CollectNotPlayedSeries(List`1 users, List`1 usersWithFavorites, ItemsAdapter itemsAdapter, CancellationToken cancellationToken)

   at MediaCleaner.MediaCleanupTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)

   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)

[18:50:28] [INF] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: Played media cleanup Failed after 0 minute(s) and 19 seconds 

Here is my settings :

image

I use a dockerized jellyfin

shemanaev commented 3 weeks ago

Hi! It's hard to tell what's going on. We could start with enabling Debug logging ("Trace" level will be excellent) and heading to Troubleshooting section of plugin then. There should be a lot of data in Jellyfin's log file then, that can give me some clues.

BreizhHardware commented 3 weeks ago

When I try to display the troubleshooting section I have an error

image

shemanaev commented 3 weeks ago

Yes, right. That's why I asked to enable a debug log and see what's going on in Jellyfin's own logs (Dashboard -> Logs section).

BreizhHardware commented 3 weeks ago

So here is the log file, if you need anything else I'm available

log_20240824.log

shemanaev commented 3 weeks ago

Could you try this build? Just replace dll and restart Jellyfin.

BreizhHardware commented 2 weeks ago

I try with the new DLL file and I still got the same issue

Here is the latest log file https://cdn.breizhhardware.fr/FAKA3/NoJOmOLe84.log

shemanaev commented 2 weeks ago

Still can't locate it. Let's another shot with new build. Remember to go to Troubleshooting section after plugin update and then download log.

BreizhHardware commented 2 weeks ago

After the last Jellyfin update (10.9.10) my issue is fixed, thank you for your time