Daisuke
Contributor
- Joined
- Jun 23, 2011
- Messages
- 1,041
See SMB Shares section in this thread.I can confirm that /SMB/data works for both SMB share and Plex.
See SMB Shares section in this thread.I can confirm that /SMB/data works for both SMB share and Plex.
It would have been preferable, but much harder to do.... and keep app deployment easyI wonder if it would be possible in a future release to allow overriding the path validation per mount when configuring a container? This way most of the time the safety check will be done except for when it's the exception.
It would have been preferable, but much harder to do.... and keep app deployment easy
Perhaps TWO validations...one system level and one App level for the SMB one? Better yet, how about being able to mount and SMB share in an App like we can for NFS Shares?Sorry to say so, but: Not really possible, at least not for all the hostPath validation features...
hostPath validation is not *just* the shares thing, it also prevents access to system paths, which is crucial to safely use hostPath storage at all.
Not having this on the daemon level, aka: for all apps, (docker on Bluefin, containerd on cobia), means it won't protect users against container escapes using hostPath. Which is a known vulnerability for Kubernetes.
I appreciate your response, but NFS doesn't suffice for my use case. Even though it's native in Windows, it's all command line as well and isn't something I can load up in Windows Explorer without installing Windows features.As an alternative solution to consider. Windows has an NFS client - use that to access the Plex share (NFS). One set of permissions then
Same here, I did the update two days ago, but for some reason, one pool has the Plex app (created from Truenas core version, because SMB shares the dataset and that Plex app is under that dataset path) with SMB share work ok, all with the NFSv4 setting, so I have to stop SMB share from starting the APPs.It will stop working in 22.12. Mine was working fine in Angelfish too.
Thanks, I tried NFS for Windows 10 client today, and it does not mount for some reason. I don't care about window sharing, as long I can manage my APPs files, maybe I can use FileBrowser APP for managing my application media fileOne solution is using the TrueCharts version and setting up local-only NFS shares. That fixes the issue.
Another option is sharing the folders inside the dataset, but that stopped worrying for me the other day, so I switched to TrueCharts instead as it uses the "apps" user at id 586 for all containers. I only have to add it once.
I still use SMB. I used NFS only internally to share an SMB-shared folder to a TrueCharts image.Thanks, I tried NFS for Windows 10 client today, and it does not mount for some reason. I don't care about window sharing, as long I can manage my APPs files, maybe I can use FileBrowser APP for managing my application media file.
User "apps"(id: 568) is used for Official APPs too. Today I do some searching, Daisuke's Recommended Guide may work too.
What do you mean by setup local only NFS shares? So my data will not be shared via SMB put via NFS? Doesn't this still violate the host path problem?One solution is using the TrueCharts version and setting up local-only NFS shares. That fixes the issue.
Another option is sharing the folders inside the dataset, but that stopped worrying for me the other day, so I switched to TrueCharts instead as it uses the "apps" user at id 586 for all containers. I only have to add it once.
Make an SMB share and use it for Windows.What do you mean by setup local only NFS shares? So my data will not be shared via SMB put via NFS? Doesn't this still violate the host path problem?
Hello Sawtaytoes,Make an SMB share and use it for Windows.
Then also make an NFS share on the same dataset. With TrueCharts Apps (instead of TrueNAS Official Apps) Now you can associate that app with an NFS share rather than the "Host Path" (filesystem) itself.
Instead of NFS shares, you can do what I did, but this is probably less reliable:
1. Make SMB share for parent dataset.
2. Make child datasets and associate those datasets with apps.
This works too, but it requires a parent dataset and has the problem of permission issues. If someone knows more about permissions, please explain because I sometimes run into SMB permissions issues on datasets used by apps.
While this is probably good for security, it does kinda defeat the purpose of having an easy to use media server if you have to fiddle around just to put some media in the folder... I think there needs to be a proper solution for enabling share for this purpose. Disabled host path checks for now as a workaround.
That looks super easy indeed! I must be doing something wrong though, as I Jellyfin will just complain that the path is not valid, when I add the folder to a library. Did everything according to the guide, set the permissions for app user, made the etc. but no dice. I even tried creating a brand new dataset where I added just couple movies for testing, but even then it didn't work. Tested Plex earlier today and for it the host path way worked just fine, after disabling the check, for Jellyfin even that doesn't work for me. I'll open a support ticket in the discord so hopefully someone can help me figure this out :)it's actually supper easy, checkout iX's recent TrueCharts jellyfin guide ;-)
How to get started with Jellyfin on TrueNAS SCALE
Here at iX, we’re big fans of open-source alternatives to commercial software - so when we heard that LinusTechTips was featuring the open-source media library manager Jellyfin on their YouTube channel, we were excited to check it out. Unfortunately, there’s one piece missing from the puzzle -...www.truenas.com
This will be better documented at release, but to access an App dataset via SMB or NFS you need to disable host path validation in Kubernetes settings. This is a new "safety" feature in Bluefin. Some Apps are not very compatible with SMB sharing...
TrueNAS SCALE 22.12-RC.1 has been released!
We are pleased to announce the release of TrueNAS SCALE 22.12-RC1 (Bluefin). This release candidate has several bug fixes and improvements and a few new features. See the Release Notes below for more details. Release Notes: https://www.truenas.com/docs/scale/scale22.12/#2212-rc1 Download...www.truenas.com
View attachment 60438![]()