Scanner Error after Relocating Plex Media Server Data Directory

Server Version 1.30.2.6563

I recently relocated my Plex Media Server Data Directory with a symbolic link (https://support.plex.tv/articles/202529153-why-is-my-plex-media-server-directory-so-large/) (Running PMS on Linux, raspberry pi)

Doing this is causing a scanner error:

an 29, 2023 09:16:03.554 [0x7f8a6c9038] INFO - /usr/lib/plexmediaserver/Plex Media Scanner --analyze --manual --server-action index --item 80069 --log-file-suffix  Analysis
Jan 29, 2023 09:16:03.554 [0x7f8e6c8038] WARN - [FFMPEG] - Error loading external lib: Error loading shared library /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/acf6c67-4446-linux-aarch64/libmpeg2video_decoder.so: Operation not permitted

Here’s what my directory structure looks like:

pi@pi4:~ $cd /var/lib/plexmediaserver/Library/Application\ Support/
pi@pi4:/var/lib/plexmediaserver/Library/Application Support $ ls -l
'Plex Media Server' -> '/media/plex/Plex Media Server/'/

Tried with the instructions here :Moving PMS 'Library'
and same error:

Jan 29, 2023 12:18:33.651 [0x7fb36ee038] INFO - /usr/lib/plexmediaserver/Plex Media Scanner --analyze --manual --server-action index --item 80084 --log-file-suffix  Analysis
Jan 29, 2023 12:18:33.652 [0x7fb76ed038] WARN - [FFMPEG] - Error loading external lib: Error loading shared library /mnt/plex/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/acf6c67-4446-linux-aarch64/libmpeg2video_decoder.so: Operation not permitted

I Found the problem :smile:
External Drive was mounted with fstab as user which automatically implies noexec and since the Plex Scanner loads a shared library, exec is needed as an fstab option:

... /media/plex ext4 defaults,user,exec,nofail 0 2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.