All photos is gone in Immich

I have
OS Version:TrueNAS-SCALE-24.04.2.5
and install App
Name: immich
App Version: 1.119.1

Don’t know what happened but I had to reboot,
After that the status is “Deploying” on the app immich
They won’t start.
When I ssh to the nas and go to library or video is empty!!

I don’t understand what happened.
Trying to find snapshop but can’t find anything.

Look at the log file of immich and check if you see access denied messages

Where is location of your photos storage ?

A simple ls -la on that path will tell you whether photos are there or not

is mounted in ix-applications
/mnt/data/ix-applications/releases/immich/volumes/ix_volumes/library/

ls -la
total 9
drwxr-xr-x 2 root root 2 Sep 27 11:46 .
drwxr-xr-x 9 root root 9 Sep 27 11:46 …

Are you sure you don’t have the photos in another dataset that was used as a mountpoint for the folder you’re checking inside?

This is what i find in truenas.

  - hostPath:
      path: /mnt/data/ix-applications/releases/immich/volumes/ix_volumes/library
      type: ""
    name: library
  - hostPath:
      path: /mnt/data/ix-applications/releases/immich/volumes/ix_volumes/profile
      type: ""
    name: profile
  - hostPath:
      path: /mnt/data/ix-applications/releases/immich/volumes/ix_volumes/thumbs
      type: ""
    name: thumbs
  - hostPath:
      path: /mnt/data/ix-applications/releases/immich/volumes/ix_volumes/uploads
      type: ""
    name: uploads
  - hostPath:
      path: /mnt/data/ix-applications/releases/immich/volumes/ix_volumes/video
      type: ""
    name: video

How did you populate those folders to begin with? Did you actually make SMB shares for the folders inside ix-applications?

All data is from the app immich, eg, upload.
No SMB share in ix-applications folder

I’m starting to think I’ve been hacked.
But nothing is open from the internet.

I’m not sure how the “Apps” on SCALE work, but maybe everything under /mnt/<pool>/ix-applications/ is fair game of being pruned, deleted, or replaced when an application updates?

I’m pretty sure you’re not supposed to store files under the ix-applications dataset, but rather traditional user-created datasets.


How did you rule out snapshots? Do you not see any under the web UI?

What about if you do this:

zfs list -t snap -r data/ix-applications

I understand what you mean.
When you start installing an app eg immich
the default is
““ixVolume (Dataset created automatically by the system)””
But now after I chose it it feels very wrong.

I have alot of stuff “zfs list -t snap -r data/ix-applications” but no immich, only other apps

It’s very strange that all the data is gone.
Very sad that all the pictures are gone.
And I don’t have a backup.:triumph: I thought snapshots worked.

Nothing can be done if snapshots are not created for a dataset.

Are you sure the photos are actually gone?

In my case, all the images/videos are stored in the upload/ folder, not library/

root@truenas[/mnt/data/SMB/AppData/ix_immich]# ls -laR library | wc -l
5
root@truenas[/mnt/data/SMB/AppData/ix_immich]# 
root@truenas[/mnt/data/SMB/AppData/ix_immich]# ls -laR upload | wc -l
36052
root@truenas[/mnt/data/SMB/AppData/ix_immich]# 

Let’s approach this from a very basic standpoint and start by figuring out why the container is stuck deploying.
Can you run docker logs ix-immich-server-1 from CLI? If it’s stuck deploying, this will hang until it crashes and restarts, but you should get logs in relation to the failure.

1 Like

In truenas is k3s , is kunbernets ish,
When app try to deploy is stop
From log…
“no such file or directory, open 'upload/library/.immich’e”

After that i check library and is empty!! WTF!

Ah my bad, I’d misread the version you were on (>24.10 uses docker).
Can you copy and paste the logs you have directly as well as a screenshot of your app config?

Thanks for you help.
I will find log

Does your “upload folder” point to a directory under a user-created dataset?

Yes, I use host paths, though default behaviour should be the same:

root@truenas[~]# midclt call app.config immich | jq | grep ix_immich
        "path": "/mnt/data/SMB/AppData/ix_immich/library"
        "path": "/mnt/data/SMB/AppData/ix_immich/profile"
        "path": "/mnt/data/SMB/AppData/ix_immich/thumbs"
        "path": "/mnt/data/SMB/AppData/ix_immich/upload"
        "path": "/mnt/data/SMB/AppData/ix_immich/encoded-video"

So I’d expect them to exist in data/ix-applications/releases/volumes/ix_volumes/uploads

1 Like

What i remember i have most of photos in library.

pwd
/mnt/data/ix-applications/releases/immich/volumes/ix_volumes
root@truenas[...ns/releases/immich/volumes/ix_volumes]# ls *
library:

pgBackup:
immich_2024-09-27_11-46-48.sql	immich_2024-09-29_13-28-36.sql	immich_2024-10-07_14-15-16.sql	immich_2024-10-25_14-28-25.sql	immich_2024-11-02_11-08-18.sql

pgData:
PG_VERSION	  global	pg_dynshmem    pg_logical    pg_replslot   pg_stat	pg_tblspc    pg_wal		   postgresql.conf
base		  log		pg_hba.conf    pg_multixact  pg_serial	   pg_stat_tmp	pg_twophase  pg_xact		   postmaster.opts
current_logfiles  pg_commit_ts	pg_ident.conf  pg_notify     pg_snapshots  pg_subtrans	pg_vectors   postgresql.auto.conf  postmaster.pid

profile:

thumbs:
5d78456e-fbac-41f9-9881-40e82de030c1  90977c81-ede3-455a-be89-3f55c7453e83

uploads:

video:```

My config