Jellyfin Forum
How do I update on Linux? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: How do I update on Linux? (/t-how-do-i-update-on-linux)

Pages: 1 2 3


RE: How do I update on Linux? - 4r5hw45twh - 2024-08-14

(2024-08-14, 01:50 AM)TheDreadPirate Wrote: You need to put "sudo" in front of the ss command so that it lists the PID as well.

Code:
chris@rat-trap:~$ ss -tulpn | grep 8096
tcp  LISTEN 0      512                                          *:8096            *:*     
   
chris@rat-trap:~$ sudo ss -tulpn | grep 8096
tcp  LISTEN 0      512                                          *:8096            *:*    users:(("jellyfin",pid=3641666,fd=504))

And then you need to kill the PID that is still running because it is preventing the new instance from starting.  Whatever is running now is not the new instance and you are still using the old data from the flatpak.

Ok, after a 6th reboot and re-doing commands a few times, I finally have a Dashboard that says 19.9.9. The only problem left now is....how do I point JF to my media hard drives? Before updating, they showed up on /media/username/ but now I don't see them there. On my machine, they're at /dev/sda2 and /dev/sdb1. They're already mounted. JF sees "/media/username" but not the drives there. I tried your suggestion from another post here: https://forum.jellyfin.org/t-jellyfin-can-t-access-second-internal-ssd-on-debian?pid=1736#pid1736 because that OP had the same exact issue.

EDIT: Followed this Reddit reply and the issue is now fixed with seeing the drives: https://www.reddit.com/r/jellyfin/comments/qderwx/allowing_external_drives_to_be_recognized_in/hhmlqdw/

OK, NOW.....how do I prevent all of this from happening ever again? Entire night was ruined from a measly upgrade that I needed. How can I properly upgrade the server version next time without alllllllll this hassle?


RE: How do I update on Linux? - TheDreadPirate - 2024-08-14

Now that you are using the Debian packages, apt will pull down OFFICIAL updates for the OFFICIAL repo automatically.


RE: How do I update on Linux? - 4r5hw45twh - 2024-08-14

(2024-08-14, 03:49 AM)TheDreadPirate Wrote: Now that you are using the Debian packages, apt will pull down OFFICIAL updates for the OFFICIAL repo automatically.

A (hopefully) final question: Where is the executable JellyFin file at that starts the server? I don't see it on my Applications list, but it does auto-start on boot. I would like a copy on my Desktop if possible.

Oh, and is it possible to backup changes I've made to metadata and stuff on JF? Anytime I get JF on system, I have to re-create categories, fix a good handful of shows and movies that didn't properly identify, etc. Which I have to do again with this updated server since I switched from Windows to Linux. And then of course, the watch history doesn't carry over so I have to manually go check off each show/movie that I've watched.


RE: How do I update on Linux? - TheDreadPirate - 2024-08-14

The executable is in /usr/bin. But you will never run Jellyfin directly. You will ALWAYS manage it via systemctl on the command line.

Code:
sudo systemctl status jellyfin
sudo systemctl stop jellyfin
sudo systemctl start jellyfin
sudo systemctl restart jellyfin

This is how you manage/run Jellyfin.

All of the Jellyfin configurations are in /etc/jellyfin. And all of your permanent Jellyfin data, including the database, is in /var/lib/jellyfin. Back up both of those directories before every upgrade. Or more frequently if you want. I backup Jellyfin daily.


RE: How do I update on Linux? - 4r5hw45twh - 2024-08-14

(2024-08-14, 02:41 PM)TheDreadPirate Wrote: The executable is in /usr/bin.  But you will never run Jellyfin directly.  You will ALWAYS manage it via systemctl on the command line.

Code:
sudo systemctl status jellyfin
sudo systemctl stop jellyfin
sudo systemctl start jellyfin
sudo systemctl restart jellyfin

This is how you manage/run Jellyfin.

All of the Jellyfin configurations are in /etc/jellyfin.  And all of your permanent Jellyfin data, including the database, is in /var/lib/jellyfin.  Back up both of those directories before every upgrade.  Or more frequently if you want.  I backup Jellyfin daily.

Thanks a ton for this info.! Is JF set to always start on boot by default? And ok, so if I backup the perm data/database, I won't have to re-identify shows/movies that don't properly get picked up and whatnot?


RE: How do I update on Linux? - TheDreadPirate - 2024-08-14

Correct.


RE: How do I update on Linux? - 4r5hw45twh - 2024-08-15

(2024-08-14, 09:32 PM)TheDreadPirate Wrote: Correct.

Sooo, just now tried playing stuff on my Desktop and Firestick....getting this now, which I never had before until this whole upgrade thing:

Code:
Playback Error

Playback failed due to a fatal player error.

In the log for each thing I try to play, I see: https://i.ibb.co/PT4nMnD/Screenshot-from-2024-08-14-22-07-01.png


RE: How do I update on Linux? - TheDreadPirate - 2024-08-15

I'd have to see the fresh log. /var/log/jellyfin. If there are any ffmpeg logs in there, also share one of those.

Post one or both of them to pastebin.


RE: How do I update on Linux? - 4r5hw45twh - 2024-08-15

(2024-08-15, 02:08 AM)TheDreadPirate Wrote: I'd have to see the fresh log.  /var/log/jellyfin.  If there are any ffmpeg logs in there, also share one of those.

Post one or both of them to pastebin.

PasteBin says too large or whatever, so here: https://paste.mozilla.org/NumuZuaE

Not sure why I see:

Code:
[*][2024-08-14 16:51:25.925 -04:00] [INF] Skipping realtime monitor for "/media/user/Backup Plus/Movies" because the path does not exist
[*][2024-08-14 16:51:25.925 -04:00] [INF] Skipping realtime monitor for "/media/user/Media/Anime" because the path does not exist
[*][2024-08-14 16:51:25.925 -04:00] [INF] Skipping realtime monitor for "/media/user/Media/TV Shows" because the path does not exist


because it found them last night in the first place to add the folders to JF. Same a few liens lower; they say, "is inaccessible or empty, skipping"


RE: How do I update on Linux? - TheDreadPirate - 2024-08-15

Did you reboot the system since we "fixed" it? I am assuming you are allowing your OS to auto-mount this drive. If so, it reapplied the ACL and denying Jellyfin access.

You should manually mount the drive so that this doesn't happen again.

https://askubuntu.com/questions/303497/how-to-add-an-entry-to-fstab