-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run Jellyfin 10.9.2 on TrueNAS Core 13.2/13.3 #75
Comments
What is the host OS and what is the jail OS?
Most likely: dotnet/runtime#99857 strikes again. Your host OS is FreeBSD 13.1 / TrueNAS CORE 13.1 + your jail is 13.2/13.3/14.x + the binaries were built with NET8 SDK. That topic also addressed a possible work around but was not successful. You will likely need a host OS of 13.2 or higher. If your host OS is 13.1 then you also need a jail that is 13.1 AND I need to also build TrueNAS specific binaries of |
host (TrueNAS Core):
And both jails tested:
Looks like the host environment, then.
That's what I figured from the
So, given that I'm tracking the Weirdly enough, the 13.2 is the lowest I can go before jumping directly to 12.4. And here comes my lack of knowledge about FreeBSD: given the current mismatch of versions, is there a way to get the 13.1-RELEASE for jails? Here's what
It might be a silly question but, since you also build a binary for FreeBSD 14, would it be worth trying with a 14.0 jail? Why would you need to get a specific build of NET8? Because of the host being 13.1? Edit: I have seen that I could pull out a 13.1-RELEASE from the archives. Is it worth trying before anything else?
Edit 2: I created a new jail from my freshly downloaded 13.1-RELEASE (
This is strange to me since they're now both supposedly the same version:
|
13.1 went EOL July 31, 2023. After that point the pkg mirrors (the location where If you need to install packages for that version, that might be harder. I only found archives for 5.1-9.2 and random snapshots from 10-12. You could find most common packages on the DVD.iso for that release but I am not sure how comprehensive that is for recent releases. The handbook does not say WHICH packages are on either the DVD nor DISC versions. |
That's what I was thinking, since, like I said, TrueNAS Core has always been lagging behind actual FreeBSD releases. Apparently, iXsystems had planned to release their new Core release in June:
What would be the best course of action? Waiting for TrueNAS Core 13.3 while staying on Jellyfin 10.8.8? That would not add more work for you, would it? Your current build would work for 13.3?
Even if it worked, it would still be a few weeks, so I guess that should be OK, don't you think? For now, I pulled a 13.1 release from the archives and trying to see how that goes. Edit: So, your build of Jellyfin 10.9.2 works with a 13.1 release jail. It should be good enough before next month upgrade to 13.3. Thanks for spotting the mismatch, and sorry for such a silly mistake. BTW, thanks for your involvement of building Jellyfin for FreeBSD, and for the time you spend helping users like me. |
The FreeBSD 13 build of jellyfin 10.9.x "should" work on TrueNAS's FreeBSD 13.1 in a 13.1 jail. If it does not work than wait a month for when iXsystems releases their update. If it does work than use that :) Older jails typically work on newer hosts due to symbol versioning. NEWER jails MIGHT work on older hosts unless there are different symbols or missing functions. In this case, there are breaking changes. Finally, the warning from EDIT: I noticed your edit that it does work under TrueNAS and a 13.1 jail. Glad we got it figured out! |
Jellyfin seems to work, but Jellyfin log:
Jellyfin jail shell:
I guess my
Apparently, I suppose that I already should feel lucky that I could deploy a 13.1 jail, but I won't be able to match my host exact version? The worst part, is that, I suppose I had the actual exact release at some point and I might have trashed it to save space. Well, after having created and destroyed some many pools, I could try with a 13.0. I know how bad that sounds.
I should have tried to actually play something and not just look if clients were able to join the server, but I was tired and it was way past my bed time. |
So, I've finally settled with a 13.3 jail and running jellyfin in a It's just It's a bad hack, but the least bad possibility while waiting for the 13.3 release to finally arrive for TrueNAS Core in June. |
Another option for running Jellyfin in a 13.3 jail with a 13.1 base system (that I haven't tried for Jellyfin specifically, but I have for a different jail) is noted in the discussion on the TrueNAS forums. Essentially copy the base system's binary for "daemon" from /usr/sbin to the jail's sbin directory. That sounds sketchy and may have downstream impacts when the base system is eventually upgraded, but in my case, on a 13.3 jail I could once again use "daemon" with my base system still on 13.1. If I have time in the next few days I'll give this a try on my own Jellyfin jail, which sounds like is configured similarly to yours @julienbenjamin. I'll wait until the 10.9.2 binary hits my ports mirror which should hopefully be soon. Jellyfin 10.9 had a bunch of changes that I've been eagerly awaiting so I'd rather not wait until TrueNAS 13.3 if I can help it! |
This thread has been really helpful, I don't entirely know what I'm doing and was very confused by the daemon not working...
Any idea why I get this error when trying the same? When running the command normally, jellyfin starts fine. |
Sounds like the permissions/ownership is wrong |
Ended up figuring out how to use tmux to keep jellyfin running. Good enough for now I think. |
What steps did you use to get it running? I'm still running 10.8.13 (in a 13.2-RELEASE-p9 Jail) and at least one of my clients is complaining about the server version. I've not seen a good description of how to move to 10.9 - I'm thinking it might be getting close to the time to migrate to another platform... |
Are you using FreeBSD? If yes just |
I'm running it on TrueNAS Core 13.0-U6.1. I've updated the pkg within the jail - but since the jail is 13, Jellyfin won't go past 10.8.13 The EOL for TrueNAS Core took me by surprise and I'm trying to figure out the best plan to deal with the Jellyfin server... I've looked at some of the migration tools - but haven't found a complete solution or even the best target system to switch to. |
That complicates things. My understanding was a symbol version bump from FreeBSD 13.1 -> 13.2 when "strverscmp" was introduced. This will cause things like
I think the most surprised would be the enterprise customers that used the FreeBSD version of Enterprise. It is not EOL yet but if you want out now... If you like iXSystem's product or are a hyperscaler you can migrate to the Debian Linux based TrueNAS SCALE product to have things like kubernetes and glusterfs; these both work on FreeBSD, the first via VM and the second natively, but not CORE. You also get a web interface that is nearly identical to CORE If you no longer want to use iXsystem's products but want Linux, there are over a dozen Linux based NAS solutions both free and paid to pick. If you don't want Linux there are only two that I can remember: NexentaStor (Illumos) and napp-it (3 different "Solaris-like" OSes) If you want to stick with FreeBSD you are left with just the base OS or XigmaNAS. TrueNAS was the biggest BSD based NAS solution by a very wide margin and them leaving to enter a very crowded Linux ecosystem is baffling. |
Are you saying you're expecting future updates to TrueNAS Core? My understanding is that what I'm running is it. That is - there are no more TrueNAS Core updates are coming. I've been running FreeNAS since about 2006. I've actually got CORE installed in several clients locations as well - but mostly for use as a backup server for ZFS replication and in some cases we just installed FreeBSD... But I've loved how the FreeNAS/TrueNAS system has evolved over the years. I don't need out now - but unfortunately I chose to start using Jellyfin as a TrueNAS Core jail and can see the end of the road approaching! Jellyfin changed my digital life about 18 months ago - my previous video system was an 18 year old Linux based MythTV PVR! One of my main Jellyfin clients is now displaying a banner about my server version - so it got my attention... Regardless of whether I can continue to apply future updates to Jellyfin jail - it probably makes sense for me to find a way to migrate as much Jellyfin config as I can and move to a new host platform. The NAS duties can stay on my three TrueNAS CORE systems - but the Jellyfin migration is on my mind. If I could get 10.9 running in the jail - that would likely give me some time. Hence my interest in this thread. |
There will be atleast an update this month moving it to 13.3 https://www.truenas.com/blog/truenas-core-13-3-plans/
It will likely require building jellyfin in a TrueNAS 13.1 jail using a dotNET SDK built under TrueNAS 13.1. That would be just the server side, I have no idea how to handle the node-based web component. If there still not a TrueNAS 13.3 release by then end of the month, I will dig into it more. |
As julienbenjamin described in the original post, I was able to run 10.9.2 in a 13.3 jail; it's just the daemon that doesn't work, which is obviously inconvenient but you can work around it. I had to move from the package to the port, since the package doesn't go beyond 10.8.13. I did this by uninstalling the package (pkg remove jellyfin), then installing the port - thankfully my database stayed intact. Then I use tmux, start jellyfin, and detach. It's been working fine and should tide me over until truenas core moves to 13.3 and I can hopefully use the daemon again. Jellyfin port And then run this command in tmux and detach, and jellyfin will keep running: |
That’s great - thanks. The key ingredient that I was missing was the change from pkg to port installation. |
Up and running with 10.9.2! I'll have to continue searching for a long term solution - perhaps building a standalone FreeBSD server and moving my Jellyfin jail there. That might be easier than migrating to a completely new platform. Thanks again! |
Nice! This should be much easier in future. |
So do we wait for truenas core 13.3? Are we able to open the jellyfin jail and do?
|
Yup, I saw that, but it sounded really sketchy. Anyway, in a moment of desperation, I tried it to no avail.
Yes, report back, please.
If you cannot write the DB with the
I cannot say that running Jellyfin as
You might want to wait a few days for the next release of TrueNAS Core, based on FreeBSD 13.3, which should solve all of this.
Yes, look at the link I posted earlier in this thread.
This seems nice. If you need help, even if I am way more of a Linux guy that a FreeBSD one, do not hesitate to ping me.
Seems like the best choice.
You want to downgrade Jellyfin to 10.8.13? Staying at Jellyfin 10.8.13 is a safe choice, depending on what your clients are, and how they update their client, this is a possibility. Edit: Sorry for answering this late, it seems TheFrank already answered most if not all of it. |
June is gone and no promised 13.3 TrueNas Core update. It seems to be the confirmation of what I (we?) feared: we are being pushed off FreeBSD. As I don't know any other feasible alternative, I'm exploring JailMaker in TrueNas Scale :( and it seems to be a reasonable option for jails under Linux. There seems to be some hope that it gets integrated in the UI. For the moment it's all CLI. |
XigmanNAS my friend, I could tell that it is even less permissive by the console than TrueNAS My current XigmaNAS |
Thank you for taking the time to advise. My spare (test) server is now running TrueNas Scale, as I said, but I'll give it a try. |
Of course, TrueNAS Ui is the best, but permissive in comparison, I liked it too much too, but now with this change they made I don't know, surely soon they will release a fork to continue with FreeBSD in the background. I created this post https://rubn0x52.com/2022/04/03/containerizing-jellyfin-in-a-jail/ for my |
Yes. Enterprise has already been moved off AFAIK.
iocage has been closed out, all issues marked as resolved (!), and all PRs closed. If you want to continue to use As mentioned, there is XigmaNAS if you want a Web-UI. If you are OK working with console or text-ui you can move to base FreeBSD. If you want to migrate your jails in FreeBSD with the fewest hassles I HIGHLY suggest using |
@Thefrank Thank you for your comments. But I see you didn't comment the option I'm investigating now, which is using JailMaker to build jails inside Scale based on systemd-nspawn, would you care to elaborate? I know it's not FreeBSD and I was one of the opponents to systemd takeover many years ago. Is there a connection? |
it's simply a totally different thing. |
It's just IX being overly-optimistic with their ship dates. Not the first time.
You could transfer your setup to a Linux VM on Core for now (that's actually what I was doing originally), and the VM will be converted and transferred automatically when you move to Scale, and then you can move it to something native at that point. I'm not considering moving to Scale, if I do stay on TrueNAS, before Electric Eel ships. |
Thank you for the suggestion but, while I stay on Core, I don't think I need to change my jails from iocage to a resource hungry VM. I'm very happy with iocage, my only problem is not being able to upgrade jellyfin, as much discussed up on this thread. But I agree with you, if I move to Scale at all, it won't be before Electric Eel with JailMaker or similar in the UI. |
Yeah, there are audio/subtitle fixes in the 10.9.x release I'd like to take advantage of, but not quite enough to go through moving things. The Jellyfin Media Player app for PC is already requiring 10.9 now (last version for 10.8 server branch is 1.9.1). I'm just gonna stay on server 10,8.13 until TrueNAS Core 13.3 comes out, and hope the Android TV app stays compatible with it until then. |
@jssilva25 I can not give help on something that I have not used. It also falls outside even general support for FreeBSD port of jellyfin :) |
I just upgraded to TrueNAS-13.0-U6.2, not 13.3 yet, unfortunately. Did anybody already tried to install JellyFin 10.9.4 on this? I wouldn't like to try it, just to have the trouble to revert the snapshot. |
tested jellyfin 10.9.4 and it does not work on 13.0-U6.2, have to wait for the 13.3 update |
Jellyfin is now 10.9.6 and it's still not working on 13.0-U6.2, is there a way to install older versions? At least the command : I added to the crontab the command at boot @reboot /usr/local/jellyfin/jellyfin --datadir /var/db/jellyfin/ --cachedir /var/cache/jellyfin It's work like a charm 👍 |
So we should be getting TrueNAS Core 13.3 released this week. Will be seeing if that allows me to update and run Jellyfin 10.9.x Has anyone who has used the 10.9 server also tried the Android client? When I launch the currently-available one I get a message that it requires server 10.9.8 at least, but the current port is 10.9.6, so it looks like even once I update (after the TrueNAS 13.3 release) I will have to sideload an older Android TV client to be back up and working. |
I'm running the most recent (2.6.2) Android client on a 10.9.2 server with no issues. |
Sorry, I meant Android TV. Most recent version is 0.17.3. |
I'm running "jellyfin-androidtv 0.17.3" on my Firestick 4k Max (connecting to my 10.9.2 server), with no issues. |
Okay. cool. Thanks. That's exactly what I'm doing (same device) and the error message seems to be tied to the current release for some reason (?), it now says to "Please update to Jellyfin 10.9.9 or newer" when I check now. |
Hello, I have jellyfin 10.9.6 installed on truenas core 13.3-RELEASE and jail 13.3 and it works perfectly. How can I update to version 10.9.9? Thank you very much for your work. |
The newest release for Jellyfin, and binary released here, is v10.9.10. I do do not publish a pkg so you don't have an easy way to move from 10.9.6 -> 10.9.10. I have also updated the ports files so people with tools like |
If you installed it via pkg you'll need the person who is maintaining the port to update to the current version. That person is not Thefrank. |
There are a couple of developers who update the port when they can but, it's really a bit boring that part. |
I keep checking occasionally for an update as I have had a memory leak issue ever since I updated from 10.8.13 to 10.9.6. |
Can you open an issue here about the memory leak? This is the first time I have heard about it and would like to look into it. |
perhaps it refers to an old CVE ? |
For this reason you cannot update to the latest version using (pkg upgrade). I have very basic knowledge and without a tutorial I am not able to compile PKG and update. Thank you very much for answering. |
@cobaltduff @rucko24 @nx6 FreeBSD:13:latest | - | 10.10.1 https://www.freshports.org/multimedia/jellyfin/ But beware and have a snapshot ready for roll back. |
Yeah, updated a couple days ago (I have Jellyfin as a watched port so I get notifications off the builds). Just in time too, as it looks like the next release of the Android TV app (0.18) will require server 10.10. |
So, long story short, I cannot run Jellyfin 10.9.2 in a TrueNAS Core jail.
I got either an
Failed to create CoreCLR
error with a 13.2 jail or the daemon does not work in a 13.3 jail.TrueNAS Core 13.2-RELEASE:
So, it clearly does not work but I've seen every theory and its counterpart while looking for dotnet issues online.
Storage and RAM are far from being full if that matter.
TrueNAS Core 13.3-RELEASE:
This does works, but when trying to actually run it as a daemon:
This seems to stem from a change in
/usr/sbin/daemon
in FreeBSD 13.3 from what I've read here and there, but I'm far from a FreeBSD expert. The problem is, since I use TrueNAS, the support lags behind, and iXsystems is apparently dropping TrueNAS Core (FreeBSD-based) support.Strangely enough, the
.pid
files are not removed from/var/run/jellyfin
.A few remarks on my jails:
kern.elf64.allow_wx
was already set to1
:allow.mlock
is set to1
since Jellyfin needs it. It translates as the following:I have run out of ideas and my research did not give better insights of how to handle this situation.
If you have any ideas, I'm willing to hear them.
It feels like I'm the only one affected, but I cannot imagine being the only one using Jellyfin 10.9.2 on TrueNAS Core.
BTW, the 10.8.8 worked on 13.2. That's what I had been using for a while before attempting to upgrade to the 10.9.X versions.
Edit: I also tried:
This did not work.
It originally was:
The text was updated successfully, but these errors were encountered: