Cannot transcode audio or video files outside local LAN

Server Version#: 1.41.3.9314
Server OS: Debian Bookworm
Player Version#: 8.45 iOS

Please help me :frowning: I’ve been using Plex for a long time and only recently had an issue with transcoding (same machine, same iPhone the entire time) when away from home. I changed the transcoding directory to /tmp/ramdisk (created to use RAM for the temp directory, with exec permissions of course) and moved the Plex data directory to my secondary drive (different folders from my media of course). I’m mentioning these details in case it is important. I have already tried adding “fs.inotify.max_user_watches=262144” in /etc/sysctl.conf to fix the issue, but it doesn’t help.

Feb 07, 2025 21:25:15.774 [139859813804856] DEBUG - [Req#2ac0/Transcode/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS=‘/mnt/TwoTB/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/e613bce-3d5ad59c62e771ae9cb5738e-linux-x86_64/’ X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx “/usr/lib/plexmediaserver/Plex Transcoder” -codec:0 mp3 -analyzeduration 20000000 -probesize 20000000 -i “/mnt/TwoTB/Music/Unleash the Archers/Unleash The Archers - Defy The Skies [EP] (2012)/02. Upon Ashes Wings.mp3” -filter_complex “[0:0] aresample=async=1:ochl=‘stereo’:rematrix_maxval=0.000000dB:osr=48000[0]” -map “[0]” -codec:0 libopus -b:0 121k -f segment -segment_format ogg -segment_time 1 -segment_header_filename header -segment_start_number 0 -segment_list “http://127.0.0.1:32400/video/:/transcode/session/867552FC-C5BE-4024-9DDE-7CB47DE4F744-384/89000034-88a2-4838-be9a-c9a0cbaa2a0c/manifest?X-Plex-Http-Pipeline=infinite” -segment_list_type csv -segment_list_unfinished 1 -segment_list_size 5 -segment_list_separate_stream_times 1 -map_metadata -1 -map_chapters -1 -fflags +bitexact “chunk-%05d” -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/867552FC-C5BE-4024-9DDE-7CB47DE4F744-384/89000034-88a2-4838-be9a-c9a0cbaa2a0c/progress
Feb 07, 2025 21:25:15.840 [139859792743224] DEBUG - Streaming Resource: Terminated session 0x7f33a735b188:867552FC-C5BE-4024-9DDE-7CB47DE4F744-384 with reason Conversion failed. The transcoder exited due to an error.
Feb 07, 2025 21:25:16.171 [139859807509304] DEBUG - Request: [166.196.64.65:38144 (WAN)] GET /:/timeline?bufferedTime=0&col=1&context=preplay%3Ahub.music.recent.added&duration=311849&key=%2Flibrary%2Fmetadata%2F5331&location=cellular&playQueueItemID=384&playbackTime=0&ratingKey=5331&row=2&state=error&time=0 (15 live) #2abd TLS GZIP Signed-in Token (aevyian) (iPhone)
Feb 07, 2025 21:25:16.171 [139859807509304] WARN - [Req#2abd] Could not convert “state” (“error”) to the correct type
Feb 07, 2025 21:25:16.173 [139859862485816] DEBUG - Completed: [166.196.64.65:38144] 400 GET /:/timeline?bufferedTime=0&col=1&context=preplay%3Ahub.music.recent.added&duration=311849&key=%2Flibrary%2Fmetadata%2F5331&location=cellular&playQueueItemID=384&playbackTime=0&ratingKey=5331&row=2&state=error&time=0 (15 live) #2abd TLS GZIP 1ms 384 bytes (pipelined: 8)
Feb 07, 2025 21:27:09.408 [139859860376376] DEBUG - NotificationStream: Removing because of error

Unfortunately cannot diagnose from that snippet.

Will need the DEBUG ZIP file showing from the moment (click to start playback) through to where the failure occurs.

(There are several intermediate important points )

Note: Rather than creating /tmp/ramdisk, you can use /dev/shm which is the same thing

1 Like

Thanks for the quick response, ChuckPa! I’ve removed my ramdisk and pointed the Transcoder over to /dev/shm (thanks for that tip!). I’m also attaching two zips of logs from the Plex web console. I think this is what you’ll need? Please let me know if there is something else I can supply.

Cheers,
Jim
Plex Media Server Logs_2025-02-08_22-04-03.zip (1.1 MB)
Plex Media Server Logs_2025-02-08_22-19-40.zip (1.0 MB)

You moved PMS to a drive which does not have exec mount privilege

Feb 08, 2025 22:02:05.467 [139842403424912] INFO - Running migrations. (EPG 0)
Feb 08, 2025 22:02:05.467 [139842403424912] DEBUG - Captured session 0.
Feb 08, 2025 22:02:05.467 [139842403424912] DEBUG - Captured session 1.
Feb 08, 2025 22:02:05.468 [139842403424912] WARN - [FFMPEG] - Error loading external lib: Error loading shared library /mnt/TwoTB/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/e613bce-3d5ad59c62e771ae9cb5738e-linux-x86_64/libac3_decoder.so: Operation not permitted
Feb 08, 2025 22:02:05.468 [139842403424912] WARN - [FFMPEG] - Error loading external lib: Error loading shared library /mnt/TwoTB/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/e613bce-3d5ad59c62e771ae9cb5738e-linux-x86_64/libaac_encoder.so: Operation not permitted
Feb 08, 2025 22:02:05.468 [139842403424912] WARN - [FFMPEG] - Error loading external lib: Error loading shared library /mnt/TwoTB/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/e613bce-3d5ad59c62e771ae9cb5738e-linux-x86_64/libmp3_decoder.so: Operation not permitted
Feb 08, 2025 22:02:05.468 [139842403424912] WARN - [FFMPEG] - Error loading external lib: Error loading shared library /mnt/TwoTB/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/e613bce-3d5ad59c62e771ae9cb5738e-linux-x86_64/libaac_decoder.so: Operation not permitted
Feb 08, 2025 22:02:05.469 [139842310597432] DEBUG - [GPU] Got device: Intel GeminiLake [UHD Graphics 605], intel@builtin, default true, best true, ID 8086:3184:1849:2212@0000:00:02.0, DevID [8086:3184:1849:2212], flags 0x34e7
Feb 08, 2025 22:02:05.469 [139842310597432] INFO - Preemptively preparing driver ivd for GPU Intel GeminiLake [UHD Graphics 605]
Feb 08, 2025 22:02:05.469 [139842310597432] DEBUG - [DriverDL/ivd] Skipping download; already exists
Feb 08, 2025 22:02:05.469 [139842310597432] INFO - Preemptively preparing driver icr for GPU Intel Gemi

Change the mount options to include exec as a mount option

1 Like

Thank you so much, ChuckPa! I thought the permissions in my file system were the only thing to take note of here; I’m glad you pointed this out :slight_smile:

To anyone following: I changed my /etc/fstab file to use the exec option on the drive I have Plex/media content and then refreshed it:

Before

jim@ShiroWiFi:/etc$ findmnt /dev/sda1
TARGET     SOURCE    FSTYPE OPTIONS
/mnt/TwoTB /dev/sda1 ext4   rw,nosuid,nodev,noexec,relatime

After

jim@ShiroWiFi:/etc$ sudo nano fstab
jim@ShiroWiFi:/etc$ sudo mount /mnt/TwoTB -o remount
jim@ShiroWiFi:/etc$ findmnt /dev/sda1
TARGET     SOURCE    FSTYPE OPTIONS
/mnt/TwoTB /dev/sda1 ext4   rw,nosuid,nodev,relatime

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