Testing PLEX on TrueNAS-SCALE-24.10.0.2

I have been struggling to get TrueNAS Scale installed on my development machine as detailed in this thread. Finally got it over the line, tested SMB shares (Windows only, MacOS test is to come) and have now been struggling with installing the PLEX app.

Google searches (and ChatGPT questions) return a few videos, 'How To’s, walk throughs but nothing really step by step. The main issue I had was the never ending configuration options. It is so long that it even has a floating menu …

  • Application name
  • Plex Configuration
  • User and Group Configuration
  • Network Configuration
  • Storage Configuration
  • Labels Configuration
  • Resources Configuration

Here is how I filled it in …

Application name
Umm … gave it a name. The funny thing is that it complains if you have a upper case letter in the name (or hyphen and probably other non alphanumeric characters). It does give you an error message but that error message is WRONG. It says ‘name must start and end with lower case alphanumeric’ - which, to me, implies that ‘plexScale’ is fine. It didn’t like it :frowning:

Plex Configuration
Timezone, claim token (a plex thing), image dropdown, local networks, devices, additional environmental variables). I filled in my time zone, killed off some local networks that were NOT my network and just left everything as it was.

I would like to have TrueNAS Scale PLEX on its own, dedicated IP address (instead of using the IP address of the server but that is a research topic for another day).

User and Group Configuration
568 for both. Just left it as is.

Network Configuration
WebUI Port (32400), Host network (CHECKED) and no DNS options.

Storage Configuration
Here is where it got interesting.

This youtube video was very useful. Yes, it was posted over 12 months ago and used a different version of TrueNAS Scale … but he stepped through the set up and discussed what each element meant.

There are 4 path configuations … one each for …

  • Data Storage
  • Configuration Storage
  • Logs Storage
  • Transcode Storage

My current TrueNAS Core plex set up has the configuration (metadata) and the media in separate datasets. I thought that ‘Data’ was for the mp4 files, Config was for the metadata, logs for logs and Transcode for Transcoding.

WRONG!

Protopia, in this thread says “‘Plex Data Storage’ is where Plex stores its metadata. Create a new dataset for this, on SSD if you can.

I also noticed during an earlier Plex app deployment test that a ‘Library’ folder was created under the data storage location. The video above also mentions a ‘Library’ folder (copying it from one location to another as a way of keeping your config).

I selected ‘Host Path’ for each of the above four locations and pointed them to their own folder. I didn’t enable ACL on any of these four locations.

You have the option to add additional storage locations. If you want to organize your plex media at all, then do add locations. I added two … MoviesDVD and TVShowsDVD.

Mount Path: /mnt/MoviesDVD
Host Path: /mnt/CrinkleBag/PlexInfo/MoviesDVD

CrinkleBag is the name of my pool.

Labels Configuration
Standard Stuff.

Resources Configuration
Standard Stuff … but I do spy the GPU config option (but that is for another day).

Plex installed, I clicked on the Web UI link and it took me to Plex, a nice fresh instance that contained nothing, just a Welcome and ‘Time to set up your library’.

Pretty standard stuff, create library (Moves DVD), browse to the location of your movies (Mount Path: /mnt/MoviesDVD) :slight_smile: and add the movies. Repeat for TVShowsDVD and then see if you can watch something.

BAH !! Nothing found :frowning:

I had a look at the four folders (Data Storage, Configuration Storage, Logs Storage & Transcode Storage) and they had some stuff in there. There are some log files I can look at if I really need to.

I then cracked open the Plex app and revisited the configuration file. Those two (MoviesDVD and TVShowsDVD) had ACL options that I left unchecked. Maybe not finding any movies is a permission thing?

So I checked the ACL option box for the movies (not the TV Shows), said the entry was a GROUP, gave it 568 as the group ID and gave that group full access.

Update … revisit web UI … and I have movies! But I have no TV Shows. Checking the ACL option solved that issue.

