TrueNAS Scale: Plex and Jellyfin Setup with SMB
Vložit
- čas přidán 11. 09. 2024
- Updated guide for TrueNAS 23 or newer can be found here.
• TrueNAS Scale 24: Plex...
After hours of searching and finding countless threads and posts about how Plex won't see media after enabling SMB. I took it upon myself to get it working and made this video to show you how if you're having a similar issue.
The same solution also applied to Jellyfin or other services.
Right after I made this video, Jellyfin updated and no longer works with this. You MUST install Jellyfin to the default ix-applications directory or you will get transcoding issues and it will make you set the entire thing up from scratch.
Join the Community Discord!
/ discord
Become a Channel Member!
/ @frozennorthproductions
Join EpidemicSound with 30 days free!
www.epidemicso...
You're a lifesaver. After banging my head against a wall for most of the day trying to get Jellyfin to see my files correctly, I restarted installation using this video and everything works perfectly. Thank you!! EDIT: Like some others have commented, the latest Jellyfin update seems to create a "server not available" error when you try to log in again. The solution is to reinstall Jellyfin, but leave Config, Cache and Transcode paths as ixVolume defaults (part at 9:31). Additional Storage paths should be as per the video. You don't have to change any other TrueNAS settings outlined in the video, and don't forget to clear your browser/phone app cache to log in to Jellyfin after you reinstall.
thank you for this, i was stuck for a while until i read your comment. everything is working now.
This is by far the only video or walkthrough that has actually worked for me setting this up on my old gaming pc/new home server! Thank you for this as others have not really explained things and all ended up not working, but this worked right away and with absolutely ZERO hassle!! Kudos to you sir!
I came here to say this! great video!
I 3rd that, Thanks again
I tried like 3 or 4 guides before finding this video. Your guide was 100% the easiest to follow AND what you show actually works. Thanks!
okay this did work and helped me figure things out. BUT:
the folders you created are "POSIX" but I want to use "NFSv4" the media would not show up with NFSv4. after fiddling for a very long time (at least 20 hours total) I understand.
I made a user "plex" with a certain UID and group and set permission of data set to allow it, and also set apps user and group, BUT it would still not show video files in plex app.
What I did:
start plex app
go to TrueNAS console and type "ps aux"
in the list find plex words
on the very left will be its User
for me plex was user "1000"
I made a new user called plex with UID 1000
gave it permission to dataset and it now works.
owner can stay as root
I hope this helps future strugglers.
This is the true guide to making plex work on truenas. thank you.
Holy crap. Straightfoward, accurate info. I've been struggling to get Plex running on my NAS for HOURS. I watched at least four other videos and read countless forum threads. This is the only info that actually helped. Thank you! Now, I just have to repeat those same steps with all the Servarr apps I need. :)
EDIT: I just discovered that Jellyfin, unlike Plex, requires its files in the ix-application folder. If you try to direct all the application files to a "jellyfin" folder, it will hang at the "Deploying" phase and refuse to start up.
FOR ANYONE DOING JELLYFIN
This video was ALMOST everything I needed, but I was stuck on a really annoying problem I finally figured out thanks to trial and error.
I fixed it with the following: As you are setting your host paths for Jellyfin, make sure to click "Enable ACL", and for each one select the path, and add a USER rule, and paste the user id you can find at the top of the page giving it full read write access. I spent literally 10 hours on this as a NAS illiterate so I hope this helps someone else.
Hi. By any chance, do you know how to be acces by outside network (from the web/internet)??? I manage to acces Jellyfin only in the same network.
@@ionicapacoste8029 there is a setting in jellyfin to enable remote connections, and after that you need to port forward on your router
@@ionicapacoste8029 Set up a VPN (OpenVPN or Wireguard) into your network, then watch
Thank you VERY much for this. Enormously helpful for someone new to TrueNAS Scale!
This is by far the most straight forward, concise, and informative videos on the subject. THANK YOU!!!!
my media server would not have been running if not for this video. same tutorial works in TrueNAS 23.10 if you give "full control" instead of "read, write, execute". thank you SO much.
HUGE THANK YOU. Other youtubes make this look so simple, but they use dumbed down-prone to breaking ACL/permissions. This is the one that finally worked for me, and seems like it will continue to in the future. Thanks for this video, which quickly shows what to do, instead of those click-baity BS videos. Really appreciate it @Frozen North Galaxy
Great vid worked perfectly. Looking forward to that Nextcloud video.
This is an amazing video and the only way that I could get Plex running on TrueNas Scale despite watching other "tutorials"/etc--keep up the great work!
Dude, thank you. ive been trying to get plex to work on truenas for the longest time.
You sir are a gentleman and a scholar. I can finally go to sleep now, thank you!!!
Hey, thanks for this. I knew I had some permissions issues and this straightened it all out.
Literally the best video out there on this! Thank you so much!!!
THANK YOU. Helped me out thanks. Been without my Plex for over a year since I rebuilt my NAS and this fixed it all for me.
My good sir, you are a life saver. Saved me countless more hours and days wasted trying to find a solution to Truenas Plex setup. Can't thank you enough.
This is so useful for me, successfully installed and setup the Plex on my NAS. Thanks!
You are the real one! I have 5 days of uptime now, and everything is still working great. This was an awesome video.
Great vid, bringing a great insight of the system and install the apps easily and with understanding.
Thank Christ. I thought I was going insane with the permissions.
Thanks for the clear instructions!!!
Thank you so much for this! I spent all day yesterday on the forums too trying to figure it out and trying different tips until I found yours this morning.
My fresh install on a new TrueNAS server worked flawlessly with your guide. Thanks and I subscribed!
wow this tutorial looks really good. i will try it this evening as well :) and i hope it will be done like yours as well :D i have like 200 movies, that were streamed over smb and that was for 4K movies really bad - because they stuttered and all that nice stuff. Thanks in advance
Mate where are your subscribers? are we waiting on a storm or something? You're severely helpful and underrated, Cheers.
crazy how this has a significant amount of dislikes but its the only guide that hasnt given me any errors on setup. and im even running truenas as a proxmox vm and everything including the shares is working flawlessly
THANK YOU FOR SHARING THIS!!! I could not figure this out. I didn't realize the easiest way was to create a separate dataset for Plex media. I did that and copied all my Movies and TV in there. Voila! Truenas app working great! But now of course everyone says to let the NAS be a NAS, and have a VM or CT do the compute for Plex. Luckily going this route set the correct permissions, and I was able to setup an NFS share and mount it within my ubuntu vm. Now my Plex can see my NFS share and added the media in from that way!
Finally!!!!! Got PLEX to work with the help of this video. Thank you.
I was just remembering I saw this some time back, I'm glad I remembered! Set up and got my jellyfin server going with this guide. Thanks, easy sub and like!
thank you, spent half a day trying to fix this and you did it in 15 min thank you much...!
Stopped at 6:00 because that's all I needed, thanks! Finally I can access it from other folders even disks but the Plex install folder..
Thanks for this, after days of trying other guides, this worked first time.
Hi Pal, please receive a big hug from myself!
This tutorial is right to the point 10/10.
Thank you!
I have just sub!
Really nice job and you touched on allot of good points as well demonstrated the settings really well! Thanks for the video!
Thank you soooo much. Massively helpful and super easy to follow. I hope you continue with more media type videos on TrueNAS scale.
Like many others have said - the simplest and best video on CZcams that provides a working solution - Sub'd😀
Thanks so much for posting this
You are amazing. I would never get through this on my own.!
Great, please continue with more videos with Truenas!
Thank you so much! I do wish to setup up both Plex and Jellyfin pointing to the same Media. Can’t wait for the TrueNAS to arrive, the hard drives are waiting in their silver sleeves and are lonely
Great video, liked and subscribed. Do you know if there is any alternative to Plex for music? I have 150GB of music, with thousands of duplicate files, identical songs but with different names, sizes, and bitrates. Some of them lack metadata while others have it. I even have concert videos. Do you have any guides on how to organize all of this and a Plex-like server specifically for these songs? And would it be advisable to include the concert videos in Plex as well?
I like you style! Great job showing the ropes.
Bro you killed this video! A God send really!
Waiting for NAS parts to come in, but this is very helpful! Now I just need to figure out rclone, so I can see my cloud shares and NAS shares in one view!
THANK YOU SO MUCH!! Your explanations and walkthroughs made so much sense. This finally helped me get jellyfin working smoothly! I was wondering if you could do a Immich truecharts install and setup video sometime? I feel like I'm missing some steps on where to direct certain paths to which datasets, and for some reason I find it difficult per app I'm trying to install on Truenas XD
So I know I'm late but why when I go to the plex web portal, it shows a login page instead of the server setup page ? I literally have no ideas how to fix it. I can't create the server.
Thank you !!! for this video got jellyfin working after several attempts.
I finally got it to work. Thanks man!
thank you very instructive video 🐢👍
Thank you. This helped me finally get it working.
Thank you. Good man in a bad world.
Thanks very much for this guide. The checkbox under Apps/Settings/Advanced Settings did something really weird for me and two other apps that were running. Required a restart. Something about the kubernetes service. Doesn't make full sense to me, but just a warning to others that if you have existing apps, unchecking that box might result in weird stuff. A reboot of the TrueNAS server seems to have solved it, but briefly a little stress-inducing. :)
Correct. This is one of those things you don't want to do on a live server until it's fully set up before deploying it. When you start altering permissions, you will need to either shut down and restart apps and services or just reboot the entire server to make it easier. Once everything comes back online, the new permissions and service changes will take place normally, and from that point forward, you'll be good to go.
Thank you for taking the time to explain everything excellent video very helpful.
This was a brilliant tutorial works a treat thank you so much youy are a life saver.
this has been a huge help thank you!!
I have problem and i dont know how to fix it "Cannot safely connect to "x". in plex.
Thanks so much the video help me to install jellyfin on TrueNAS scale 24.04 successful.
Hi again ")
Much of what you show has been updated and the biggest pain is when you set plex or jelly fins media, films tv etc. It just does not show up under the mymedia folder in jellyfin! very stressful as now i cant figure what on earth o do after 3 days of trying. If nothing else and you have the time, would you mind checking out the updated version and then replying to the comments please.
Many thanks
Chris
Thanks, this video was really helpful!
At first thanks, it worked...kind of. I'm facing strange behaviour with your setup. If I setup the system it seems to work perfetctly fine. My Server A is sending the Video to my browser (B), or my FireTVStick (F) just as wanted...But!!!!!!!!! If i Shut down B or F and want to have acces to Jellyfin again it does not work. The login page of jellyfin (which shows me that Jellyfin is online) tells me there is no connection to the server??? huh? okay. Try again..no connection. The only way to get to jellyfin is to restart the Server A. If I do so I have to register again. The registered user is gone and I have to show Jellyfin where to finde the media again. And this happens again and again and again. Somehow Jellyfin does not store the created user and blocks every new attempt of connecting to it. Any Ideas?
This is likely an issue with the JellyFin update itself. This is why the JellyFin config is setup in a different DataSet so when updates happen, it's supposed to pull the old config from the DataSet. NextCloud does this as well and so far there is no fix yet
Okay, thanks for your reply. So we need to wait for the next update I think. Sadly....
@@frozennorthproductions I was able to solve that problem. I don't know if this is new, but with your way there is a problem with the rights of storing the config files. There is an Error which tells me that there is a problem with writing in a folder which has only read acces. To solve the problem I had to skip the step of choosing my own host path for config, cache and transcodes and leave it with standard setting ixVolume. A Dataset called "ix-applications" is automatically created and stores this values. After I did so the server works like a charme!
Gaw dam a 8k 4320p60 video?!?! Anyways, thank you for your straightforward tutorial!! :D
Wait, this is in 60fps? lol
My new camera is 8K so I stepped up the videos and now my default project is an 8K timeline so even videos without my camera end up being rendered in 8K through Davinci Resolve's upscaling. I didn't know it was 60fps though lol
The Plex is working flawlessly , however the Jellyfin was always disconnected after few minutes. I need to reconnect to the server everytime I open it. Any any idea why?
[12:46:43] [INF] [24] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token. I see a lot of this in logs. I tried to rebuild the reinstall but still have an issue. I hope you can help. Thank you!
Try reinstalling Jellyfin in the default ixapplication directory. A lot of people are having issues after the latest update while using Jellyfin in its own DataSet. You can still use the media directory for all the movies and stuff. But the app needs to be in the default directory now for some reason.
I don't have the Enable Host Path Safety Checks box! maybe was removed on the newest version?
Thank you so much for your help.I just build my plex media sever step by step.
I have followed this step by step 3 times and when I try to view my media "movies" on plex it says that it is currently unavailable.
Thanks.This works perfectly
thumb's up for the intro tune
When I click on web portal it dosen't take me to server setup but instead to a warning and sign in page
You are a life saver my friend. Only problem that comes up is when the plex service is stopped and restarted is gives an error message because the mount for the smb share is in the same folder. After deleting the share, sstarting plex and then create the smb share and it works again. Strange behavior but in the end it works. Thanks
Did you disable the Host Path safety check? It shouldn't see the SMB at all since only media is being mounted and has nothing to do with Plex at all. This was the original issue I was having with SMB and Plex and this was the work around to having them work together.
@@frozennorthproductions yes I disabled it but still the same behaviour for me.
@@Whitbr3ad Hey man, just wondering if you managed to resolve this, I'm having the same issues where its stuck deploying because SMB Share is connected/turned on when the app is stopped. any insight is useful..
Thank you so much for this! I took me out of several rabit holes I was in just trying to get Plex to work with my new simple Truenas home network. I do have one question, however. My movies are fine but Plex just does see my music (in Flac format) which I verified are in the music folder in Plex. What could I have done wrong?
Thanks again!
Thanks a lot! Very helpful.
I had Plex working on my truenas scale server. worked great. Had a MB failure - now I am on Dragonfish-24.04.1.1 and loaded plex Version:
1.40.3.8555 . I can't get it to see my media folder. LAst attempt - it just stays on deploy ? Any pointers Thanks
Great explanation of how to do this. Easy to follow. Any idea how to copy my data over from a TrueNAS Core jail so I can pick up all the hours of input I have creating libraries and entering info? Thanks.
Hmm not sure what I'm doing wrong. Anytime I restart Jellyfin. The data is wiped in the dataset for where I selected the hostpath for Jellyfin app.
Another person in the comments had a similar issue and it just ended up being an issue with a JellyFin update where the app needs to be in the default ixapplications directly now. You can't store the config files in a different DataSet anymore for some reason. Not really sure why, probably just solves issues permission issues for people who are just starting out to make it easier.
@@frozennorthproductionsYea figured that out later on. Kind of dislike how that works. But whatever. All is working though.
great video, thanks
you should try to put transcode path to ram,
in unraid you can do this by putting "/tmp" on the path variable.
This will tell plex to transcode stuff to ram, which is way faster than regular storage, and gets purged frequently,
Legend! Ok this works on one pool but what if you have another media folder with Tv Shows etc in another pool but adding it to plex volume shares does not show up in Plex. It works on one pool but then trying on another nothing shows in Plex! So trying to add an identical pool on another drive is fine but adding a second media folder of Tv Shows etc does not show up in Plex at all no matter how you name or rename datasets or folders. Am I missing something?
I'm not 100% positive on this but I'm pretty sure plex can only see what's on the pool it has permission to view. So if plex isn't installed on the other pool, the dataset will never have permissions from plex to be viewed because plex isn't on that pool. You would have to setup two plex servers on each pool and have one for movies and the other for TV shows like this.
The best option is to keep it all in one. So a single pool is for plex and plex media only, and you can use a different pool for whatever else you wanna do.
I just keep it simple and have everything in one pool so it's easier to manage. Once you get into multiple pools, it turns into a whole different animal of trying to problem solve
Thanks for the tutorial, very helpful. One question though, where is the app user coming from?
Different Apps use different default users. Plex and Jellyfix use "apps" where as Nextcloud uses "www". These are just default users that are already installed as part of TrueNAS so different Apps apply to different default user groups depending on what kind of app they are and what kind of datasets they generally need to access
Any chance you can do video on how to install Plex 2.0.6 on truenas scale? some of the configuration is different
It's actually funny you mentioned this because I just recorded a video the other night on how to do all of this on Scale 24 because of the changes they made.
I won't have it edited for a bit cause I'm still working out some other stuff but the basics of it is that you follow all of the same steps here, but ignore the host path safety check, and when adding the additional storage location on the Plex pod, you just pick SMB from the drop down list instead of Host Path. Name is like /SMB and you enter your server name "truenas.local" if you left everything as the default, and the share is whatever you named the SMB "Plex" for my example in this video.
Within the Plex app, you set it up exactly as you normally do in this video but instead of finding that /Media directory, you look for a /SMB directory.
You also don't need to change any of the data set permissions, only adding your user account to have full access so you can copy media to the SMB so it will show up in Plex.
The same applies for Jellyfin. They're both setup identically and it's actually way easier to setup in this new version of TrueNAS.
The alternative was you could just install TrueNAS 22, set it up the way it's done in this video, and once it's working, update to TrueNAS 24 and it remains working.
@@frozennorthproductions are these changes true for Scale 24 AND Plex 2.0.6? If you're planning to release your video tutorial in a few days, I'll wait. But thank you for the explanation!
Thank you very much for this
How to cinfigure media folder if it is on another pool? Apps are on SSD and Media is on HDDs
Running the apps on an SSD doesn't really do anything for speed and you would actually see a MUCH better improvement using the SSD as a read cache for the HDD pool. Then you can have everything in one pool with like-ssd speeds.
This is how mine is setup, 256GB SATA SSD for boot drive (smallest one I had on hand but a 32GB or 64GB is more than enough). Two 16TB HDD mirroring each other, and a 1TB NVMe as a read cache for the 16TB pool. I have been able to edit 4k video directly off of this without any noticeable difference compared to having the footage stored directly on my PC. Streaming video for Plex and Jellyfin would be even more efficient in this sense.
you are the best this is the best thank you so much
Is there a more updated video? Or instructions? Some of the options in this video are not available in the current version of TrueNAS scale.
This was made on Scale 22, and still works in Scale 23, but, as set up in 22. I haven't figure out where they put the host path safety check box in 23 but as of right now you can just set it up on 22, disable the host path safety check and then update to 23 and it still works fine.
@@frozennorthproductions thanks
This is exactly what i was looking for! Would this same method work if i need to use the qBitorrent app to put my legally aquired movies in the the same media folder?
Yes, the exact same method. Just make sure your client that borrows movies from your best friend internet is set to the same permissions so it has write access to store them so Plex can auto refresh and see the dataset changes.
I just wanted to comment on this since I tried this and it didn't work. It would work for a couple of minutes then there would be an error, related to transcoding I believe, and Jellyfin wouldn't be able to find the server anymore, prompting me to delete and re-create everything.
In the end, I simply deleted everything related to applications/jellyfin and used ixVolume for the config, cache and transcode storage. For the additional storage, I did use Host path with my /media folder with the correct permissions. From there everything went smooth.
Having some issues accessing the pool on my laptop. It’s pretty much read only.
I have a second pool for photos that I have had for years and I can do anything I want in that pool. Maybe I will just add my username to the plex pool so I can add movies into that file share. Messed up somewhere but I should be able to figure it out.
Also, when you launch the application I have been getting an error. The work around is to add /web at the end of the IP and port address. Example 10.10.1.10:32400/web
This works!
This worked for me but I have noticed that ever since, I updatated to Truenas 23 my library buffers alot idk if I need to change any other settings. Does anyone else have this problem?
I'm getting this error after following these steps, when I try to play media on plex it says "An error occurred trying to play "(Movie Title)".
Error code: s1001 (Network)"
That's a bad server update error. Either the server didn't fully start up properly after an update, or the update installed incorrectly and you need to either reinstall the latest version of plex, or just delete the entire app and start over from scratch.
Can you do a follow up video on how to access jellyfin from outside on mobile device?
You need to port forward the port for JellyFin in your router. But because there's like a billion different routers, there's no way to make one video for every device. You just gotta look up what model you have and how to port forward, and then set that up with the port JellyFin uses, and you'll be able to access it from anywhere.
Great clear video - my only issue is that new version of Truenas isn't quite the same and both of Plex and Jellyfin get stuck on Deploying - they go to run occasionally but the web portals wont open and they then return to deploying :(
I believe this is a permissions issue if it lasts longer than a few hours. The first time the apps are deploying can take a long time because they're actually building the entire thing and setting it all up.
For reference, mine is a Ryzen 5 5600G with 32GB 3600Mhz running on a 250GB SSD for the OS, and NextClous took about 3 hours to deploy for the first time.
Plex and Jellyfin will also take a long time to deploy if the Media share has data in it already. For the sake of the video I did it with an empty share so it would deploy really fast, but if you have tons of movies and stuff it can take hours.
If it takes too long, it could just be a permissions issue and the app just needs to be reinstalled
please make a video for adding sonar and radar with jacket for truenas scale. i really understand your video.
Great video. Can you access outside of your network, ie, at a friends house or on your phone without wifi? I have issues with the remote connecting on windows - so truenas here we come.
Yeah, this is just done with your router and has nothing to do with TrueNAS or anything. Plex uses port 32400, so if you log into your router, find a section for port forwarding or search your router model and how to port forward. And just open up port 32400 so that way Plex has access outside the local network. Then anyone can use your server and you can even register different emails and stiff to your account so each person has their own profile.
thank you very helpful
Please do a next cloud one! this video was great!
I've been working on it for a while now, and so far, I can't get it working because Nextcloud needs to be the owner of the share. Or at least "www" needs to be the owner of it. And you can't share a www owned share over SMB because the user will never have permissions over it. So you'll only be able to read files but never write. You would have to use the Nextcloud client in order to write.
But after taking a step back to actually evaluate this and it's actually better this way when you think of other cloud storage providers. You never have SMB access to OneDrive or whatever. It's always cloud based, and that's literally what Nextcloud is trying to do.
So the ideal solution is to set up Nextcloud and migrate the data being shared via SMB and access it like that instead. It's pretty much the same thing at that point once it's set up. As far as I know, the transfer speeds should be the same over a local network. It's only outside the house on a different network that will be limited by the internet download/upload speed. Which with a SMB, you wouldn't have had that option for outside network access anyway.
I'm working on another video thing, still in the research phase, so I haven't even gotten close to starting on recording yet. But ideally, the end goal is that Plex media is the only SMB for drag and drop, and everything else is stored with NextCloud. And then use WireGuard to set up a VPN so when I'm outside of my own network. I can use WireGuard as a VPN to my home network and access Nextcloud as if I'm on my own local network. This way, Nextcloud never actually sees the outside world, so it ends up being even more secure than a paid cloud provider since you need the VPN (which is setup with a file for encryption from within the local network) or direct access to the local network by physically being on my wifi to even access the cloud.
So far, nothing I said is working for me at all, lol. But that's my plan, at least, the direction I'm trying to go.
@@frozennorthproductions Well when that day comes I will support it!
Any tips or links get DLNA working on Scale? tried Plex,Jelly,emby etc etc with no joy
I think there's a setting in Plex WebUI to enable DLNA, for me it was on automatically. I was working on a PS3 and after plugging in ethernet, my entire Plex library just showed up on it's own and I was able to stream movies and stuff straight on the PS3 without needing the Plex app or anything. It just kinda worked right out of the box.
This is a brilliant video but things have updated so would you please do an update :)
can you cover how to setup nginx reverse proxy? for atleast 100+ users?