#Immich folder view != filesystem folder view

1 messages · Page 1 of 1 (latest)

coral solar
#

Hi, I'm using immich version 2.0.1 and have found a strange behavior. I'm unsure if it's a bug or something other.
When I look at the Immich folder view in my library root, I see my folders (the album name) und 69 files (photos and videos), all not very old.
When I look on the server side on the filesystem in the library root, I see the folders and only 1 file. When I try to download one of the photos from library root within Immich, I got server error 500.
I also searched the filesystem via find . -name "<name here>" in the library root, no hits. When I searched an existing image, I got a hit -> command works.
I also have at least one photo that is listet in Immich to be in the library root, but isn't there (also not showing up in the folder view). Can't find this on filesystem as well.
My storage template is this: {{{album}}}/{{{filename}}}.
All the 69 files that are listed in the Immich library root via the folder view are in exactly one album.
I also searched in the upload folder via find command, found nothing.
I use the Android app to sync my photos, maybe the issue is there?
Actually I'm using Android app version 2.0.1 but I'm unsure which version I used when I upload the "last batch" af files.
Where are the photos now? Deleted?

Logs are as anticipated:
[Nest] 184 - 10/13/2025, 10:49:49 AM ERROR [Api:LoggingRepository~rv41q6hj] Unable to send file: Error: ENOENT: no such file or directory, access '/photos/library/stefan/signal-2025-09-06-16-31-49-506-1.jpg'
Error: ENOENT: no such file or directory, access '/photos/library/stefan/signal-2025-09-06-16-31-49-506-1.jpg'
at async access (node:internal/fs/promises:608:10)
at async sendFile (/app/immich/server/dist/utils/file.js:49:9)
at async AssetMediaController.downloadAsset (/app/immich/server/dist/controllers/asset-media.controller.js:47:9)

safe nimbusBOT
#

:wave: Hey @coral solar,

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

#

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.

safe nimbusBOT
fierce dirge
#

Please post the requested info

coral solar
#

What exactly do you mean? The list from the point information? The missing docker ps -a command?
I've nothing changed, only making updates from time to time and at some point it stops to working.

fierce dirge
#

Your compose file, .env, etc

coral solar
#

Yeah, this is one point. I'm using not the native images from you, I'm using imagegenius. I'm sure this issue is related to Immich itself but I'm also sure you will redirect me to the other guys. So in fact you will get the error sooner or later.
I also created an issue there: https://github.com/imagegenius/docker-immich/issues/627. But again, I'm sure that this is related to Immich itself.
There you can find the docker command. I don't use an env file.
Immich runs on a lxc container on Proxmox. A change there is not really conceivable, other lxc containers with docker runs smooth.

safe nimbusBOT
fierce dirge
#

I wouldn't be so sure, this seems more like a problem in your setup with the files having gone missing than an issue in the code

#

Is the library on a local disk or network storage? Have you had any problems with disks/power loss/etc?

formal fog
#

I was waiting for the compose but indeed this is the behaviour you would get for a disconnected mount while the container was running

coral solar
#

Yeah, for sure, a configuration issue is always possible. I ran this setup for months now and only start to find now the first files.

  -v /opt/immich/appdata:/config \
  -v /opt/immich/libraries:/photos \

This are nfs mounts, the mounts are mounted at lxc container level.
I'm not aware for any power loss or disk failure.
But in general, how I imagine it:

  • I upload some files to Immich
  • Immich is storing them on the (in my case) nfs share
    -> So when I have a power loss after that, the files should stay on the nfs share. Only when the power loss is in the processing process, then they can be lost, correct?
fierce dirge
#

Odds are the mount got disconnected

coral solar
#

When you are right, that should be a temp issue. I have backups, that is no problem.
But how can I find and delete this ghost files?
Sadly the admin tab where I can find offline files was removed without an replacement.

clear cave
#

Right, there is no integrity check for the native/internal library. It is assumed to be managed exclusively by Immich (and this assumption fails if files disappear due to external reasons).
You can test assets in the database if they have corresponding files on disk with a command like this:

docker exec immich_postgres psql -U postgres -d immich -At0 -c 'select "originalPath" from asset where not "isExternal" limit 100' | docker exec -i immich_server xargs -0 stat -t -c "%.19y %10s %n"

(increase "limit 100" after testing)
Example output: the first file is missing on disk

stat: cannot statx '/data/upload/dc14ff4e-654b-4edb-9f6c-3a6a0f59f3f1/d5/9d/d59d4808-f208-4a34-a293-a36c3bfbe5f9.jpg': No such file or directory
2022-12-19 11:39:25    2924113 /data/library/admin/2022/2022-12/Video-20221219_103006-Meeting Recording_20221219_143922486.mp4
2025-09-26 07:10:10     166701 /data/library/be520f07-6ff1-4ac6-89d1-4c83ea6aebf1/2025/2025-09/11.jpg
coral solar
#

Well, this found also files that are ok.

coral solar
#

okay, I deleted the files that I aware of. The mobile backup feature adds them right away (the one that was still on the phone) and after all jobs were completed, they are (again) in the library root folder placed and in the same album. But I can download them, so they are ok. I must trigger the migration job for storage templates manually. then they were moved in the correct folder.
Is that intended?
How can I find other files that are offline?