App Upgrade not possible - FileNotFoundError

Hi Forum,

just wanted to upgrade my Apps ( Container ) but hitting the issue for all of my app which is odd.

Example: Jellyfin

Application Info

App Version:10.10.6
Version:1.1.21
Train:community

Update for Version 1.1.22 is listed

 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 509, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 556, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *args)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1367, 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 1364, 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/schema/processor.py", line 183, in nf
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 55, in nf
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/upgrade.py", line 72, in upgrade
    with upgrade_config(app_name, upgrade_version):
  File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/ix_apps/upgrade.py", line 12, in upgrade_config
    shutil.copytree(upgrade_version['location'], version_path)
  File "/usr/lib/python3.11/shutil.py", line 571, in copytree
    with os.scandir(src) as itr:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/.ix-apps/truenas_catalog/trains/community/jellyfin/1.1.22'

Now it failes to find the folder. Checking the parent dir it seems the version did increase to 1.1.23 !?

truenas_admin@truenas[…nas_catalog/trains/community/jellyfin]$ ll
total 19
drwxr-xr-x 3 root 5 Apr 9 16:57 ./
drwxr-xr-x 161 root 161 Apr 8 16:57 …/
drwxr-xr-x 4 root 8 Apr 9 16:57 1.1.23/
-rw-r–r-- 1 root 76016 Apr 9 16:57 app_versions.json
-rw-r–r-- 1 root 315 Jan 21 10:10 item.yaml

So is the upgrade script broken not updated that there is a even newer version or something wrong in the backend downloading the incorret version?

There was an issue with the app metadata yesterday that was corrected. Try clicking Refresh Catalog on the Apps > Discover screen and then try upgrading the apps again.

1 Like