Plex-Auto-Languages icon indicating copy to clipboard operation
Plex-Auto-Languages copied to clipboard

plex-auto-languages seems to be causing plex server to endlessly run operations

Open itsANHonor opened this issue 1 year ago • 11 comments

While investigating why my server was running at high CPU loads, I discovered that my Plex server was endlessly looping through some sort of operation with plex-auto-languages. The behavior would always occur at 2am when my Scheduled Plex Tasks kicked off but would continue endlessly until I stopped the docker container for plex-auto-languages.

The logs on the plex-auto-languages docker container doesn't reveal much. plexautolanguages-dozzle

These are the plex server logs https://pastebin.com/qHnLGCKp

itsANHonor avatar Sep 07 '24 16:09 itsANHonor

This repository is pretty much dead in terms of development or anything really, but the only way to really fix it short of going into the code and fixing things is to disable the scheduler in the config file.

You could go and try my version if you would like and see if it works for you -- https://hub.docker.com/r/journeyover/plex-auto-languages

it has updated dependencies and I fixed up a few issues.

JourneyOver avatar Sep 08 '24 23:09 JourneyOver

Thanks, I'll give it a shot.

itsANHonor avatar Sep 09 '24 03:09 itsANHonor

@JourneyOver Unfortunately your version still is creating the same issue, but it seems to be localized to one particular show. I'll try getting Plex to ignore that one show.

itsANHonor avatar Sep 09 '24 15:09 itsANHonor

Hmm damn, sucks that it was even is doing it with my version :/ the fix for the particuler error in the image is from this PR https://github.com/RemiRigal/Plex-Auto-Languages/pull/100 which I had pushed into my version, as I was having the same issue as you for a very long time until I implemented it myself and stopped having the issues. Mind throwing up what show exactly it seems to be localized on that is possibly causing the issue still?

JourneyOver avatar Sep 09 '24 21:09 JourneyOver

Interesting. Appreciate your help! I labeled the show with the ignore label and still ran into the issue last night. I'm attempting to stop the trigger_on_scan functionality for PAL to see if that helps.

Pastebin seems to be down, but I had the Plex server logs here: https://pastebin.com/qHnLGCKp

It's a show called Strikeback that it seems to be stuck on in particular.

itsANHonor avatar Sep 10 '24 14:09 itsANHonor

Sadly I still haven't been able to reproduce the NotImplementedError that shows in your picture ever since forking and committing PR #100 into my fork. So I'm honestly currently stuck on trying to figure out why it's still producing the error for you. The only other fix really is just straight up turning off the scheduler completely like suggested in #90 .

JourneyOver avatar Sep 11 '24 04:09 JourneyOver

Ah sorry to be clear, once I moved to your new image, the NotImplemented Error has gone away, but I was still getting the CPU intensive loops for that one show every night when Plex Media Server kicked off background tasks. I finally just disabled the PAL "Start on Scan" feature and it seems to have stopped that issue last night. I'm still not sure why it was so stuck on one show, but I'll keep it this way for now.

itsANHonor avatar Sep 11 '24 16:09 itsANHonor

@JourneyOver please, can you make the tags available so I can use it in helm charts? God damn love PAL but it's unusable as is so I'd love to try your version

Here's an example repository: docker.io/journeyover/plex-auto-languages tag: v1.2.3

s0len avatar Sep 25 '24 12:09 s0len

@s0len to answer you both here and on #100

It's already up on github located here -- https://github.com/JourneyDocker/Plex-Auto-Languages as I have it under an org that I have all my docker stuff under.

I currently don't have it setup with any tags short of just latest right now and probably will just keep using the latest tag for now as I have no real plans on implementing features, I'm just trying to fix bugs that pop up and keep dependencies updated, but you can use either docker.io/journeyover/plex-auto-languages:latest or ghcr.io/journeydocker/plex-auto-languages:latest to use my version.

I am still trying to figure out the high cpu usage problem that people seem to be experiencing, but I have not been able to reproduce the problem myself at all, so I currently still have no fix in place for said problem, but other things like the whole raise NotImplementedError('History objects cannot be reloaded. Use source() to get the source media item.') NotImplementedError: History objects cannot be reloaded. Use source() to get the source media item. problem is fixed in my version (at least from what I can tell as I haven't seen the error myself any in my fork).

JourneyOver avatar Sep 25 '24 14:09 JourneyOver

This repository is pretty much dead in terms of development or anything really, but the only way to really fix it short of going into the code and fixing things is to disable the scheduler in the config file.

You could go and try my version if you would like and see if it works for you -- https://hub.docker.com/r/journeyover/plex-auto-languages

it has updated dependencies and I fixed up a few issues.

i cannot thank you enough, i truly thought this project was dead and as someone with anime library, this app was a god send, finally using your fork its the first time i went over an hour without crashing, infact, its been up for over 24 hours so far

i rly think you should publish this instead of forking so more people know this is still alive

king8084 avatar Feb 08 '25 07:02 king8084

i cannot thank you enough, i truly thought this project was dead and as someone with anime library, this app was a god send, finally using your fork its the first time i went over an hour without crashing, infact, its been up for over 24 hours so far

It's not a problem at all, glad to hear it's working for you! ^^

i rly think you should publish this instead of forking so more people know this is still alive

Not really sure what you mean by this exactly, unless you're just talking about detaching my repository from Remi's repository and turning it into a standalone repository. But tbh, I don't really see a point, as either way, people can find it easily. I do have it up on DockerHub, Unraid, and GHCR, and I've posted about my fork in several different locations as well.

JourneyOver avatar Feb 10 '25 02:02 JourneyOver