Skip to content
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

Plex 1.40.3+ Not Downloading Codecs #317

Closed
llajas opened this issue Jun 19, 2024 · 5 comments
Closed

Plex 1.40.3+ Not Downloading Codecs #317

llajas opened this issue Jun 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@llajas
Copy link
Contributor

llajas commented Jun 19, 2024

Describe the bug
It seems that a new update for Plex (1.40.3+, specifically) breaks the scripts ability to set the CLUSTERPLEX_PLEX_CODECS_VERSION variable properly, thus preventing codecs from downloading for workers.

To Reproduce
Steps to reproduce the behavior:
Deployed via Helm, set image tag to (or leave as) 'latest'
Run ClusterPlex
Attempts at playing media requiring transcoding will fail. Logs show several 404 errors, shortened below:

Starting Plex Media Server. . . (you can ignore the libusb_init error)
CLUSTERPLEX_PLEX_VERSION => '1.40.3.8555-fef15d30c'
CLUSTERPLEX_PLEX_CODECS_VERSION => ''
CLUSTERPLEX_PLEX_EAE_VERSION (extracted) => 'eae--42'
PLEX_ARCH => 'amd64'
EAE_VERSION => '2001'
CLUSTERPLEX_PLEX_CODEC_ARCH => linux-x86_64-standard
Codec location => /codecs/-linux-x86_64-standard
Found EAE_VERSION.txt => 2001
EAE is up to date
Codec libaac_decoder.so does not exist. Downloading...
--2024-06-18 14:31:24--  https://downloads.plex.tv/codecs//linux-x86_64-standard/libaac_decoder.so
Resolving downloads.plex.tv (downloads.plex.tv)... 104.18.0.127, 104.18.1.127, 2606:4700::6812:7f, ...
Connecting to downloads.plex.tv (downloads.plex.tv)|104.18.0.127|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-06-18 14:31:24 ERROR 404: Not Found.

Expected behavior
Media plays without issue.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Fedora
  • Version 38

Additional context

Running strings "Plex Transcoder" | grep -Po '[0-9a-f]{7}-[0-9]{4}$' yields no values. Taking a peek into the file itself, it seems that the second half of the new string has been shifted from being 4 characters long and numbers only to 16 characters long, consisting of both numbers and letters now.

%s version ad47460-ffe81d9cd51bd27cb3fbbe09

Will open a PR with the below; proposed change updates the script to allow numbers as well as letters, searching for a minimum of 4 characters and including any that are beyond the initial 4 since there's no way of knowing what will happen in the future, upstream. Definitely open to suggestions.

root@clusterplex-worker-0:/lib/plexmediaserver# strings "Plex Transcoder" | grep -Po '[0-9a-f]{7}-[0-9]{4}$'
root@clusterplex-worker-0:/lib/plexmediaserver# strings "Plex Transcoder" | grep -Po '[0-9a-f]{7}-[0-9a-f]{4,}$'
ad47460-ffe81d9cd51bd27cb3fbbe09
@llajas llajas added the bug Something isn't working label Jun 19, 2024
This was referenced Jun 19, 2024
@albertsj1
Copy link

albertsj1 commented Jun 21, 2024

ah, I am hitting this as well. I was going to open a PR and noticed this is already open and has a PR waiting to be merged. I see @pabloromeo has approved the PR. Looking forward to PR #318 being merged. :)

I also noticed CLUSTERPLEX_PLEX_EAE_VERSION (extracted) => 'eae--42' doesn't seem to be getting a valid value. Looking at the source, there should be a version number between the two hyphens. I ran the strings command manually myself against the pms_original binary and there doesn't appear to be any version numbers list.
This is what I get:

>> strings pms_original | grep Easy
EasyAudioEncoder-%s-%s
EasyAudioEncoder
EasyAudioEncoder-

@pabloromeo
Copy link
Owner

I'll try to merge it right now, which will hopefully fix the issue on "latest".
I'll try to do a proper versioned release ASAP.

@pabloromeo
Copy link
Owner

pabloromeo commented Jun 21, 2024

"latest" docker tag should contain this fix. Please try it and let me know how it goes.

@pabloromeo
Copy link
Owner

Release https://github.com/pabloromeo/clusterplex/releases/tag/v1.4.12 is the pinned version that includes this fix.

@llajas
Copy link
Contributor Author

llajas commented Jun 22, 2024

I've updated my helm chart and I'm back to running on the latest Plex tag. Thanks @pabloromeo for merging!


Codec libzmbv_decoder.so does not exist. Downloading...
--2024-06-21 18:56:17--  https://downloads.plex.tv/codecs/ad47460-ffe81d9cd51bd27cb3fbbe09/linux-x86_64-standard/libzmbv_decoder.so
Resolving downloads.plex.tv (downloads.plex.tv)... 104.18.0.127, 104.18.1.127, 2606:4700::6812:7f, ...
Connecting to downloads.plex.tv (downloads.plex.tv)|104.18.0.127|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 86048 (84K) [application/octet-stream]
Saving to: ‘libzmbv_decoder.so’

     0K .......... .......... .......... .......... .......... 59% 1.85M 0s
    50K .......... .......... .......... ....                 100% 1.69M=0.05s

2024-06-21 18:56:17 (1.79 MB/s) - ‘libzmbv_decoder.so’ saved [86048/86048]

EAE_SUPPORT => 1
EAE_EXECUTABLE => /codecs/ad47460-ffe81d9cd51bd27cb3fbbe09-linux-x86_64-standard/EasyAudioEncoder/EasyAudioEncoder/EasyAudioEncoder
FFMPEG_HWACCEL => nvdec
ON_DEATH: debug mode enabled for pid [1088]
Computed CPU ops => 606008
Initializing Worker 46d3bc82-3363-45ee-841c-cd33df7c22a9|clusterplex-worker-0
Worker listening on port 3501
Worker connected on socket VmNxscYOpavJ6vBBAAAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants