Jellyfin issue with mounting points, Truenas Core

yonko

Cadet
Joined
Oct 13, 2022
Messages
3
Hi, recentry did a reconfiguration of my pools due to adding more hard drives to the server. Long Story short I wiped my jails instalation so I am now starting from scratch.

I am trying to get jellyfin back up and running with this tutorial and I was able to access the GUI. I proceeded then to configure the mounting points and permissions. I mounted my the folder where all my media is to .../iocage/jails/jellyfin/root/media in the jail. I suspect that it is a problem with permissions, but I have been trying already for quite some time and I am not able to figure it out. Right now inside the ACL of my mount point I have the "Open" preset.

When I try to add a new library, I select the /media folder in the drop down menu and it closes and I am not able to browse anymore. I would appreciate if anyone can give me a hint of what to do.

Thanks in advance!
 

jcizzo

Explorer
Joined
Jan 20, 2023
Messages
79
were you ever able to figure this out? i'm having the same problem..

i installed the jellyfin plugin for tn core (latest stable).. i followed the acl/sharing instructions from tom lawrence on youtube obsessively. they worked fine when i installed the plex server plugin but i don't like plex and wanted to use jellyfin. the jellyfin install went perfect without a hitch. again, i followed all the setup instructions from the tom lawrence video to a 'T'. at this point there shouldn't be any issues whatsoever.
when adding the mountpoints it all goes through, however when i pull the drop down folder, and nothing happens, says

"the path could not be found. please ensure the path is valid and try again."

the "Folders +" button doesn't seem to work all that well.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I wish I could help you. Unfortunately, I run Jellyfin straight on a normal jail on a vanilla FreeBSD install using Bastille.
 

jcizzo

Explorer
Joined
Jan 20, 2023
Messages
79
well, i uninstalled jellyfin and installed plex server.. took 5 minutes and went without a hitch so i know my permissions are correct, at least insofar as plex server requirements are concerned.. so, i guess for the meantime i'm going that route. ultimately i want to build out a system that i can virtualize with proxmox as the hypervisor, truenas in a vm to manage storage volumes/shares, a vm with debian to run sonarr/radarr/nzbget, and another debian (or whatever linux distro) to host media serving, and video processing via handbrake. as of right now, i copy my downloads from my nas to my workstation, process them, then move them back and it's a lotta back and forth, not efficient.. i'm also contemplating just using straight freeBSD instead of truenas in one of the vms..

what's bastille? is that like another hypervisor? an alternative to bhyve?
 
Joined
Oct 22, 2019
Messages
3,641
@Whattteva @jcizzo

Did you use the (only now recently available) FreeBSD Port to install Jellyfin, or did you install it via the binary / instructions from the GitHub?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
what's bastille? is that like another hypervisor? an alternative to bhyve?
Bastille is just another package in the FreeBSD ports that you can install on a vanilla FreeBSD system to easily setup jails.
 

jcizzo

Explorer
Joined
Jan 20, 2023
Messages
79
@Whattteva @jcizzo

Did you use the (only now recently available) FreeBSD Port to install Jellyfin, or did you install it via the binary / instructions from the GitHub?
re jellyfin: i dunno.. i guess? i'm running the latest stable version of truenas core and i used the jellyfin plugin that showed up in the list of community plugins. i believe the plugin is from github, i don't know why but i seem to think it labels it that way.

as for bsd, are you running it on a vm or bare metal? i'm interested in trying it.. sometimes going right to the source can ultimately be easier to deal with than these alternates..

- are you able to web into your bsd box or are you rdp'ing via xrdp (or something else)?
- how do you find setting up permissions, etc...? it's probably dumb of me to ask because all i can do is wiggle around the cli, i don't know how to change permissions and do all the things others say are so much easier. and you seem as though the type who'd prefer the command line.... then again, when you're as novice with this as me, EVERYONE seems as though they're the type who prefers the cli :wink:
 

jcizzo

Explorer
Joined
Jan 20, 2023
Messages
79
was just reading up on bastille... so wait... is bastille it's own thing or is it a gui front-end for admin'ing/controlling bhyve?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
was just reading up on bastille... so wait... is bastille it's own thing or is it a gui front-end for admin'ing/controlling bhyve?
It's its own thing, and no, it's not GUI.


You may have seen https://carlosneirablog.wordpress.com/category/bhyve/ for using Bastille as a jail manager to create a dedicated jail for running the bhyve hypervisor.

On TrueNAS, Bastille would conflict with iocage, which is another jail manager.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
re jellyfin: i dunno.. i guess? i'm running the latest stable version of truenas core and i used the jellyfin plugin that showed up in the list of community plugins. i believe the plugin is from github, i don't know why but i seem to think it labels it that way.
My mistake, Jellyfin doesn't even exist in the ports tree. It's definitely the one from GitHub probably.

as for bsd, are you running it on a vm or bare metal? i'm interested in trying it.. sometimes going right to the source can ultimately be easier to deal with than these alternates..
I'm running it in a VM.

- are you able to web into your bsd box or are you rdp'ing via xrdp (or something else)?
I don't need any GUI, just for it to host Jellyfin, so it's just pure CLI through SSH.

- how do you find setting up permissions, etc...? it's probably dumb of me to ask because all i can do is wiggle around the cli, i don't know how to change permissions and do all the things others say are so much easier. and you seem as though the type who'd prefer the command line.... then again, when you're as novice with this as me, EVERYONE seems as though they're the type who prefers the cli
You mostly only need to make sure that your uid on TrueNAS matches your uid on the FreeBSD VM so that NFS mounts and permissions will work.

was just reading up on bastille... so wait... is bastille it's own thing or is it a gui front-end for admin'ing/controlling bhyve?
It is its own thing and there is no GUI front-end, but it's relatively simple to use. It is not for controlling bhyve, it's for controlling jails. @Samuel Tai is correct. It will conflict with iocage in TrueNAS, hence why I run it in a vanilla FreeBSD VM.

There is also another port called cbsd which can manage both jails AND bhyve and it even comes with a text-based UI too, but it's generally a lot more complex than Bastille IMO.
 

jcizzo

Explorer
Joined
Jan 20, 2023
Messages
79
I was thinking about going down the path of proxmox as a hypervisor, with truenas core on top, and a couple of vms for doing various tasks (downloads and video processing).. this is my foray into all of this so, in addition to trying to maintain some sort of budget, there's also the learning curve.. i've been reading quite a bit on how incredibly well bhyve performs as a hypervisor. it's too bad someone hasn't jumped on that train to create a gui for it so it can be used like pfsense or truenas core. apparently it even outperforms vmware.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
i've been reading quite a bit on how incredibly well bhyve performs as a hypervisor. it's too bad someone hasn't jumped on that train to create a gui for it so it can be used like pfsense or truenas core. apparently it even outperforms vmware
OK, there's a bit to unpack there...

TrueNAS CORE (and Enterprise) already use bhyve as the hypervisor for VMs which can indeed be created using the GUI.

I don't think you're going to find a lot of support for the theory that bhyve outperforms VMware unless you're going to cherry-pick specific metrics where it may have a small edge... overall, it's not even a type 1 hypervisor, so can't compete with one.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
overall, it's not even a type 1 hypervisor, so can't compete with one.
The line for type 1 and type 2 is blurred these days. Linux KVM, for example, you will find plenty of people insisting it's type 1, but you'd also get plenty of people insisting it's type 2. Basically it's either depending on who you ask.

Personally, I think what matters more is whether it uses VT-x extensions or software emulation as that, by far, results in way more noticeable performance differences.
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
i've been reading quite a bit on how incredibly well bhyve performs as a hypervisor.
It really depends on which metrics you're grading. For example, if you're grading it on number of supported OS's, it's probably not quite up there yet, though it's getting better. Not sure about outperforming VMWare who's been in the business for decades. I'd imagine maybe on some file system performance benchmarks, but definitely not when it comes to something like 2D graphics.

it's too bad someone hasn't jumped on that train to create a gui for it so it can be used like pfsense or truenas core. apparently it even outperforms vmware.
As @sretalla said, TrueNAS CORE does use bhyve and provides a GUI for it, though I'd say the GUI is nowhere near as polished as something like Proxmox. Honestly, when I use bhyve on vanilla FreeBSD, I just make a shell script with the appropriate command string. GUI is nice, but not necessary.
 

gabborgabbor

Cadet
Joined
Feb 9, 2021
Messages
6
JFI, fixed it on my nas, made a group with GID 710 and added it to the mountpoints. :)

  • Jellyfin can't see my mount points / files!
    • Double check your permissions. Jellyfin does not need to be the owner, but its GID should be a part of a group that can access the mount/file. This is also your reminder to keep UID/GID consistent between host and guest systems.
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
Jellyfin can't see or read my mount point to my photos folder. I've successfully set up mounting points to movies and tv shows to my pool everything works fine, Jellyfin can read all those files.

It can't see my image files and folders despite the following settings:

- image folder has ACL permissions recursively applied for user 868 with full access (id Jellyfin = 868)
- Jellyfin user is set under users with UID/GID 868
- Owner of the image folder is user 868
- Folder connected to the mounting point inside the jail is set to "d rwxrwxrwx root wheel"
- Owner of the folder inside the jail connected to the mounting point is Jellyfin (868)

I don't know what am I doing wrong. Any ideas?
I don't want to use SMB for sharing the photos because of slower performance.
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
What happens when you list the files? ls -lh
 

live2mod

Dabbler
Joined
May 15, 2023
Messages
15
What happens when you list the files? ls -lh

It lists everything as expected, files and folders are there but Jellyfin is acting as if there is nothing
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I think the intention was to see the ownership of the files... probably a different owner than the jellyfin user inside the jail/VM.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
It lists everything as expected, files and folders are there but jellyfin is acting as if there is nothing
I should qualify this. Does it say that the files are owned by jellyfin user? What does it say in the fields? A screenshot would be helpful.

Here's an example of one of the entries from my jellyfin share:
Code:
-rw-r--r--  1 root  wheel   4.7M Nov  4  2012 SC4ep1_07_M 2.mp3


Here, the file is owned by the user root and the group wheel, but is readable by ALL users, so the Jellyfin process can still perfectly read it without any trouble.

I should also note that if you're changing the owner, then you need the uid of the jellyfin user both on the host AND the jail/VM to match. That means, the host needs to have a jellyfin user with uid of 868 AND the jail/VM also needs a jellyfin user with uid of 868.
 
Last edited:
Top