1.15.0.647 - Fails to launch - Can't find libva.so.2

On my Unraid box, I run the official docker container. HW acceleration works. But when I restarted the pms-docker, it upgraded to 1.15.0.647, but it can’t launch any more with continuous errors:

Starting Plex Media Server.
/usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: libva.so.2: cannot open shared object file: No such file or directory

I do see the library in the same place where the Plex Media Server loads the other libs from:

root@unraid:/usr/lib/plexmediaserver# ls /usr/lib/plexmediaserver/lib/libva.so.2
/usr/lib/plexmediaserver/lib/libva.so.2

root@unraid:/usr/lib/plexmediaserver# ldd Plex\ Media\ Server
[…snipped…]
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x0000152bcf505000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x0000152bcf2ef000)
libva.so.2 => not found
libva.so.2 => not found
libva-drm.so.2 => not found
libva.so.2 => not found

How do I resolve this? :frowning:

I’ve the same error

Thought I wouldn’t be the only one. Giving Emby a try with Kodi, while this is sorted. :stuck_out_tongue:

I don’t know Docker or unraid but in the startup script, where it sets LD_LIBRARY_PATH,

edit it to add /lib to the end. Save and restart. It appears the docker scripts weren’t updated.

Please confirm the patch works and I will submit the bug report.

Let me give it a shot. I see which file to update:

/var/run/s6/services/plex/run

I added /lib in the following line, as following to above file:

exec s6-setuidgid plex /bin/sh -c ‘LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server’

It works. Please submit the bug report.

Thanks for the response! I should’ve figured this out on my own. I guess I got confused why it could load the .so’s from the same directory but not the libva.

Work too !

Change /usr/lib/plexmediaserver to /usr/lib/plexmediaserver/lib in /etc/services.d/plex/run

Now, one final verification if you have time:

Per the instructions:

  1. With the Public version, make sure everything is up to date.
  2. Then uprade.

Skipping updates has been known to cause that error. I need to verify everything was done per instructions.

I’m using the official docker image. pms-docker. I usually do a restart when I see an upgrade is available, which is what I did this time. And experience an issue.

I did not skip an update. I update religiously.

I also did a docker pull pms-docker – but no difference.

Let me know if you need any more info.

All good. Thanks very much. Completing the report now.

My teammate on the other side of the world (currently in daylight :slight_smile: ) told me it was fixed and tested some time ago.

The container must be updated. He runs unraid.

I hope you know what that means?

The docker has been updated 24 days ago (https://hub.docker.com/r/plexinc/pms-docker/tags) by commit: https://github.com/plexinc/pms-docker/commit/0e81f12e599d83db99b7d2bd1c94b1a29088b2e7

How did you edit the file? I have no nano or vi :slight_smile:

I have the same issue :slight_smile:

In windows, it started but continously kept crashing. I reverted to to last public uptate and everything is once again fine.

I used the horrible way to do it but it works:

go into container: docker exec -it plex bash
go to folder: cd /etc/services.d/plex

run this: cp run run.backup (just to be safe :slight_smile: )

echo #!/usr/bin/with-contenv bash > run
echo >> run
echo echo “Starting Plex Media Server.” >> run
echo home="$(echo ~plex)" >> run
echo export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR:-${home}/Library/Application Support}" >> run
echo export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver >> run
echo export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 >> run
echo export PLEX_MEDIA_SERVER_INFO_DEVICE=docker >> run
echo >> run
echo if [ ! -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” ]; then >> run
echo " /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}”" >> run
echo " chown plex:plex “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}”" >> run
echo fi >> run
echo >> run
echo exec s6-setuidgid plex /bin/sh -c ‘LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server’ >> run

1 Like

update run file.txt (1.0 KB)

here’s the text file so that you can just copy paste

1 Like

sed -i ‘s/LD_LIBRARY_PATH=/usr/lib/plexmediaserver/LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib/g’ /etc/services.d/plex/run

Here’s a command that will replace just the line in a Docker image. Backup the file first, etc

haha, that’ll be the correct way of doing it yes :smiley: ignore my way !

Just did a docker pull and it’s fixed upstream again!

I did an apt install nano. It’s basically a Ubuntu Xenial image.

2 Likes