Truenas user with update problems from old dataset

Hi, thank you for making Immich. We love using it, however have been bit by the upgrade issue with Truenas. I have followed this document for the update: https://main.preview.immich.app/docs/install/truenas/#updating-the-app However, I am still receiving the error Error: Invalid upgrade path. For more information, see https://immich.app/errors#typeorm-upgrade. I usually am pretty good at this stuff, but I've reached this wall a number of times now that I feel I need some assistance to move forward. Truenas sadly does not let us "pick a version between the range of 1.132.0 and 1.136.0" anymore, so I feel like I missed the boat on that migration opportunity big time. I copied the files from the old dataset to the new dataset, unticked the box, I believe the permissions are correct, and the data storage and postgres storage datasets should be set to the correct locations. /mnt/primary/apps/immich_data and /mnt/primary/apps/immich/postgres_data respectively. The first item is the new location where everything was copied to, and the second is the postgres data folder of the old dataset. I was not sure if I need to give the postgres a brand new fresh dataset -- it's possible this is part of the issue I'm having? I have attached the logs of the server component upon startup. I think they're too long to inline. I am happy to provide any other information necessary.
153 Replies
Immich
Immich4w ago
:wave: Hey @spectrum, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
spectrum
spectrumOP4w ago
version upgrade was from 1.7.25 (v1.125.7) to 1.9.24 (v1.141.1)
Immich
Immich4w ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
F4mouZSt4r
F4mouZSt4r4w ago
You did the Breaking Change for 1.13X.X ? Correct way is v1.125.7 -> v.1.13X.X -> 1.141.1 and whats your docker-compose.yml and .env file btw
spectrum
spectrumOP4w ago
I am trying to digest the breaking change link information; is the immich article I linked to not an accurate pathway from what I was trying to do? And since truenas doesn't give us access to a docker compose or env file, I believe I need to show you part of the user_config.yaml, if I understand correctly? I guess maybe I'm starting to regret having used the truenas apps and not rolling my own docker containers. but since my data is already there, I'm not sure what the best course of action should be I have no idea how to digest the github link for breaking changes for 1.13X.X. I feel lost in these posts
F4mouZSt4r
F4mouZSt4r4w ago
With a DB Backup you can technically still use Immich in a Docker Container and Restore all Files + DB. Am i right, @Mraedis ?
spectrum
spectrumOP4w ago
So I guess that article I used was not applicable to my situation? :sweat:
F4mouZSt4r
F4mouZSt4r4w ago
I know that the path has changed in V.1.13X.X. So without your docker-compose.yml and .env is "hard" to tell.
spectrum
spectrumOP4w ago
I'll grab the section of the user_config which I believe is like a docker compose file
immich:
TZ: America/New_York
immich:
additional_envs: []
db_password: redacted
db_storage_type: SSD
enable_ml: true
hugging_face_endpoint: ''
log_level: log
ml_image_selector: ml_image
redis_password: redacted
ix_certificate_authorities: {}
ix_certificates: {}
ix_context:
app_metadata:
annotations:
min_scale_version: 24.10.2.2
app_version: v1.141.1
capabilities: []
categories:
- media
changelog_url: https://github.com/immich-app/immich/releases
date_added: '2024-08-02'
description: Immich is a self-hosted photo and video backup solution directly
from your mobile phone.
home: https://immich.app
host_mounts: []
icon: https://media.sys.truenas.net/apps/immich/icons/icon.svg
keywords:
- photos
- backup
lib_version: 2.1.49
lib_version_hash: redacted
maintainers:
- email: dev@ixsystems.com
name: truenas
url: https://www.truenas.com/
name: immich
run_as_context:
- description: Immich runs as any non-root user.
gid: 568
group_name: immich
uid: 568
user_name: immich
- description: Postgres runs as non-root user.
gid: 999
group_name: postgres
uid: 999
user_name: postgres
- description: Redis runs as any non-root user.
gid: 568
group_name: redis
uid: 568
user_name: redis
screenshots: []
sources:
- https://immich.app
- https://github.com/immich-app/immich
title: Immich
train: community
version: 1.9.24
app_name: immich
is_install: false
is_rollback: false
is_update: true
is_upgrade: false
operation: UPDATE
upgrade_metadata: {}
ix_volumes: {}
labels: []
network:
web_port:
bind_mode: published
host_ips: []
port_number: 30041
release_name: immich
resources:
gpus:
nvidia_gpu_selection: {}
use_all_gpus: true
limits:
cpus: 2
memory: 4096
run_as:
group: 0
user: 0
storage:
additional_storage: []
data:
host_path_config:
acl_enable: false
path: /mnt/primary/apps/immich_data
type: host_path
ml_cache:
type: temporary
postgres_data:
host_path_config:
acl_enable: false
auto_permissions: false
path: /mnt/primary/apps/immich/postgres_data
type: host_path
use_old_storage_config: false
immich:
TZ: America/New_York
immich:
additional_envs: []
db_password: redacted
db_storage_type: SSD
enable_ml: true
hugging_face_endpoint: ''
log_level: log
ml_image_selector: ml_image
redis_password: redacted
ix_certificate_authorities: {}
ix_certificates: {}
ix_context:
app_metadata:
annotations:
min_scale_version: 24.10.2.2
app_version: v1.141.1
capabilities: []
categories:
- media
changelog_url: https://github.com/immich-app/immich/releases
date_added: '2024-08-02'
description: Immich is a self-hosted photo and video backup solution directly
from your mobile phone.
home: https://immich.app
host_mounts: []
icon: https://media.sys.truenas.net/apps/immich/icons/icon.svg
keywords:
- photos
- backup
lib_version: 2.1.49
lib_version_hash: redacted
maintainers:
- email: dev@ixsystems.com
name: truenas
url: https://www.truenas.com/
name: immich
run_as_context:
- description: Immich runs as any non-root user.
gid: 568
group_name: immich
uid: 568
user_name: immich
- description: Postgres runs as non-root user.
gid: 999
group_name: postgres
uid: 999
user_name: postgres
- description: Redis runs as any non-root user.
gid: 568
group_name: redis
uid: 568
user_name: redis
screenshots: []
sources:
- https://immich.app
- https://github.com/immich-app/immich
title: Immich
train: community
version: 1.9.24
app_name: immich
is_install: false
is_rollback: false
is_update: true
is_upgrade: false
operation: UPDATE
upgrade_metadata: {}
ix_volumes: {}
labels: []
network:
web_port:
bind_mode: published
host_ips: []
port_number: 30041
release_name: immich
resources:
gpus:
nvidia_gpu_selection: {}
use_all_gpus: true
limits:
cpus: 2
memory: 4096
run_as:
group: 0
user: 0
storage:
additional_storage: []
data:
host_path_config:
acl_enable: false
path: /mnt/primary/apps/immich_data
type: host_path
ml_cache:
type: temporary
postgres_data:
host_path_config:
acl_enable: false
auto_permissions: false
path: /mnt/primary/apps/immich/postgres_data
type: host_path
use_old_storage_config: false
my understanding is that this is like a "rendered" docker compose with env applied to the variable spots, so it should technically contain what is needed
F4mouZSt4r
F4mouZSt4r4w ago
Looks like a kinda old docker-compose.yml but tbh, never used TrueNAS Apps, so not 100% sure.
Mraedis
Mraedis4w ago
You need at least one version between 133 and 136 for safe upgrades truenas has a whole different issue There's about a gazillion topics about it
F4mouZSt4r
F4mouZSt4r4w ago
Truenas sadly does not let us "pick a version between the range of 1.132.0 and 1.136.0" anymore, so I feel like I missed the boat on that migration opportunity big time.
Mraedis
Mraedis4w ago
I suggest you search the help desk for truenas with path issues, as it's literally what I would do
Immich
Immich4w ago
[Discussion] v1.137.0 (immich-app/immich#20481)
spectrum
spectrumOP4w ago
Perhaps it's worth me investing in moving this off to a direct docker setup. I can control the versions that way. However by trying to update via truenas, did that do a partial migration or anything like that? Am I good to do that you think?
Mraedis
Mraedis4w ago
There's loads of topics in here that @Xiticks answered with your exact question, @spectrum if you search for his messages you'll find guides 🙂
Xiticks
Xiticks4w ago
If you still stuggle I could help You can convert a TrueNAS app to a composé and then change the version there Or directly use a custom compose and point the mountpoins to the correct datasets
spectrum
spectrumOP4w ago
Thanks I'll give it a try My mistake was trying to update before my vacation, thinking I was getting only security updates.
Xiticks
Xiticks4w ago
Yes, it is recommended to frequently check your apps for updates (at least once a month) I already guided multiple people to convert to a custom app and then update manually Afterwards you could reinstall from the catalog, or keep using the custom app If you need help lmk
spectrum
spectrumOP4w ago
if there's a fast track, that would be immensely helpful. I honestly did this to myself with the timeline though, as we leave in like four hours -- so if we can't get it to work, it is on me and i take that accountability
Xiticks
Xiticks4w ago
Are you on the latest version of TrueNAS (or at least FangTooth?)
spectrum
spectrumOP4w ago
ElectricEel-24.10.2.2 so, I guess not
Xiticks
Xiticks4w ago
Aarrff So the custom button doesn't exist I think On your Immich app, is there a 3dots menu next to edit?
spectrum
spectrumOP4w ago
I have a portainer install, if that helps
Xiticks
Xiticks4w ago
If that is the case when you click on it, is there "convert to custom app"
spectrum
spectrumOP4w ago
for custom docker composes I don't believe I have the conversion ability in truenas
Xiticks
Xiticks4w ago
Yeah, but the objective here would be to convert Immich to a custom compose, so it's "easier"
spectrum
spectrumOP4w ago
ah I see okay
Xiticks
Xiticks4w ago
Check, as it is present in Fangtooth Otherwerwise you could try to firt upgrade to fangtooth
spectrum
spectrumOP4w ago
No description
spectrum
spectrumOP4w ago
doesnt seem like three dots
Xiticks
Xiticks4w ago
Yeah, well so it is present in Fangtooth
spectrum
spectrumOP4w ago
I do not know what the risks are of updating the OS at this time and am worried that is a riskier path with the time I have left
Xiticks
Xiticks4w ago
Do you have any VMs?
spectrum
spectrumOP4w ago
no vms
Xiticks
Xiticks4w ago
Well I can't guarantee that it will work 100%, but I never had any issue upgrading (and you can still rollback, as long as you don't update your zfs pools) I would give it a shot, it should be relatively fast anyway
spectrum
spectrumOP4w ago
I'm giving it a shot, wish me luck.
spectrum
spectrumOP4w ago
No description
Xiticks
Xiticks4w ago
Yes!
spectrum
spectrumOP4w ago
I'm assuming next we go with the conversion
Xiticks
Xiticks4w ago
Yes, there you'll be able to change the version used But as there have been changes in 1.137, you might have to do multiple changes, not only version
spectrum
spectrumOP4w ago
okay that's alright Also just to make sure to communicate clearly, I did already try to move many of the folders to separate the immich data from the postgres data some form of:
rsync -av /mnt/primary/apps/immich/library/ /mnt/primary/apps/immich_data/library/
rsync -av /mnt/primary/apps/immich/uploads/ /mnt/primary/apps/immich_data/uploads/
rsync -av /mnt/primary/apps/immich/thumbs/ /mnt/primary/apps/immich_data/thumbs/
rsync -av /mnt/primary/apps/immich/profile/ /mnt/primary/apps/immich_data/profile/
rsync -av /mnt/primary/apps/immich/video/ /mnt/primary/apps/immich_data/encoded-video/
rsync -av /mnt/primary/apps/immich/backups/ /mnt/primary/apps/immich_data/backups/
rsync -av /mnt/primary/apps/immich/library/ /mnt/primary/apps/immich_data/library/
rsync -av /mnt/primary/apps/immich/uploads/ /mnt/primary/apps/immich_data/uploads/
rsync -av /mnt/primary/apps/immich/thumbs/ /mnt/primary/apps/immich_data/thumbs/
rsync -av /mnt/primary/apps/immich/profile/ /mnt/primary/apps/immich_data/profile/
rsync -av /mnt/primary/apps/immich/video/ /mnt/primary/apps/immich_data/encoded-video/
rsync -av /mnt/primary/apps/immich/backups/ /mnt/primary/apps/immich_data/backups/
postgres_data is still in the /mnt/primary/apps/immich/postgres_data spot
Xiticks
Xiticks4w ago
and dit you already change that in the config? (before converting to custom I meant)
spectrum
spectrumOP4w ago
yes before the conversion, I had already done * "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. (referencing: https://main.preview.immich.app/docs/install/truenas/#updating-the-app ) immich is now converted I can share the current "custom config" (I have redacted all passwords)
Xiticks
Xiticks4w ago
Yeah, share it, it could help
Xiticks
Xiticks4w ago
You could try at lines 396 and 165 to replace v1.141.1 by v1.136.0 (I hope this works, otherwise we will have to go back more in the versions) Do you remember which version were you on before?
spectrum
spectrumOP4w ago
v1.125.7
Xiticks
Xiticks4w ago
ok, so it should be fine
spectrum
spectrumOP4w ago
okay im gonna change those lines to 136 [EFAULT] Failed 'up' action for 'immich' app. Please check /var/log/app_lifecycle.log for more details
Error: 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/service/crud_service.py", line 294, in nf
rv = func(*args, **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/crud.py", line 229, in do_update
app = self.update_internal(job, app, data, trigger_compose=app['state'] != 'STOPPED')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 267, in update_internal
compose_action(app_name, app['version'], 'up', force_recreate=True, remove_orphans=True)
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/compose_utils.py", line 61, in compose_action
raise CallError(err_msg)
middlewared.service_exception.CallError: [EFAULT] Failed 'up' action for 'immich' app. Please check /var/log/app_lifecycle.log for more details
Error: 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/service/crud_service.py", line 294, in nf
rv = func(*args, **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/crud.py", line 229, in do_update
app = self.update_internal(job, app, data, trigger_compose=app['state'] != 'STOPPED')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/crud.py", line 267, in update_internal
compose_action(app_name, app['version'], 'up', force_recreate=True, remove_orphans=True)
File "/usr/lib/python3/dist-packages/middlewared/plugins/apps/compose_utils.py", line 61, in compose_action
raise CallError(err_msg)
middlewared.service_exception.CallError: [EFAULT] Failed 'up' action for 'immich' app. Please check /var/log/app_lifecycle.log for more details
(result of saving)
Xiticks
Xiticks4w ago
sudo tail /var/log/app_cycle.log in your truenas terminal
spectrum
spectrumOP4w ago
of the host machine?
Xiticks
Xiticks4w ago
yes the shell
spectrum
spectrumOP4w ago
root@truenas[/home/truenas_admin]# tail /var/log/app_lifecycle.log
[2025/09/10 09:13:00] (ERROR) app_lifecycle.compose_action():56 - Failed 'up' action for 'immich' app: machine-learning Pulling \n server Pulling \n machine-learning Error manifest unknown\n server Error context canceled\nError response from daemon: manifest unknown\n
root@truenas[/home/truenas_admin]# tail /var/log/app_lifecycle.log
[2025/09/10 09:13:00] (ERROR) app_lifecycle.compose_action():56 - Failed 'up' action for 'immich' app: machine-learning Pulling \n server Pulling \n machine-learning Error manifest unknown\n server Error context canceled\nError response from daemon: manifest unknown\n
that's all thats in there :spectr239Think: but just the machine learning one
Xiticks
Xiticks4w ago
what did you replace the version with ?
spectrum
spectrumOP4w ago
L 165 is:
image: ghcr.io/immich-app/immich-machine-learning:v1.136.1
image: ghcr.io/immich-app/immich-machine-learning:v1.136.1
ah the .1 thats on me sorry
Xiticks
Xiticks4w ago
try with .0 on both maybe
spectrum
spectrumOP4w ago
yeah that lets me move forward; sorry about that
Xiticks
Xiticks4w ago
np
spectrum
spectrumOP4w ago
okay so it saved, and is stopped. i will start the app so it can run the migrations (hopefully) do we expect this to "work"? or does it still also need the update to 1.141.1 in order to function?
Xiticks
Xiticks4w ago
well it should work but once it is, you should/could upgrade again to 141
spectrum
spectrumOP4w ago
immich.server exited on boot
spectrum
spectrumOP4w ago
container logs, something about primary keys
Xiticks
Xiticks4w ago
MMMhhh Good thing is that the migration started Keep the container running But "bad thing" is that I don't exatcly know what it is/how to fix it
spectrum
spectrumOP4w ago
okay. it seems like the server container is boot looping ill leave it alone for now
Xiticks
Xiticks4w ago
spectrum
spectrumOP4w ago
"alternatively first upgrade to 1.132.3" sounds like the ideal case to avoid manually running sql shall we try that?
Xiticks
Xiticks4w ago
Yep I hope the rest stays "fine"
spectrum
spectrumOP4w ago
:spectr239Plead: okay wait this looks MORE promising it's failing on boot BUT the error seems more obvious
2025-09-10 13:25:06.217477+00:00[Nest] 16 - 09/10/2025, 9:25:06 AM  ERROR [Api:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
2025-09-10 13:25:06.217477+00:00[Nest] 16 - 09/10/2025, 9:25:06 AM  ERROR [Api:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
part of the article above focused on was ensuring there was an uploads folder
Xiticks
Xiticks4w ago
Oooh well
spectrum
spectrumOP4w ago
but I previously had an upload (no s) folder for whatever reason
Xiticks
Xiticks4w ago
Yeah that's a change in 1.136
spectrum
spectrumOP4w ago
so I could rsync uploads back to upload
Xiticks
Xiticks4w ago
no no In your compose, keep 1.132 version, but change lines 416 and 345 replace the /data by /usr/src/app/upload
spectrum
spectrumOP4w ago
target: /usr/src/app/upload ok those the only 2 changes?
Xiticks
Xiticks4w ago
yes
spectrum
spectrumOP4w ago
2025-09-10 13:30:43.234959+00:00[Nest] 16 - 09/10/2025, 9:30:43 AM  ERROR [Api:StorageService] Failed to read upload/upload/.immich: Error: ENOENT: no such file or directory, open 'upload/upload/.immich'
2025-09-10 13:30:43.234959+00:00[Nest] 16 - 09/10/2025, 9:30:43 AM  ERROR [Api:StorageService] Failed to read upload/upload/.immich: Error: ENOENT: no such file or directory, open 'upload/upload/.immich'
maybe it needed to be /usr/src/app (one less upload?)
Xiticks
Xiticks4w ago
No, it should be correct (yes it's strange, that is why it has been changed Here can you, from truenas shell do ls -la /mnt/primary/apps/immich_data/uploads/
spectrum
spectrumOP4w ago
root@truenas[/mnt/primary/apps]# ls -la /mnt/primary/apps/immich_data/uploads
total 35
drwxrwx--- 4 root root 5 Feb 4 2025 .
drwxrwx--- 8 root root 8 Sep 9 16:25 ..
-rwxrwx--- 1 root root 13 Jun 29 06:01 .immich
drwxrwx--- 258 root root 258 Feb 4 2025 5c26bbf3-4532-4135-a685-23bfea8a9a96
drwxrwx--- 258 root root 258 Feb 4 2025 60a626bb-44bb-4b8d-9cb6-03d636e0e265
root@truenas[/mnt/primary/apps]# ls -la /mnt/primary/apps/immich_data/uploads
total 35
drwxrwx--- 4 root root 5 Feb 4 2025 .
drwxrwx--- 8 root root 8 Sep 9 16:25 ..
-rwxrwx--- 1 root root 13 Jun 29 06:01 .immich
drwxrwx--- 258 root root 258 Feb 4 2025 5c26bbf3-4532-4135-a685-23bfea8a9a96
drwxrwx--- 258 root root 258 Feb 4 2025 60a626bb-44bb-4b8d-9cb6-03d636e0e265
Xiticks
Xiticks4w ago
So the file exists and inside immich container? Could you do ls well, first do cd upload
spectrum
spectrumOP4w ago
im a little lost, trying to figure this out singular upload no s? okay I see, inside the container -- might be a little hard because it shuts itself down
spectrum
spectrumOP4w ago
No description
Xiticks
Xiticks4w ago
Oh that is the issue
spectrum
spectrumOP4w ago
it appears to be hitting that failure point, shutting down, and then trying to restart itself
Xiticks
Xiticks4w ago
yeah no problem 2 sec, Im' just checking smth your rsync command is wrong /mnt/primary/apps/immich_data/uploads/ should have been upload without the S so within truenas shell again, you can do sudo mv /mnt/primary/apps/immich_data/uploads /mnt/primary/apps/immich_data/upload
spectrum
spectrumOP4w ago
ooooo re-reading the article i dont see the S either. now I can't remember what happened to make me want to do that immich is up! :yay:
Xiticks
Xiticks4w ago
On an old version xD So now we (you) can update
spectrum
spectrumOP4w ago
i will take this progress gratefully lol
Xiticks
Xiticks4w ago
yeah that's better than not working Did the migration finished?
spectrum
spectrumOP4w ago
I'm not 100% certain how to verify that, the logs have way more in it now, and I was able to actually view the site/app
Xiticks
Xiticks4w ago
Share the logs so I can verify
spectrum
spectrumOP4w ago
this is everything in there
Xiticks
Xiticks4w ago
Oh yeah, it looks fine So now, go back to /data instead of the usr and change version to 136
spectrum
spectrumOP4w ago
L 345, 416
target: /data
target: /data
L 165, 396
v1.136.0
v1.136.0
just verifying
Xiticks
Xiticks4w ago
yep And after that, once Immich starts and works you can change the version again to the latest (I believe 1.141.1)
spectrum
spectrumOP4w ago
error on startup
2025-09-10 13:49:23.773909+00:00[Nest] 17 - 09/10/2025, 9:49:23 AM  ERROR [Api:StorageService] Failed to read (/usr/src/app/upload/encoded-video/.immich): Error: ENOENT: no such file or directory, open '/usr/src/app/upload/encoded-video/.immich'
2025-09-10 13:49:23.791414+00:00api worker exited with code 1
2025-09-10 13:49:23.773909+00:00[Nest] 17 - 09/10/2025, 9:49:23 AM  ERROR [Api:StorageService] Failed to read (/usr/src/app/upload/encoded-video/.immich): Error: ENOENT: no such file or directory, open '/usr/src/app/upload/encoded-video/.immich'
2025-09-10 13:49:23.791414+00:00api worker exited with code 1
Xiticks
Xiticks4w ago
Mmmh might be a non issue
spectrum
spectrumOP4w ago
it is reboot looping
Xiticks
Xiticks4w ago
can you do that again but replace with encoded-video instead of upload?
spectrum
spectrumOP4w ago
root@truenas[/mnt/primary/apps/immich_data]# ls -la encoded-video
total 35
drwxrwx--- 4 root root 5 Feb 4 2025 .
drwxrwx--- 8 root root 8 Sep 10 09:41 ..
-rwxrwx--- 1 root root 13 Sep 10 09:42 .immich
drwxrwx--- 215 root root 215 Sep 4 08:42 5c26bbf3-4532-4135-a685-23bfea8a9a96
drwxrwx--- 258 root root 258 Feb 5 2025 60a626bb-44bb-4b8d-9cb6-03d636e0e265
root@truenas[/mnt/primary/apps/immich_data]#
root@truenas[/mnt/primary/apps/immich_data]# ls -la encoded-video
total 35
drwxrwx--- 4 root root 5 Feb 4 2025 .
drwxrwx--- 8 root root 8 Sep 10 09:41 ..
-rwxrwx--- 1 root root 13 Sep 10 09:42 .immich
drwxrwx--- 215 root root 215 Sep 4 08:42 5c26bbf3-4532-4135-a685-23bfea8a9a96
drwxrwx--- 258 root root 258 Feb 5 2025 60a626bb-44bb-4b8d-9cb6-03d636e0e265
root@truenas[/mnt/primary/apps/immich_data]#
Xiticks
Xiticks4w ago
did you replace it in both lines to /data?
spectrum
spectrumOP4w ago
going to re-confirm yes
target: /data
target: /data
both lines
Xiticks
Xiticks4w ago
And it keeps boot looping? you can't access the immich terminal for x minutes?
spectrum
spectrumOP4w ago
correct, it is currently in the exited state i guess the fact that it's inside of the upload folder is an artifact of before when we had two layers of upload
Xiticks
Xiticks4w ago
yeah On the Immich side you can for create the docker, but wait
spectrum
spectrumOP4w ago
I will wait; just need to take a short 5 min break to help my partner get ready (multi tasking this between last minute packing lol)
Xiticks
Xiticks4w ago
Remove the healthcheck (line 389 to 395) and no problem
spectrum
spectrumOP4w ago
okay going to remove (comment out?) the healthcheck
Xiticks
Xiticks4w ago
comment yes This way you can enable it back afterwards But it should stop the bootlooping (I suppose)
spectrum
spectrumOP4w ago
it's not looping, but server is exited I imagine that the goal is that we are able to inspect inside the container
Xiticks
Xiticks4w ago
exactly but you can't? :/
spectrum
spectrumOP4w ago
shell wont open for an exited container sadly idk why it exited still i would have expected it to remain open with the failed state
Xiticks
Xiticks4w ago
Me too 😄 Could you maybe try to enable back the healtchckec and change version to the latest? I' can't remebmer exactly, but it might have been a change that avoided this falure (Immich will probably still complain but that is fixable
spectrum
spectrumOP4w ago
the health check is gone, oddly enough ... i would not have expected the comment out to result in a deletion
Xiticks
Xiticks4w ago
It should not either -_-
spectrum
spectrumOP4w ago
thinking that commenting out would just stay there, i did not save a copy of the healthcheck lines
Xiticks
Xiticks4w ago
you shared the whole file without the passwords
spectrum
spectrumOP4w ago
ah right ty
Xiticks
Xiticks4w ago
You can reuse that
spectrum
spectrumOP4w ago
got it, ty and then bring version up after that right to... v1.141.0 ?
Xiticks
Xiticks4w ago
dicretly 1.141.1 v1.141.1
spectrum
spectrumOP4w ago
okay
Xiticks
Xiticks4w ago
as 1.141.0 doesn't exist, and the breaking change from 136/137 can be done in 141 if it boots
spectrum
spectrumOP4w ago
letting it rip immich is functioning in the web app
Xiticks
Xiticks4w ago
ok nice, but check the logs Your photos might not load?
spectrum
spectrumOP4w ago
photos are viewable; logs show:
Xiticks
Xiticks4w ago
So it already migrated the path ? Mmmh
spectrum
spectrumOP4w ago
:sweat: is that a good thing? lol
Xiticks
Xiticks4w ago
Hum yes, but I would still run the command to be certain
spectrum
spectrumOP4w ago
what command shall we run?
Xiticks
Xiticks4w ago
spectrum
spectrumOP4w ago
No description
Xiticks
Xiticks4w ago
Yes
spectrum
spectrumOP4w ago
No description
Xiticks
Xiticks4w ago
Ok, that is done now! Immich is working
spectrum
spectrumOP4w ago
do I need to follow the volume mount/etc instructions?
Xiticks
Xiticks4w ago
No
spectrum
spectrumOP4w ago
okay just restarting it after that change JUST to make sure
Xiticks
Xiticks4w ago
Now you can either keep this custom app, or "reinstall" immich from the catalog so you can update it with a simple button I would also to that haha
spectrum
spectrumOP4w ago
i think im keeping this as custom from now on if i cant trust the simple update button to not break a thing, it is not a simple update button hehe (i think that is more on truenas's side)
Xiticks
Xiticks4w ago
It is simple and generally doesn't break stuff if you do it frequently and that is on TrueNAS side
spectrum
spectrumOP4w ago
I admittedly did not do it often enough; life got in the way etc
Xiticks
Xiticks4w ago
Immich isn't responsible for that (and I agree that we should be able to choose the version)
spectrum
spectrumOP4w ago
yeah agreed I'm very grateful for your time effort and assistance
Xiticks
Xiticks4w ago
So yeah, custom app You could/should also use dockge or portainer and use the mode simple compose from Immich (once you're back from your vacation) And no problem, I'm happy that I was able to help you
spectrum
spectrumOP4w ago
Yeah I do want to move to a portainer stack or something like that. I use that for my other apps, immich was just an "early install" on this server before i got more into portainer I imagine I just need to /close the ticket?
Xiticks
Xiticks4w ago
Yes, you can Btw I do'nt think portainer is recommended for Immich though (saw some issues) you could try dockge on TrueNAS for Immich Or just use a custom compose
spectrum
spectrumOP4w ago
oh huh I didn't realize there were differences I'll have to research that more when I'm back thanks again.
Immich
Immich4w ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?