Failed to update Jellyfin from 10.10.7_1.1.24 to 10.10.7_1.2.0

[EFAULT] Failed to execute 'ip_port_migration' migration: Traceback (most recent call last): File "/mnt/.ix-apps/app_configs/jellyfin/versions/1.2.0/migrations/ip_port_migration", line 30, in print(yaml.dump(migrate(yaml.safe_load(f.read())))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/.ix-apps/app_configs/jellyfin/versions/1.2.0/migrations/ip_port_migration", line 16, in migrate "bind_mode": "published" if values["network"]["enable_https"] else "", ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ KeyError: 'enable_https' 

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 622, in run_in_thread
    return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 619, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py", line 101, in wrapped
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/upgrade.py", line 121, in upgrade
    config = self.upgrade_values(app, upgrade_version)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/upgrade.py", line 279, in upgrade_values
    raise CallError(f'Failed to execute {migration_file_basename!r} migration: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to execute 'ip_port_migration' migration: Traceback (most recent call last):
  File "/mnt/.ix-apps/app_configs/jellyfin/versions/1.2.0/migrations/ip_port_migration", line 30, in <module>
    print(yaml.dump(migrate(yaml.safe_load(f.read()))))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/.ix-apps/app_configs/jellyfin/versions/1.2.0/migrations/ip_port_migration", line 16, in migrate
    "bind_mode": "published" if values["network"]["enable_https"] else "",
                                ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'enable_https'

same!

This is why you shouldn’t use the community apps: the maintainers are always breaking things. Just install it directly from the source, or from linuxserver.io, using docker-compose, and you won’t have to deal with this stuff. Just install Dockge and then install Jellyfin with docker-compose.

Same.

I noticed the file it’s trying to read, does not exist. The whole ‘1.2.0’ directory is not present.

$ ls /mnt/.ix-apps/app_configs/jellyfin/versions                  
1.1.21  1.1.22  1.1.24

I didn’t spot this thread so unfortunately I posted separately Jellyfin won't update ("the port is in use"), other apps were OK

Fix incoming here

Valid, but the bug is still worth reporting!

I encountered the same issue with my jellyfin instance too, I tried a version rollback to 1.1.23 but that didn’t help either, I hope this can get rectified soon.