Jellyfin Forum
Fresh reinstall but can't connect to server - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Fresh reinstall but can't connect to server (/t-fresh-reinstall-but-can-t-connect-to-server)



Fresh reinstall but can't connect to server - caedus - 2025-01-21

Greetings,

I tried to upgrade my jellyfin setup using the sudo apt update and sudo apt upgrade commands.

Whenever I tried to do this for some reason it said it was holding the upgrades back. This was after stopping the jellyfin service. I am not sure what was going on but I purged the jellyfin install and reinstalled. It said it was successful but I could not connect to the server.

I am currently restoring from a timeshift snapshot to try and get everything back but just wondering what went wrong and how to avoid this in the future. Thanks.

Tim


RE: Fresh reinstall but can't connect to server - TheDreadPirate - 2025-01-21

There is a weird issue with how apt works. For whatever reason, apt struggles to handle upgrading jellyfin-ffmpeg with the rest of jellyfin.

You SHOULD be able to run this command to upgrade Jellyfin. Don't ask why it makes a difference, IDK.

Code:
sudo apt upgrade jellyfin

If that doesn't work, you can try uninstalling jellyfin-ffmpeg first.

Code:
sudo apt remove jellyfin-ffmpeg*
sudo apt upgrade jellyfin



RE: Fresh reinstall but can't connect to server - caedus - 2025-01-21

Thanks I'm giving that a shot now

AFter the restoration the server kept saying it needed to be upgraded and wouldn't let me in so I guess it's go forward or bust right now.


RE: Fresh reinstall but can't connect to server - caedus - 2025-01-21

Does Jellyfin force upgrades after a while? I've never seen it do that before. The last time I upgraded I had some issues too and I can't remember how I fixed them.


RE: Fresh reinstall but can't connect to server - caedus - 2025-01-21

You're a genius. Thank you so much.


RE: Fresh reinstall but can't connect to server - TheDreadPirate - 2025-01-21

Jellyfin, itself, doesn't force upgrades. But apt will see there is a newer version in our repo and install the new update.

If something is blocking the upgrade, such as your situation, the upgrade will fail.

The issue is not related to jellyfin, but it is a quirk of how apt works. The "jellyfin" package contains jellyfin-server and jellyfin-web with jellyfin-ffmpeg as a dependency. So, in a way, jellyfin-ffmpeg is separate from "jellyfin".

When you upgrade "jellyfin" it sees that "jellyfin" now wants jellyfin-ffmpeg7, but you already have jellyfin-ffmpeg6 (or maybe 5) installed. Because jellyfin-ffmpeg is separate from "jellyfin", it won't upgrade either automatically due to this conflict in versions.

So we have to manually resolve the conflict.


RE: Fresh reinstall but can't connect to server - caedus - 2025-01-21

Gotcha. Thank you. I was just confused cause when I tried to log in to the server it said it needed to update but looking over the changelog I am guessing what happened was that jellyfin-ffmpeg didn't upgrade as you said and the jellyfin server shut itself down because it saw that it didn't have the required dependency anymore. Don't know for sure that's what happened but I am guessing that occurred.

Thanks for your help again! I will remember to do that in the future.