Server Version#: 1.32.5.7210
Player Version#: multiple
I am seeing an issue where SRT files have gone missing but Plex totally fails the playback when it cant find the files, which I wouldn’t expect it to fail video playback for missing subtitle files
Plex Media Server Logs_2023-07-10_23-52-40.zip (4.8 MB)
7/10/23
4:50:25.132 PM
Jul 10, 2023 23:50:25.132 [139712562109240] ERROR - [Req#39c36/Transcode/3A2BAB79-7932-4625-970B-6FD7507524F5] Error configuring transcoder: TPU: Failed to download sub-stream to temporary file
7/10/23
4:50:25.130 PM
Jul 10, 2023 23:50:25.130 [139712608602936] ERROR - Couldn't find the file to stream: /mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt
@Treverr
If you look at the lines above where you highlighted,
You’ll find it can’t find (read) the file.
Jul 10, 2023 23:50:24.885 [139712608602936] DEBUG - [Req#39c33] Calculated media file path for path [file:///mnt/All%20Media/TV%20Shows/The%20Golden%20Girls/Season%204/S04E12%20Blind%20Date.en.srt]: ["/mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt"]
Jul 10, 2023 23:50:24.894 [139712384830264] DEBUG - Request: [192.168.1.23:50566 (Subnet)] GET /:/timeline?bufferedTime=0&col=0&context=preplay&duration=1435027&key=%2Flibrary%2Fmetadata%2F88944&location=lan&playQueueItemID=2235378&playbackTime=0&ratingKey=88944&state=buffering&time=0 (15 live) #39c37 TLS GZIP Signed-in Token (Treverr) (Apple TV)
Jul 10, 2023 23:50:24.895 [139712384830264] DEBUG - [Req#39c37] Client [1E530BAA-D9EA-4246-B3A9-74B23AA8FB59] reporting timeline state buffering, progress of 0/1435027ms for guid=, playbackTime=0ms ratingKey=88944 url=, key=/library/metadata/88944, containerKey=, metadataId=88944, source=
Jul 10, 2023 23:50:25.130 [139712608602936] ERROR - Couldn't find the file to stream: /mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt
Jul 10, 2023 23:50:25.130 [139712717089592] DEBUG - Completed: [127.0.0.1:39290] 404 GET /library/streams/3718643 (15 live) #39c33 GZIP 246ms 331 bytes
Jul 10, 2023 23:50:25.132 [139712671062840] DEBUG - [HttpClient/HCl#546] HTTP/1.1 (0.2s) 404 response from GET http://127.0.0.1:32400/library/streams/3718643?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jul 10, 2023 23:50:25.132 [139712562109240] ERROR - [Req#39c36/Transcode/3A2BAB79-7932-4625-970B-6FD7507524F5] Error configuring transcoder: TPU: Failed to download sub-stream to temporary file
Jul 10, 2023 23:50:25.132 [139712562109240] DEBUG - [Req#39c36/Transcode/3A2BAB79-7932-4625-970B-6FD7507524F5] Streaming Resource: Terminated session 0x7f1162c9c818:1E530BAA-D9EA-4246-B3A9-74B23AA8FB59 with reason Conversion failed. The transcoder failed to start up.
If it can’t read it, it can’t download it to Android.
Permissions problem?
Otherwise
Ah- well the file does not actually exist. Although at some point I assume it did but plex is holding on to it even though I did the optimization and cleaning of bundles to make sure nothing was sticking out.
My device defaults to subtitles on but subtitles shouldn’t fail the whole stream should it? This often interrupts my continuous playback. I even think all these files have VOBSUBs as well, so if a subtitle file is missing I would assume Plex would either move on without them and/or fallback to another option that fits my criteria (English), right?
Treverr:
I even think all these files have VOBSUBs as well, so if a subtitle file is missing I would assume Plex would either move on without them and/or fallback to another option that fits my criteria (English), right?
If all your files have subtitles, and the permissions are right, AND PMS is aware of them, it’ll use them.
Equally, If they don’t exist, PMS will motor on without them.
It’s only when the DB thinks there’s a file and the file doesn’t exist that we have issues. This is where required language settings come into play.
If there is no media which matches the required language – playback will fail.
This is a curation problem and not an execution problem.
Thanks! Any idea how I can clean this up? I tried to scan, analyze, and then optimize the database but it didnt fix it, at least not for all of them
FWIW all the VOBSUBs are embedded and not external to the file.
Treverr:
Any idea how I can clean this up? I tried to scan, analyze, and then optimize the database but it didnt fix it, at least not for all of them
Can you do the following for me please?
Make certain debug logging is enabled (SAVE if changed)
“Analyze” one of the files where the subtitles are not showing.
When it finishes, Start playback of that file.
Wait 15 seconds / until the subtitle should show (whichever is sooner)
Stop Playback
Download the logs ZIP
Attach it here.
Hey Chuck-
Here is a new repro- but I cant get it to play so I cant wait any amount of time. The missing SRT file fils the entire stream even though there is a VOBSUB that should also meet the requirements.
I was able to do step 1, 2, 3, 6, and 7. But it instantly fails so I cant do the 15s part.
Plex Media Server Logs_2023-07-16_16-01-30.zip (4.9 MB)
Here is a ls of the directory:
-rwxrwxrwx 1 911 saned 29856 Aug 31 2022 'S04E01 Yes, We Have No Havanas.en.srt'
-rw-rw-rw- 1 911 saned 281422443 Mar 7 2021 'S04E01 Yes, We Have No Havanas.mkv'
-rwxrwxrwx 1 911 saned 29946 Aug 31 2022 'S04E02 The Days and Nights of Sophia Petrillo.en.srt'
-rw-rw-rw- 1 911 saned 279749413 Mar 7 2021 'S04E02 The Days and Nights of Sophia Petrillo.mkv'
-rwxrwxrwx 1 911 saned 30819 Aug 31 2022 'S04E03 The One That Got Away.en.srt'
-rw-rw-rw- 1 911 saned 282136973 Mar 7 2021 'S04E03 The One That Got Away.mkv'
-rwxrwxrwx 1 911 saned 29581 Aug 31 2022 'S04E04 Yokel Hero.en.srt'
-rw-rw-rw- 1 911 saned 267644839 Mar 7 2021 'S04E04 Yokel Hero.mkv'
-rwxrwxrwx 1 911 saned 29413 Aug 31 2022 'S04E05 Bang the Drum, Stanley.en.srt'
-rw-rw-rw- 1 911 saned 279900325 Mar 7 2021 'S04E05 Bang the Drum, Stanley.mkv'
-rwxrwxrwx 1 911 saned 57069 Aug 31 2022 'S04E06 Sophia'\''s Wedding (1).en.srt'
-rw-rw-rw- 1 911 saned 278885959 Mar 7 2021 'S04E06 Sophia'\''s Wedding (1).mkv'
-rwxrwxrwx 1 911 saned 28295 Aug 31 2022 'S04E07 Sophia'\''s Wedding (2).en.srt'
-rw-rw-rw- 1 911 saned 275533971 Mar 7 2021 'S04E07 Sophia'\''s Wedding (2).mkv'
-rwxrwxrwx 1 911 saned 30257 Aug 31 2022 'S04E08 Brother, Can You Spare That Jacket.en.srt'
-rw-rw-rw- 1 911 saned 282031952 Mar 7 2021 'S04E08 Brother, Can You Spare That Jacket.mkv'
-rwxrwxrwx 1 911 saned 31160 Aug 31 2022 'S04E09 Scared Straight.en.srt'
-rw-rw-rw- 1 911 saned 280240719 Mar 7 2021 'S04E09 Scared Straight.mkv'
-rwxrwxrwx 1 911 saned 29618 Aug 31 2022 'S04E10 Stan Takes a Wife.en.srt'
-rw-rw-rw- 1 911 saned 269851082 Mar 7 2021 'S04E10 Stan Takes a Wife.mkv'
-rw-rw-rw- 1 911 saned 282856443 Mar 7 2021 'S04E11 The Auction.mkv'
-rw-rw-rw- 1 911 saned 273719464 Mar 7 2021 'S04E12 Blind Date.mkv'
-rw-rw-rw- 1 911 saned 283274562 Mar 7 2021 'S04E13 The Impotence of Being Ernest.mkv'
-rwxrwxrwx 1 911 saned 29968 Aug 31 2022 'S04E14 Love Me Tender.en.srt'
-rw-rw-rw- 1 911 saned 280739883 Mar 7 2021 'S04E14 Love Me Tender.mkv'
-rwxrwxrwx 1 911 saned 32576 Aug 31 2022 "S04E15 Valentine's Day.en.srt"
-rw-rw-rw- 1 911 saned 270214510 Mar 7 2021 "S04E15 Valentine's Day.mkv"
-rwxrwxrwx 1 911 saned 30343 Aug 31 2022 'S04E16 Two Rode Together.en.srt'
-rw-rw-rw- 1 911 saned 284247229 Mar 7 2021 'S04E16 Two Rode Together.mkv'
-rwxrwxrwx 1 911 saned 30164 Aug 31 2022 'S04E17 You Gotta Have Hope.en.srt'
-rw-rw-rw- 1 911 saned 270491608 Mar 7 2021 'S04E17 You Gotta Have Hope.mkv'
-rw-rw-rw- 1 911 saned 286157531 Mar 7 2021 'S04E18 Fiddler on the Ropes.mkv'
-rw-rw-rw- 1 911 saned 279492879 Mar 7 2021 'S04E19 Till Death Do We Volley.mkv'
-rw-rw-rw- 1 911 saned 281342307 Mar 7 2021 'S04E20 High Anxiety.mkv'
-rw-rw-rw- 1 911 saned 278320260 Mar 7 2021 'S04E21 Little Sister.mkv'
-rw-rw-rw- 1 911 saned 267806075 Mar 7 2021 "S04E22 Sophia's Choice.mkv"
-rw-rw-rw- 1 911 saned 270314791 Mar 7 2021 'S04E23 Rites of Spring.mkv'
-rw-rw-rw- 1 911 saned 273731014 Mar 7 2021 'S04E24 Foreign Exchange.mkv'
-rw-rw-rw- 1 911 saned 559117489 Mar 7 2021 "S04E25-26 We're Outta Here.mkv"
Jul 16, 2023 15:59:37.668 [140586212801336] DEBUG - Request: [127.0.0.1:60006 (Loopback)] GET /library/streams/3718643 (16 live) #533b70 GZIP Signed-in Token (Treverr) (Apple TV)
Jul 16, 2023 15:59:37.669 [140586212801336] DEBUG - [Req#533b70] Calculated media file path for path [file:///mnt/All%20Media/TV%20Shows/The%20Golden%20Girls/Season%204/S04E12%20Blind%20Date.en.srt]: ["/mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt"]
Jul 16, 2023 15:59:37.696 [140586212801336] ERROR - Couldn't find the file to stream: /mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt
Jul 16, 2023 15:59:37.696 [140586663230264] DEBUG - Completed: [127.0.0.1:60006] 404 GET /library/streams/3718643 (16 live) #533b70 GZIP 27ms 331 bytes
Jul 16, 2023 15:59:37.696 [140586620877624] DEBUG - [HttpClient/HCl#3f17] HTTP/1.1 (0.0s) 404 response from GET http://127.0.0.1:32400/library/streams/3718643?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jul 16, 2023 15:59:37.697 [140586094631736] ERROR - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Error configuring transcoder: TPU: Failed to download sub-stream to temporary file
Jul 16, 2023 15:59:37.698 [140586094631736] DEBUG - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Streaming Resource: Terminated session 0x7fdcdf314ac8:1E530BAA-D9EA-4246-B3A9-74B23AA8FB59 with reason Conversion failed. The transcoder failed to start up.
Jul 16, 2023 15:59:37.698 [140586106878776] DEBUG - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Killing job.
Jul 16, 2023 15:59:37.698 [140586106878776] DEBUG - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Job was already killed, not killing again.
Jul 16, 2023 15:59:37.698 [140586106878776] DEBUG - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Stopping transcode session 9C77D1BE-D881-4D4A-BBAD-07E49612AFF2
Jul 16, 2023 15:59:37.698 [140586129210168] DEBUG - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Cleaning directory for session 9C77D1BE-D881-4D4A-BBAD-07E49612AFF2 (/mnt/Temporary/Transcode/Transcode/Sessions/plex-transcode-9C77D1BE-D881-4D4A-BBAD-07E49612AFF2-432095f3-bdb5-48c3-ae5d-0bf70b7eb75f)
Looking for it for this file:
-rw-rw-rw- 1 911 saned 273719464 Mar 7 2021 ‘S04E12 Blind Date.mkv’
Need to Scan Files and Empty Trash. The database and the file system are out of sync.
This generic error message is logged when there’s no file to use in the transcoding process.
Jul 16, 2023 15:59:37.696 [140586620877624] DEBUG - [HttpClient/HCl#3f17] HTTP/1.1 (0.0s) 404 response from GET http://127.0.0.1:32400/library/streams/3718643?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jul 16, 2023 15:59:37.697 [140586094631736] ERROR - [Req#533b52/Transcode/9C77D1BE-D881-4D4A-BBAD-07E49612AFF2] Error configuring transcoder: TPU: Failed to download sub-stream to temporary file
Hmmmm I have done that a couple times without luck.
Just because you can see it doesn’t guarantee Plex can.
Run this as user plex (or whichever username Plex runs as)
[chuck@lizum bin.2001]$ cat can-read
#!/bin/sh
if [ "$1" = "" ]; then
echo usage: $0 path-to-check
exit 1
fi
Dir="$1"
while [ "$Dir" != "" ]
do
if [ -r "$Dir" ]; then
echo READ: \"$Dir\"
else
echo FAIL: \"$Dir\"
fi
NewDir="$(dirname "$Dir")"
if [ "$NewDir" = "$Dir" ]; then
Dir=""
else
Dir="$NewDir"
fi
done
[chuck@lizum bin.2002]$
It’s a recursive directory check . It’ll tell you where things break.
Looks like this:
[chuck@lizum bin.2002]$ can-read /glock/media/uhd/Zack\ Snyder\'s\ Justice\ League\ \(2021\)/Zack\ Snyder\'s\ Justice\ League\ \(2021\).mkv
READ: "/glock/media/uhd/Zack Snyder's Justice League (2021)/Zack Snyder's Justice League (2021).mkv"
READ: "/glock/media/uhd/Zack Snyder's Justice League (2021)"
READ: "/glock/media/uhd"
READ: "/glock/media"
READ: "/glock"
READ: "/"
[chuck@lizum bin.2003]$
If there is a break, it will “FAIL”.
Hmm everything seems ok from this
trever@server:~$ sudo -u plex /scripts/plex-can-read /mnt/All\ Media/TV\ Shows/The\ Golden\ Girls/Season\ 4/S04E12\ Blind\ Date.mkv
READ: "/mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.mkv"
READ: "/mnt/All Media/TV Shows/The Golden Girls/Season 4"
READ: "/mnt/All Media/TV Shows/The Golden Girls"
READ: "/mnt/All Media/TV Shows"
READ: "/mnt/All Media"
READ: "/mnt"
READ: "/"
Did you check the SRT file too ?
There is no SRT file for this.
-rw-rw-rw- 1 911 saned 282856443 Mar 7 2021 'S04E11 The Auction.mkv'
-rw-rw-rw- 1 911 saned 273719464 Mar 7 2021 'S04E12 Blind Date.mkv'
-rw-rw-rw- 1 911 saned 283274562 Mar 7 2021 'S04E13 The Impotence of Being Ernest.mkv'
Then where is this coming from?
Jul 16, 2023 15:59:37.669 [140586212801336] DEBUG - [Req#533b70] Calculated media file path for path [file:///mnt/All%20Media/TV%20Shows/The%20Golden%20Girls/Season%204/S04E12%20Blind%20Date.en.srt]: ["/mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt"]
“/mnt/All Media/TV Shows/The Golden Girls/Season 4/S04E12 Blind Date.en.srt”
This is what’s in your database and what PMS is looking for.
I feel that’s the root cause, Plex isn’t dropping this from its database and it should because it doesn’t exist anymore.
I’m fairly sure I deleted this SRT through the Plex interface even
Scan files, empty trash, and clean bundles is what deletes it.
If you delete it from a UI, you’re only marking it as invisible. It’s still in the DB.
It’s getting late here. Tomorrow, I will give you the SQLite query to go find where the SRT is in the DB.
Unfortunately none of those have worked, I’ve done them all several times in that specific order even. No dice
It’s getting late here. Tomorrow, I will give you the SQLite query to go find where the SRT is in the DB.
Sounds good! Thanks!
Hey @ChuckPa whenever you get a chance could you please share the SQL query? I still seem to have this issue for some files. Thanks in advance!