Server Version#: 1.15.0.659
Player Version#: N/A
It seems like in the latest version of PMS the path for Plex Media Scanner has changed which is now causing some external scripts i have to fail.
It seems like a large amount of files have moved from /usr/lib/plexmediaserver/ to /usr/lib/plexmediaserver/lib but the actual “Plex Media Scanner” file is still in its original location.
Calling
export LD_LIBRARY_PATH=/usr/lib/plexmediaserver
$LD_LIBRARY_PATH/Plex\ Media\ Scanner --scan --refresh --section 2 --directory "/mnt/unionfs/Media/TV/The Grand Tour (2016)"
fails with
/usr/lib/plexmediaserver/Plex Media Scanner: error while loading shared libraries: libva.so.2: cannot open shared object file: No such file or directory
And then running
$LD_LIBRARY_PATH/lib/libva.so.2 --scan --refresh --section 2 --directory "/mnt/unionfs/Media/TV/The Grand Tour (2016)"
I’m not sure about the permission errors that you are seeing. I typically run my Plex Scan script as the plex user and have never seen such an error. Check the permissions on the file and make sure that everyone has read access to it.
ls -lh /usr/lib/plexmediaserver/lib/libva.so.2
Permissions should look something like this:
-rw-r--r-- 1 root root 136K Feb 7 06:51 libva.so.2
If for some reason the output looks different from mine, I’d suggest changing ownership and permissions of all of your libraries.