Jellyfin Forum
Jellyfin upgrade issue - 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: Jellyfin upgrade issue (/t-jellyfin-upgrade-issue)



Jellyfin upgrade issue - Abhishek Ranjan - 2024-11-17

Hi folks,
I keep running into this issue every time jellyfin does a new release.
My jellyfin is setup as a lxc using proxmox helper scripts.

Code:
root@jellyfin:~# sudo apt upgrade jellyfin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jellyfin is already the newest version (10.10.2+deb12).
Calculating upgrade... Done
The following packages will be upgraded:
  jellyfin-server
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
29 not fully installed or removed.
Need to get 0 B/46.8 MB of archives.
After this operation, 22.5 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
(Reading database ... 24588 files and directories currently installed.)
Preparing to unpack .../jellyfin-server_10.10.2+deb12_amd64.deb ...
Stopping Jellyfin!
mv: cannot move '/var/lib/jellyfin/config' to '/etc/jellyfin/config': Directory not empty
dpkg: error processing archive /var/cache/apt/archives/jellyfin-server_10.10.2+deb12_amd64.deb (--unpack):
new jellyfin-server package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/jellyfin-server_10.10.2+deb12_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've been solving it so far by backing up my config directory, deleting it and then restoring the files after the upgrade.
Is there a better way to do the upgrades ?


RE: Jellyfin upgrade issue - TheDreadPirate - 2024-11-17

/var/lib/jellyfin/config and /etc/jellyfin/config aren't part of the standard Jellyfin directory structure. I am assuming they are not owned by Jellyfin. Regardless, they should not be present in either directory.


RE: Jellyfin upgrade issue - Oddstr13 - 2024-11-17

It would be this block of code, presumably part of an old migration?
https://github.com/jellyfin/jellyfin-packaging/blame/878d8e1d7f701393331cb5097fe93c8bbcb921bf/debian/jellyfin-server.preinst#L57-L60


sudo mv /var/lib/jellyfin/config{,~old} should be safe, and fix the issue. (moves config to config~old)


RE: Jellyfin upgrade issue - Pollo - 2024-11-18

I'm not sure if this is an issue or not, but after upgrading the web and build versions are still 10.10.1.

Right as I was typing this I ran the "jellyfin --service" command and it seemed to fix the issue. I'm not sure if this method is recommended, but this might be a 1 in a million situation for all I know.