Unable to update docker image to 1.143.1_1.10 #7344

Closed
opened 2026-02-05 12:57:48 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @jsmithgmail on GitHub (Sep 26, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

I need some guidance, when attempting to update the docker image to the latest, I receive this error. How do I migrate to the new storage config? I didnt see any guidance in the release notes.

Thank you.

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 627, 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 624, 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 'remove_old_storage_migration' migration: Traceback (most recent call last):
File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 26, in
print(yaml.dump(migrate(yaml.safe_load(f.read()))))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 10, in migrate
raise Exception(
Exception: Cannot remove old storage config while it is still in use. Please migrate to the new storage config first before upgrading.

The OS that Immich Server is running on

TrueNas

Version of Immich Server

Latest

Version of Immich Mobile App

Latest

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

Using community version of Immich

Your .env content

Using community version of Immich

Reproduction steps

  1. Attempt to download latest version of Immich
  2. Error is generated re storage config2.

...

Relevant log output

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 627, 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 624, 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 'remove_old_storage_migration' migration: Traceback (most recent call last):
  File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 26, in <module>
    print(yaml.dump(migrate(yaml.safe_load(f.read()))))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 10, in migrate
    raise Exception(
Exception: Cannot remove old storage config while it is still in use. Please migrate to the new storage config first before upgrading.

Additional information

No response

Originally created by @jsmithgmail on GitHub (Sep 26, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [ ] Yes ### The bug I need some guidance, when attempting to update the docker image to the latest, I receive this error. How do I migrate to the new storage config? I didnt see any guidance in the release notes. Thank you. 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 627, 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 624, 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 'remove_old_storage_migration' migration: Traceback (most recent call last): File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 26, in <module> print(yaml.dump(migrate(yaml.safe_load(f.read())))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 10, in migrate raise Exception( Exception: Cannot remove old storage config while it is still in use. Please migrate to the new storage config first before upgrading. ### The OS that Immich Server is running on TrueNas ### Version of Immich Server Latest ### Version of Immich Mobile App Latest ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Device make and model _No response_ ### Your docker-compose.yml content ```YAML Using community version of Immich ``` ### Your .env content ```Shell Using community version of Immich ``` ### Reproduction steps 1. Attempt to download latest version of Immich 2. Error is generated re storage config2. 3. ... ### Relevant log output ```shell 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 627, 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 624, 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 'remove_old_storage_migration' migration: Traceback (most recent call last): File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 26, in <module> print(yaml.dump(migrate(yaml.safe_load(f.read())))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/mnt/.ix-apps/app_configs/immich/versions/1.10.1/migrations/remove_old_storage_migration", line 10, in migrate raise Exception( Exception: Cannot remove old storage config while it is still in use. Please migrate to the new storage config first before upgrading. ``` ### Additional information _No response_
Author
Owner

@github-actions[bot] commented on GitHub (Sep 26, 2025):

This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.

@github-actions[bot] commented on GitHub (Sep 26, 2025): This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.
Author
Owner

@danieldietzler commented on GitHub (Sep 26, 2025):

This is also not an Immich issue but rather an issue with the truenas app. I'd ask in their channels (or hop on our discord and hope that there's a truenas person who can help you :))

@danieldietzler commented on GitHub (Sep 26, 2025): This is also not an Immich issue but rather an issue with the truenas app. I'd ask in their channels (or hop on our discord and hope that there's a truenas person who can help you :))
Author
Owner

@jsmithgmail commented on GitHub (Sep 26, 2025):

Thank you. The Immich Trunas docs were helpful. After following those steps, I successfully upgraded. You MUST rename video to encoded-video or Immich will not start.

@jsmithgmail commented on GitHub (Sep 26, 2025): Thank you. The [Immich Trunas docs](https://docs.immich.app/install/truenas/) were helpful. After following those steps, I successfully upgraded. You MUST rename video to encoded-video or Immich will not start.
Author
Owner

@JMLucas96 commented on GitHub (Oct 2, 2025):

After creating and rsync all datasets what is the next step? Upgrade immich version or edit datasets in TrueNas Immich config?
We need to do step 5 before or after upgrade immich version?

  1. Update the Immich app to use the new dataset:
    Go to the Installed Applications screen and select Immich from the list of installed applications.
    Click Edit on the Application Info widget.
    In the Storage Configuration section, untick the Use Old Storage Configuration (Deprecated) checkbox.
    For the Data Storage, select Host Path (Path that already exists on the system) and then select the new dataset you created for Immich data storage, for example, data.
    For the Postgres Data Storage, verify that it is still set to the dataset you created for Postgres data storage, for example, pgData.
    Click Update at the bottom of the page to save changes.
@JMLucas96 commented on GitHub (Oct 2, 2025): After creating and rsync all datasets what is the next step? Upgrade immich version or edit datasets in TrueNas Immich config? We need to do step 5 before or after upgrade immich version? > 5. Update the Immich app to use the new dataset: > Go to the Installed Applications screen and select Immich from the list of installed applications. > Click Edit on the Application Info widget. > In the Storage Configuration section, untick the Use Old Storage Configuration (Deprecated) checkbox. > For the Data Storage, select Host Path (Path that already exists on the system) and then select the new dataset you created for Immich data storage, for example, data. > For the Postgres Data Storage, verify that it is still set to the dataset you created for Postgres data storage, for example, pgData. > Click Update at the bottom of the page to save changes.
Author
Owner

@olegk25 commented on GitHub (Oct 3, 2025):

Hello, trying to follow the steps in the docs - but it does not help. First of all, the "use old storage" option (as per the guide) it not there - seems to be deprecated, but the upgrade script is still looking for something related.

Trying to upgrade v1.131.3_1.7.38 to v2.0.0_1.10.4. The manual storage migration has been done, immich is running on the new dataset structure as per the docs.

it looks like the only option left is to reinstall completely? Will it preserve the configurations in existing folders then?

@olegk25 commented on GitHub (Oct 3, 2025): Hello, trying to follow the steps in the docs - but it does not help. First of all, the "use old storage" option (as per the guide) it not there - seems to be deprecated, but the upgrade script is still looking for something related. Trying to upgrade v1.131.3_1.7.38 to v2.0.0_1.10.4. The manual storage migration has been done, immich is running on the new dataset structure as per the docs. it looks like the only option left is to reinstall completely? Will it preserve the configurations in existing folders then?
Author
Owner

@JMLucas96 commented on GitHub (Oct 4, 2025):

Hi, I followed the steps from v1.141.1 and working well. @olegk25 do a backup and try it

@JMLucas96 commented on GitHub (Oct 4, 2025): Hi, I followed the steps from v1.141.1 and working well. @olegk25 do a backup and try it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7344