Server Version#: 1.21.1.3830
Player Version#: Multiple
Starting around plex 1.21.0 I’ve started getting transcoder errors like: Conversion failed. The transcoder exited due to an error.
Corresponding log entries look like this:
Jan 09, 2021 13:11:07.434 [0x80b447e00] DEBUG - Completed: [127.0.0.1:36022] 200 GET /status/sessions (7 live) GZIP 0ms 4397 bytes (pipelined: 5)
Jan 09, 2021 13:11:07.435 [0x80b447e00] DEBUG - Completed: [127.0.0.1:42953] 200 GET /status/sessions (7 live) GZIP 0ms 4397 bytes (pipelined: 1)
Jan 09, 2021 13:11:09.880 [0x81604fa00] DEBUG - [CompanionProxy] player agsrorcm7n5guloupxta6jly was last refreshed 30 seconds ago
Jan 09, 2021 13:11:12.657 [0x8110de000] ERROR - [Transcoder] [tcp @ 0x803904f00] Connection to tcp://127.0.0.1:32400 failed: Operation timed out
Jan 09, 2021 13:11:12.658 [0x8110de000] ERROR - [Transcoder] [stream_segment,ssegment @ 0x803897e00] Failed to open segment list 'http://127.0.0.1:32400/video/:/transcode/session/nw5g7lrhv9bexddvnvsp6ujk/2bcaff91-055a-43b6-a766-d7b2535baf0a/seglist?X-Plex-Http-Pipeline=infinite'
Jan 09, 2021 13:11:12.659 [0x8110de000] ERROR - [Transcoder] av_interleaved_write_frame(): Operation timed out
Jan 09, 2021 13:11:12.760 [0x816050400] ERROR - [Transcoder] Error writing trailer of media-%05d.ts: Invalid argument
Jan 09, 2021 13:11:12.768 [0x80a53f200] DEBUG - Jobs: '/usr/local/share/plexmediaserver/Plex Transcoder' exit code for process 3008 is 1 (failure)
Jan 09, 2021 13:11:12.768 [0x81604ff00] DEBUG - Killing job.
Jan 09, 2021 13:11:12.768 [0x81604ff00] DEBUG - Signalling job ID 3008 with 9
Some observations:
- This happens almost on every media source (those are typically 1080p)
- I use 2 clients: PS4 and a Web based one on the same host the server is running (that is,
http://localhost:32400). This happens waaaay more often on PS4 than on localhost, but it happens on localhost sometimes too. - Dropping quality to something like 2-3 Mpbs 720p makes things much better, but doesn’t completely fix that.
PS4 is connected to home network via Wi-Fi, I think there are no issues here because I’d notice that in other app and clients, though I checked the router and don’t see any anomalies there.
I’ve also tried to point Transcoding temp directory to a partition on other HDD and it didn’t change anything. It’s probably not related though, because I guess from the logs it times out on some HTTP API operations?
Also, I wouldn’t say the system is very busy when this happens. E.g. the usual load during playback is:
last pid: 3369; load averages: 1,30, 1,17, 0,99 up 0+07:30:16 13:52:33
87 processes: 1 running, 86 sleeping
CPU: 9,4% user, 0,2% nice, 1,5% system, 0,5% interrupt, 88,4% idle
Mem: 1501M Active, 13G Inact, 567M Laundry, 6971M Wired, 1572M Buf, 9671M Free
ARC: 4016M Total, 2171M MFU, 1827M MRU, 64K Anon, 15M Header, 2926K Other
3861M Compressed, 3882M Uncompressed, 1,01:1 Ratio
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
1579 novel 55 52 0 4222M 1669M select 0 17:37 120,36% firefox
1535 novel 82 24 0 4123M 1422M select 5 67:33 34,28% firefox
3361 plex 7 24 0 181M 114M nanslp 1 0:04 11,08% Plex Transcoder
Any thoughts how to debug this?
PS Other similar threads mention it could be because of library scanning. I have neither automatic nor periodic library scanning enabled. Don’t have that many tcp connections either:
$ netstat -4 -n|wc -l
774
$ netstat -4 -n|grep TIME_W|wc -l
18
$