Next steps / items to research:

  • why did Protopia say ‘SSD if you can’ for data storage?
  • how do I get Plex its own IP address?
  • how do I copy across my TrueNAS core config files to TrueNAS Score
    I have 803 movies, a whole bunch of collections, a few playlists and stuff like that that I would really prefer not to set up (again)
  • Is there a scripting language that can add collections to movies in case I can’t port that info across?

Hi,
I’m in the same boat. did an upgrade from Core to Scale EE and been struggling for the last 3 days to set everything up.
Now it’s time to set up Plex and i’m stuck at the config options.


this is what it shows by default. My LAN how ever is 192.168.2.X
Should i delete all those networks and just add 192.168.2.0/24 ?
Cheers

Ok went ahead. Plex installed.
Had to give user 568 full permissions on the added storage folder and it works :slight_smile:
Thank you !

1 Like

Blockquote
this is what it shows by default. My LAN how ever is 192.168.2.X
Should i delete all those networks and just add 192.168.2.0/24 ?

Thanks for the reply.

I got exactly the same three options. Difference is, the bottom one (192.168.0.0/16) is how I have my network set up so I thought it had looked at my network and made that suggestion. I deleted the top two and just went with the bottom one.

Re your set up - YES, delete all of them and add your own set up. What can go wrong? Worse is you have to delete the app and try something else.

Edit: I just added the 568 (plex user / group ID assigned by TrueNAS Scale) to my TV Shows and now I can see that. Note that I had to use ‘force’ to deploy the ACL as I had a show in the folder already.

Just for testing, I then went back and deleted all of the ‘local network’ options so that now I have nothing in that option. Deploy / update and it still works. Maybe it doesn’t care about that info? Maybe it does and I can’t see it?

I’m finished with Plex, Nexcloud and HA. All working well. Now onto solving the NGINX Proxy Manager and Cloudfared tunnel. :sweat_smile:

@ruffhi and anyone else following along, we now have a Plex deployment tutorial updated for Electric Eel that may be helpful:

1 Like

DjP-iX (interesting user name - I bet there is a story behind that one)

Thanks for the post and the thread. I will give it a solid read through. I did skim it and it seems you say ACE a few times. Is that really ACE or is it ACL mis-typied?

I also see that you said data to use as the media data storage volume.

My take (see above) is that the data folder / dataset holds metadata (what movie has been watched, the poster selected, etc) and not a copy of the mp4 (or other) files that are the actual movies.

Or - are we saying exactly the same thing but just using different words?

Not really, just my initials. I needed a new github name within the first few days of working at iX and that’s what I came up with.

It really is. You can use the Enable ACL check box to add an Access Control Entry (ACE) to the Access Control List (ACL).

image

I didn’t personally review or verify this tutorial, but I suspect you’re right. The UI says “Plex Data Storage” so that’s probably what the description in the tutorial comes from, but something like “to use as the Plex data directory for database and metadata storage” would probably be clearer.

1 Like

I have been reading through the TrueNAS PLEX guide / instructions / documentation.

I can’t say that I am loving it.

It says ‘TrueNAS shows the default IP addresses detected for your system’. I don’t think this is true. The screenshots I have seen all show the same three ‘suggestions’. Someone commented that their network wasn’t one of them. I thought mine was … but it wasn’t. My base network is ‘192.168.100.0 /22’ and that was not listed.

I have tried plex with nothing as added, with the wrong address added and with the right address added … and I can’t see a difference in my experience. That said, I am using it on the home network so maybe it is an out of network thing?

I have a TV tuner on my network and the option to add devices in the container took my interest. The info provided is not very much …

… so I can see some googling / ChatGPTing in my future.

Here is my configuration. Please note that I have created a share called /mnt/pool/app-config to store my TrueNAS Apps configuration. Prior to the install, I created the following directories:

  • /mnt/pool/app-config/plex
  • /mnt/pool/app-config/plex/logs

