Server Version#: 1.21.3.4046
Player Version#: 4.51.1 (web) or 8.13.1.23036 (Android)
Recently rebuild my server and changed from Centos7 to RHEL8. Since the rebuild I have been unable to get anything to play where transcoding is required.
If I play files through my Nvidia Shield it works without issue, but using the web player or Android app fails to work and I receive an error
‘Conversion failed. The transcoder exited due to an error.’
Did initially also have a lot of errors with the system failing to download codecs, but after manually downloading these those errors no longer occur but unsure if this would all be related.
Starting to run out of ideas to attempt myself so was hoping to get some assistance with this matter.
*Edit to put link to logs in reasonable location in post. Plex Media Server.log (3.6 MB)
Where did you symlink PMS to? The mount is the root issue here.
The errors in your logs show “operation not permitted” when attempting to load codecs (which are shared objects). .so files are executable; therefore the partition containing them must allow exec permission.
Solutions:
Add exec option to /etc/fstab for the partition actually containing Library
Additionally, Create a proper systemd override file and discontinue use of symlinks.
Feb 24, 2021 17:26:55.841 [0x7f383f861e80] DEBUG - ChangestampAllocator: initialized to 5989825098825955424
Feb 24, 2021 17:26:55.841 [0x7f383f861e80] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.26.0, threadsafe=1
Feb 24, 2021 17:26:55.847 [0x7f383f861e80] DEBUG - Running migrations. (EPG 0)
Feb 24, 2021 17:26:55.847 [0x7f383f861e80] WARN - [FFMPEG] - Error loading external lib: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/367b3d4-3673-linux-x86_64/libh264_decoder.so: cannot open shared object file: Operation not permitted
Feb 24, 2021 17:26:55.847 [0x7f383f861e80] WARN - [FFMPEG] - Error loading external lib: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/367b3d4-3673-linux-x86_64/libac3_decoder.so: cannot open shared object file: Operation not permitted
Feb 24, 2021 17:26:55.847 [0x7f383f861e80] WARN - [FFMPEG] - Error loading external lib: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/367b3d4-3673-linux-x86_64/libaac_encoder.so: cannot open shared object file: Operation not permitted
Feb 24, 2021 17:26:55.847 [0x7f383f861e80] WARN - [FFMPEG] - Error loading external lib: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/367b3d4-3673-linux-x86_64/liblibx264_encoder.so: cannot open shared object file: Operation not permitted
Feb 24, 2021 17:26:55.864 [0x7f383f861e80] DEBUG - [CERT] Installed certificate with fingerprint 2f:03:12
Thanks for the response, I shall have a look into this when I am home.
From my recollection of the setup though I did not create any symlinks and the only changes I made to fstab was mounting my media directory which isn’t where Plex is located.
Will advise further once I have a chance to double check my configuration and follow your advice though.
I have now examined this further, the /etc/fstab for the partiion containing the Library contained default settings (exec allowed)
No symlinks were in use in regards to the directories used by Plex, and the initial installation was perform from the repo ( Enable repository updating for supported Linux server distributions | Plex Support) so had thought most should be default settings
So I have tried the above.
Stopped Plex, deleted Codecs (except .device-id), Starts plex.
Continues to fail, now stating that no Codecs are available.
Tried in both Chrome, and Edge and had the same problem, do not currently have FF for testing.
Yeah that was something I had noted before.
I thought i had overcome that although not in a clean method by performing a wget on the codecs using the provided URL.
This did let me proceed past this particular error though it was not really a feasible solution. Trying to resolve the playback I had thought getting Codecs would be a good start though possibly it’s all related.
I will need to check that configuration when I am back home, but I can imagine this very much may be an issue.
Will advise further once I have checked.
Thanks for the assistance so far.
I’ve never been the strongest user of wireshark, never quite sure what I’m looking at, but nothing is looking obviously like a fault here, unless I’ve made a mistake with something.
First I attempted to play a file so it would auto download codecs. First 1000ish lines)
Then I did a curl and wget.
From what I have determined when it downloads the codecs it looks as though it downloads a temp file, which it seems to not have execute permissions too, it cant confirm the file is correct, and then it is deleted.
Cannot work out why this would occur though. Plex has full permissions to the folder it is downloading too and permissions should not be stripped so much.
Mpeg4 decoder tmp files are in the folder, and then immediately removed
OK, so I am still not sure where I have gone wrong here, but I have determined that if I tell Plex to run as root:root everything works correctly.
So something is wrong with my permissions though I am not certain what. For the meantime this gets me up and going and considering my system is isolated and runs nothing but plex its feasible but not a preferred solution.