Plex service stops inside jail

Server Version#: 1.22.3.4523
Player Version#: Latest Android, Android TV and Windows

I can see somone else has had this issue, and i’m not also struggling with it.
Plex is set up inside a bsd jail and works really well. When it works. Randomly the service inside the jail just stops. When I manually start it again, it works again without issue. The logs don’t show any particular error either.

You have to provide a but more details in order to figure what’s happening. . .

Is it stopping or crashing?

Do you see any crash or kill do to OOM perhaps?

Looks at dmesg and if possible upload PMS logs, although dmesg will probably have an hint as to how it’s dying.

The other post like this is very generic they might not be related at all. It also seems to have gone unnoticed likely because it was very generic.

I happen to noticed this one so perhaps if you provide a bit more info we will be able to help

Plex Media Server Logs_2021-05-16_02-38-40.zip (1.4 MB)

image

I think i’ve found something…

I’m going to track down this swap issue and will report back soon. Thanks for reminding me of dmesg!

So it is OOM, the process is killed cause you are running out of memory.

If your using freenas/truenas you probably have ZFS, you might need to limit the “arc” memory size,not sure if they change it,but by default it will be set to almost all your RAM,which doesn’t leave much for user processes.

Ofc limiting that affects ZFS performance, depends on how much RAM you actually have.

1 Like

You should probably reboot after this happens, since smbd and collectd were also killed.

The Plex Media Scanner Deep Analysis.logs make me wonder if Plex is trying to analyze “broken” music files. (Maybe it doesn’t like One Direction, haha.)

My first step would be to track down which process is using up all of the memory. Plex doesn’t normally need a ton of RAM. But if something is using ALL of the system RAM, everything will be impacted.

I have fine luck on one 8GB TrueNAS box, running multiple other jails. There’s just a few GB for services, and everybody gets along.

image

I’m already using this box as a NAS and PLEX service only. It has 16Gigs.
I did remove the virtual machines from this box because I saw they were eating some RAM. I’ll report back after some stability testing

So, i’ve made a thread on the Truenas forums.
Follow it here:

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