Installing Plex in a Jail on TrueNAS 13.3-U1.1

I am trying to configure a plex media server using Truenas core. A tutorial I found had me run the following commands within the jail:

pkg
pkg install plexmediaserver-plexpass
sysrc “plexmediaserver_plexpass_enable=YES”
chown -R plex:plex /usr/local/share/plexmediaserver-plexpass
service plexmediaserver_plexpass start

I completed the steps and my jail appears configured correctly (I could map to plex folder structures), but when I start the plexmediaserver service, it says it is starting but doesn’t actually start. No errors come up. I am new to TrueNas and was hoping for any advice. Thank you!

Check top when you are inside the plex jail and confirm Plex is appearing running there.
You can also use htop from an SSH session to TrueNAS itself, but that will show other processes in other jails, too.

Edit:

I just tried your steps for myself.

pkg install plexmediaserver-plexpass
sysrc "plexmediaserver_plexpass_enable=YES"
chown -R plex:plex /usr/local/share/plexmediaserver-plexpass
service plexmediaserver_plexpass start

It worked fine. The chown command shouldn’t be needed. Did you use VNET in the jail setup?

Yes I did have VNET in the jail set up, as well as DHCP.

So was Plex showing up in the running process list?

It was not, after looking through some resources and some chat gpt code, it looks like my permissions aren’t set up properly. Trying to run it in the foreground gives an error that plex can’s access the path “/root/Library/Application Support/ Plex Media Server”

I’m unsure if this is an error with my jail or if it is with user configuration outside of the jail.

Start again in a new jail. Don’t bother with the mount points. Wait until you can actually get this running and signed into your Plex account, and then you can go back and change things.

pkg install plexmediaserver-plexpass
sysrc "plexmediaserver_plexpass_enable=YES"
service plexmediaserver_plexpass start

That’s all. I just did it again with a new jail and I was able to access the local web interface fine.

Edit:

Trying to run it in the foreground gives an error that plex can’s access the path “/root/Library/Application Support/ Plex Media Server”

Don’t try to remap where the Plex server databases and metadata are kept if you are brand new at this. Unless your jail pool is really tiny there isn’t a good reason to at this point in Core’s life.

Is there any update on this thread? I am having the exact same issue and I just cannot get it to work. Any help is appreciated. I am very new to Truenas Core

TrueNAS Core is end of life. The only people still using it should be people who have been for some time with specific reasons. If you are new to TrueNAS you need to install the Community Edition (Scale).

The thread hasn’t been updated because there is nothing to add. Installing in a 13.4 jail works fine. The OP is trying to alter the apps’ normal setup in an unnecessary way and it’s causing the application to fail to work from what I can tell.

thank you for the quick response!! I’ve been at this all day and just could not get it. Will update to scale now.

Thanks again for your help

If you are a music lover, then you want to install Plex on a TrueNAS Community Edition (SCALE). The sonic analysis does not work under Core because there is no library for the FreeBSD (but there is for Debian).

Also, if you install Plex, you might as well install Taututil for additional analytics for Plex.