Jellyfin upgrade fails from an older version's duplicate plugin

My YunoHost server

Hardware: HP Chromebook (Bay Trail Celeron)
YunoHost version: 11.2.27
I have access to my server : through hardware, but I massively prefer ssh
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: Jellyfin 10.9.7 → 10.9.9

Description of my issue

I was attempting to update Jellyfin as part of routine maintenance. A stray plugin from a previous version that I attempted to reinstall (Intro Skipper) was detected by the upgrade script, which then attempted to move it to a backup folder. The plugin was already in the backup folder from a previous update, so the move failed. (logs are here)

The move failing means the upgrade failed, so yunohost attempts to restore the backup. But then apparently the older version requires a ffmpeg version not on their repo anymore which caused the app to just uninstall itself. (logs are also here)

… and now I’m screwed?

Is there a way to properly restore with all my config attached?

Okay, I decided to poke around and found how to solve the issue myself. For posterity:

  • Download the pre-upgrade backup from yunohost
  • Also download a zip of the latest jellyfin_ynh package off github
  • From the newer package, extract the following files and folders into the backup’s apps/jellyfin/settings directory, overwriting them: conf, doc, scripts, manifest.toml. DO NOT delete the other two yml files in that folder as restore will fail without them.
  • Maybe also take the time to delete the plugin that caused you to be in the situation in the first place. (Look in apps/jellyfin/backup/var/lib/jellyfin/plugins)
  • (Not sure if optional, but just in case) Edit the info.json in the archive root so that the version matches the package you downloaded (for me it was 10.9.9~ynh2)
  • Upload the modified backup to your yunohost instance (I used scp) and restore it. After a bit of a wait Jellyfin should be back with the newer version.

Don’t know how this will go with larger version leaps, so if you’re going further than more than a couple minor versions YMMV.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.