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


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

I am on POP!_OS. I downloaded it directly from the Pop_OS built-in store. It's version 10.8.13. I look online and the newest says 10.9.9. Pop_OS store does not have any updates for it.

I am trying to watch on my Firestick, as per usual, but it's saying the server has to be updated. This has ruined my movie night with my partner now and I cannot figure out how to update it. Fairly new to Linux in general. I downloaded the .deb from: https://repo.jellyfin.org/?path=/server/ubuntu/latest-stable/amd64

However, when I double-click the .deb file, I get this: https://i.imgur.com/rvlcmT6.png

So I have no idea why my Jellyfin Dashboard on my Linux PC is still saying it's 10.8.13.


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

The Jellyfin server flatpak is unofficial and was not created by the Jellyfin Project and is not supported. If you want to upgrade you will have to use a different install method. Either docker or a DEB package install. I'm not sure where the flatpak version saves Jellyfin data, but if it isn't in the same locations as a DEB package install you will need to start over.


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

(2024-08-14, 12:36 AM)TheDreadPirate Wrote: The Jellyfin server flatpak is unofficial and was not created by the Jellyfin Project and is not supported.  If you want to upgrade you will have to use a different install method.  Either docker or a DEB package install.  I'm not sure where the flatpak version saves Jellyfin data, but if it isn't in the same locations as a DEB package install you will need to start over.

Thanks for that info. I don't have Docker. So, with the deb package, it says it's installed. But my localhost for Jellyfin still shows 10.8, even though I uninstalled that version from the Pop_OS store.

In Terminal, I even get: "jellyfin-server is already the newest version (10.9.9+ubu2004)."


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

Clear your browser cache?

   
   
   


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

(2024-08-14, 12:47 AM)TheDreadPirate Wrote: Clear your browser cache?

So, I went to "Files" and deleted anything that had "Jelly" in it, except the deb installer. Restarted PC just now. I go to install it again and it's saying it's already installed (latest version) but now the localhost thing doesn't connect to anything at all. I also don't see Jelly Server anywhere on the PC. No idea what's going on.

Trying to start in Terminal gives: https://i.ibb.co/mc54WMk/Screenshot-from-2024-08-13-20-52-24.png


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

"jellyfin start" is not the right way to start jellyfin. The jellyfin service is managed by systemctl.

Code:
sudo systemctl status jellyfin

Let's start over. Follow these instructions exactly.

Code:
sudo apt purge jellyfin*
sudo rm -rf /var/lib/jellyfin /etc/jellyfin /var/cache/jellyfin
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
sudo ufw allow 8096



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

(2024-08-14, 01:12 AM)TheDreadPirate Wrote: "jellyfin start" is not the right way to start jellyfin.  The jellyfin service is managed by systemctl.

Code:
sudo systemctl status jellyfin

Let's start over.  Follow these instructions exactly.

Code:
sudo apt purge jellyfin*
sudo rm -rf /var/lib/jellyfin /etc/jellyfin /var/cache/jellyfin
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
sudo ufw allow 8096

Code:
admin@pop-os:~$ sudo systemctl status jellyfin
[sudo] password for admin:
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor pres>
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: exit-code) since Tue 2024-08-13 20:59:49 EDT; 16mi>
  Main PID: 9192 (code=exited, status=1/FAILURE)
        CPU: 327ms

Aug 13 20:59:49 pop-os systemd[1]: jellyfin.service: Scheduled restart job, res>
Aug 13 20:59:49 pop-os systemd[1]: Stopped Jellyfin Media Server.
Aug 13 20:59:49 pop-os systemd[1]: jellyfin.service: Start request repeated too>
Aug 13 20:59:49 pop-os systemd[1]: jellyfin.service: Failed with result 'exit-c>
Aug 13 20:59:49 pop-os systemd[1]: Failed to start Jellyfin Media Server.
lines 1-13/13 (END)

I did the other commands and they worked fine. I then opened the IP:8096 that it gave me in the Terminal in a private tab and the Dashboard is still saying 10.8.

And then:
Code:
> Waiting 15 seconds for Jellyfin to fully start up.

-------------------------------------------------------------------------------
○ jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: inactive (dead) since Tue 2024-08-13 21:18:34 EDT; 12s ago
    Process: 17304 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=exited, status=0/SUCCESS)
  Main PID: 17304 (code=exited, status=0/SUCCESS)
        CPU: 3.084s

Aug 13 21:18:34 pop-os jellyfin[17304]:    at Microsoft.Extensions.Hosting.…ion)
Aug 13 21:18:34 pop-os jellyfin[17304]:    at Microsoft.Extensions.Hosting.…ken)
Aug 13 21:18:34 pop-os jellyfin[17304]:    at Jellyfin.Server.Program.Start…fig)
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Running query plan…hile
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing CoreAppHost
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing MusicBra…ider
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing MusicBra…ider
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing PluginManager
Aug 13 21:18:34 pop-os systemd[1]: jellyfin.service: Deactivated successfully.
Aug 13 21:18:34 pop-os systemd[1]: jellyfin.service: Consumed 3.084s CPU time.
Hint: Some lines were ellipsized, use -l to show in full.
○ jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: inactive (dead) since Tue 2024-08-13 21:18:34 EDT; 12s ago
    Process: 17304 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=exited, status=0/SUCCESS)
  Main PID: 17304 (code=exited, status=0/SUCCESS)
        CPU: 3.084s

Aug 13 21:18:34 pop-os jellyfin[17304]:    at Microsoft.Extensions.Hosting.…ion)
Aug 13 21:18:34 pop-os jellyfin[17304]:    at Microsoft.Extensions.Hosting.…ken)
Aug 13 21:18:34 pop-os jellyfin[17304]:    at Jellyfin.Server.Program.Start…fig)
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Running query plan…hile
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing CoreAppHost
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing MusicBra…ider
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing MusicBra…ider
Aug 13 21:18:34 pop-os jellyfin[17304]: [21:18:34] [INF] Disposing PluginManager
Aug 13 21:18:34 pop-os systemd[1]: jellyfin.service: Deactivated successfully.
Aug 13 21:18:34 pop-os systemd[1]: jellyfin.service: Consumed 3.084s CPU time.
Hint: Some lines were ellipsized, use -l to show in full.
-------------------------------------------------------------------------------

You should see the service as 'active (running)' above. If not, use https://jellyfin.org/contact to find us for troubleshooting.

You can access your new instance now at http://IP:8096 in your web browser to finish setting up Jellyfin.

Thank you for installing Jellyfin, and happy watching!



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

You probably have a zombie process running. Either reboot your computer or figure out what is tying up port 8096.

Code:
ss -tulpn | grep 8096

That should print out the process using port 8096. In the right side there will be a pid. That that number and run this.

Code:
sudo kill -9 <insert PID>

Then start the jellyfin server

Code:
sudo systemctl start jellyfin



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

(2024-08-14, 01:40 AM)TheDreadPirate Wrote: You probably have a zombie process running.  Either reboot your computer or figure out what is tying up port 8096.

Code:
ss -tulpn | grep 8096

That should print out the process using port 8096.  In the right side there will be a pid.  That that number and run this.

Code:
sudo kill -9 <insert PID>

Then start the jellyfin server

Code:
sudo systemctl start jellyfin

Code:
admin@pop-os:~$ ss -tulpn | grep 8096

tcp  LISTEN 0      512          0.0.0.0:8096      0.0.0.0:*

Yeah, it's really weird because even with the fresh install, it keeps bringing me to the sign-in page, so it's keeping a user database or something somewhere, and isn't bringing up the create server process. Even when it's saying it's inactive and in a private tab.


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

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.