Debug Plex in a jail not transcoding

I had Plex working fine in a jail for years (last running 14.3 I believe), but I accidentally nuked that setup when I destroyed a separate jail and it's shared zfs snapshot without realizing the interdependency. I setup a new jail and got Plex working except the clients can only watch direct streams. When transcoding happens, I see the transcoder run, and I see the transcoded files produced, but the client never receives them and times out. I'm running 15.0 right now with iocage (what I've used for years) and I've been trying to debug this in the Plex forums, but I'm stuck and now I'm looking for suggestions on what tools I can use on freebsd to debug this. The man cause I find for this issue with plex is an inotify limit, but on freebsd the transcoder uses kqueue and I don't recall ever having to configure anything related to that previously. Any help would be appreciated, the family is getting annoyed with me at this point.
 
I haven't, I'll give that a shot when I get back to my computer. Though Plex works fine when doing direct play, so I don't think it's a networking issue, it's just when it needs to transcode the files. These jails are not VNET, they're traditional networking.
 
So I ran tcpdump and I can see the network activity successfully going back and forth between the server and the client (again, that's not surprising because plex works when not transcoding and the app loads everything fine). So it looks like it's sending pings back and forth while it's waiting for the transcoded content, it's just that the content never gets sent. So it seems like there's some breakdown between the main Plex process and the Transcode process. For linux, the issue is the inotify max size limits. On FreeBSD, kqueue is used instead, and I can see the EasyAudioEncoder process is in the kqread state when transcoding, but I don't really know how to debug if it's stuck or something

PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
79209 blank 13 116 0 150M 48M CPU3 3 0:10 85.04% Plex Transcoder
15452 blank 1 5 0 17M 5732K kqread 3 5:11 8.59% EasyAudioEncoder
15351 blank 26 59 0 1118M 743M uwait 6 17:13 0.33% Plex Media Server
15406 blank 12 59 15 154M 65M piperd 2 0:31 0.02% Plex Script Host
15411 blank 11 0 0 56M 28M uwait 2 0:41 0.02% Plex Tuner Service
 
Back
Top