Open HidingCherry opened 2 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
You're well into unsupported
territory with that level of customization.
Docker with nvidia runtime
(nvidia-container-toolkit) works just fine, which is the configuration we support. Podman rootless itself is considered a reasonable endeavor
so while we don't officially support it, we'll try and help. But podman rootless with custom nvidia bits is not something we can help with.
https://docs.linuxserver.io/misc/support-policy/#reasonable-endeavours-support
Yes, that's correct. podman + rootless is already something I don't expect to get lots of support with.
But since linux standard programs use /usr/lib
libraries and not a custom library, the issue seems to be image or plex specific. The main question is, why does plex not use /usr/lib
for libraries - but nvidia-smi
does (in the same container).
edit: You should be able to recreate the same issue with docker rootful.
No point in arguing hypothethicals. I'd rather avoid the xy problem.
edit: You should be able to recreate the same issue with docker rootful.
Please don't expect us to do the work based on assumptions or a hunch. If you reproduce the issue with rootful docker and official nvidia-container-toolkit, let us know and we'll look into it.
Last I tested plex with nvidia-container-toolkit, following the instructions we provide in the readme, everything was working just fine and that was only a couple of months ago.
I had no issues a couple of months ago either, I use your image since at least a year. I'll see if I can setup rootful docker in the near future.
I am seeing the same issue in kubernetes. Same thing, use to work a few months ago and now it is broken. nvec is still working in other containers, just not Plex.
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Temporary workaround which works for me:
for i in /usr/lib/lib*.so.1;
do ln -s $i /usr/lib/plexmediaserver/lib/;
done
This symlinks all libraries (which are actually all nvidia/cuda ones) to the library folder of plex. After a short test, hw-transcoding works again. This script has to be run inside the container.
script for podman:
podman exec plex bash -c 'for i in /usr/lib/lib*.so.1; do ln -s $i /usr/lib/plexmediaserver/lib/; done'
Currently I don't have the time to setup rootful docker to recreate the issue there.
Is there an existing issue for this?
Current Behavior
Trying to use hardware transcoding with nvidia. plex uses custom libraries from
/usr/lib/plexmediaserver/lib/
instead of/usr/lib/
as one would expect. nvidia-cdi has even been modified to includelibcuda.so.1
to/usr/lib
.nvidia-smi
works as expected.PS: you really miss a "custom comment" section...
Expected Behavior
No response
Steps To Reproduce
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
Environment
CPU architecture
x86-64
Docker creation
Container logs