Plex Configurations:

  • Local Networks: None
  • Devices: None
  • Additional Environment Variables: None

User and Group Configuration:

  • User ID: 568 (leave as-is)
  • Group ID: 568 (leave as-is)

Network Configuration:

  • WebUI Port: 32400
  • Host Network: CHECKED (this is to allow outside world access)

Storage Configuration:

NOTE: I do NOT have Enable ACL checked.

  • Plex Data Storage: This points to the root of your media library. For me, it’s /mnt/pool/plex. When you set up your library mapping, it will be the /data folder within Plex
  • Plex Configuration Storage: Type: Host Path, Host Path: /mnt/pool/app-config/plex
  • Plex Logs Storage: Type: Host Path, Host Path: /mnt/poo/app-config/plex/logs
  • Plex Transcode Storage: Type: ixVolume

Two reasons why I have the Configuration Storage available is so that I can run a backup job on the database on a weekly basis and for access by TautUtil. You can see Shell Script help: Making a plex backup - #14 by John for my adventures in creating the script which including stopping the Plex Docker image, backing up, and starting the docker image.

One additional utility to install is TautUtil which provides analytics for your Plex install. Most of the access is handled by APIs.

And this is working for you? You can see and play your movies, tv shows, etc? I have my media added as ‘additional storage’ but I can try loading it all into the ‘data storage’ area (it needs ACL on).

Thanks - I love scripts. I have a bunch of them from the FreeNAS days that check for updates, update my plex jail, etc, etc.

Yes. The folder within the Plex docker container will be named /data, so when you set up your media folders, it will look like this:

In this case, the /data/Movies/General within the Docker container is the equivelent of /mnt/pool/plex/Movies/General within my TrueNAS system. Think of it as symbolic linking.

Think of it this way. The Docker/Kubernetes container is a self-contained space for the app to run, sort of like a jail (to borrow a term from TrueNAS Core). We want to strictly control what data is accessed from that container (in our case, the media libraries), so we intentionally set points where the data can be accessed. In our case, Docker thinks the media is stored at /data, but we know it’s really /mnt/pool/data.

1 Like

Mark - thanks for the feedback. Hmmm … something (using the data storage for metadata and media storage) to think about.

Scale is installed on a test machine and I can (and do) burn it all down and start again. I will try the Data storage setup and report back.

Glad to be of assistance. The first Docker container (or, for that matter, Kubernetes or FreeBSG Jail) you set up is a bit of a learning curve. I originally set up my Plex instance under FreeNAS in 2016 (now called TrueNAS CORE) and had to reset everything up and migrate data earlier this year when I migrated from TrueNAS CORE to TrueNAS SCALE.

Another test … plexscaletest45 :smiley:

Two datasets:

  • PlexMedia
  • PlexMeta

The media one holds the movies, tvshows, etc. The meta one has 3 folders in it (logs, config, transcode).

I created two SMB shares (same names) and gave myself (user) and PlexGroup (group) access. I and Apps are members of PlexGroup.

I pointed the inbuilt data items (data, config, logs, transcode) to the appropriate folder / data set. None of them have any ACL access. Everything else was ‘as suggested’.

Here are the plex volume mounts …

plex volume mounts

Plex1

Here is my plex side set up

SPOILER: screen to add library

Note the config, data, transcode folders. I wonder if those are my folders? I will rename one and see :slight_smile: Edit: I just should have looked at the case … my transcode folder is ‘Transcode’ but the plex trancode folder is called ‘trancode’ (lowercase T).

SPOILER: data folder

Clicking on the data folder shows my three plex media folders that are stored on the PlexMedia dataset (movies DVD, movies DVR and TV Shows DVD).

SPOILER: one plex library, two data locations

This was a test as I read someone was trying to add two data locations to the one plex library. It seems like it might work. I didn’t do this, deleted one of them.

SPOILER: final position before adding libraries

It seemed to work. Except I can’t see any of my actual contents.