External Library showing excluded folder that doesn't show in file system
So, I've had an external library imported into Immich on Unraid with a path of "/mnt/user/Pictures", I have an exclusion of "/.photostructure/" however I still see photos in the timeline of "/Pictures/PS/.photostructure/previews/000/006/"
The odd thing is that I can't find the folder path of "/Pictures/PS/.photostructure/" in my folder at all but somehow Immich still picks it up. The PS folder was created in windows and I have checked for a hidden folder. I'm out of ideas on how to either get rid of these files in the folder or exclude them. I have also run the scan after the exclusion.
63 Replies
:wave: Hey @VodoBaas1,
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./.photostructure/
That path does not make any sense
That'd mean you'd have a .photostructure
folder at the root
How did you try to find that folder, since you're saying you can't find it?
Files with a name that starts with a dot are hidden by most file systems by default


How are you looking for the folder, what sort of filesystem is it on, what pieces are involved (eg network mounts)?
Correct, this is from Photoshop, they also look like thumbs that photoshop put in a hidden folder. The thing is, I view all hidden folders as well and don't see it.

This folder was migrated from Winodws over to Unraid and sits on the Array (Linux). No network mounts for this.
I know this is most likely not an Immich issue per se. To me it's like the files are there but I just can't see them. I've mounted the folder and looked in Windows, used midnight commander, tried krusader.
Have you tried just plain
ls -a
directly on unraid?I have in the folder and it doesn't list the .photostructure folder
In which folder exactly?

Sorry must not have hit enter on the screen grab
On the unraid side you're at
/Pictures
, no?Is the path inside the container
/Pictures
or /mnt/user/Pictures
?Not at
/mnt/user/Pictures
The screenshots are conflicting
So, the docker sees the shares as /Pictures, but Unraid will see the folder as /mnt/user/Pictures.
The screenshots here say
/mnt/user/Pictures
in various places thoughI mean it depends on what side I'm on. I might have the exclusion incorrect because it's in the docker, but it loaded them forever ago and I hadn't looked at that. But /mnt/user/Pictures would be what Unraid would see the folder mapped as. Immich should see the folder mapped as /Pictures
No, it says that
/mnt/user/Pictures
is inside the container
We're talking about the correct sideThe first screenshot was of the container, so I'm not sure which your reffering to then.
Sorry, typoed
The first screenshot says "Container path: /mnt/user/Pictures"
Which suggests to me that'll be the path inside the container
And on the second you're using
/mnt/user/Pictures
as the path for the external libThe first is stating that the path on Unraid /mnt/uer/Pictures will be /Pictures in Immich.
Pretty sure it's vice versa
Otherwise the labels would be incredibly confusing
Yes, your right that it does point to the wrong thing in Immich which I just saw when you showed that
that's why Immich see this.

Ok, let's do a thing
Get a shell on your unraid server
And run
docker container inspect immich_server

Ffs
Sorry
immich-server
Those container names are killing meWhat's Ffs, sorry don't know that one
"For fuck's sake", because I was annoyed by getting the container name wrong (again) 😅
ah lol
It might not be this either
In which case
docker ps
Huh?
It's not a compose setup
So it doesn't have our usual container_name directive
Oh, it's the AIO
Yeah thanks, missed that
Correct

docker inspect 2dd8bba
(and look out for volumes)


Yeah, so
/mnt/user/Pictures
goes to /mnt/user/Pictures
inside your container
Not /Pictures
Yeah I see that now.
Have there been any changes to your setup recently?
Since that asset path is
/Pictures/...
, it must've been at that path at some pointIt's been awhile there was those breaking changes and that's probably when all this happened I just didn't have the bandwidth to work on it then.
And I'm dumb and was looking at the far left name thinking /Pictures when I made this
not made but started working on it yesterday
So, question is, why does it still show if I've rescanned the external Library?
It doesn't belong to any library
So it's not being marked as offline
Should I remove the External Library and readd it?
I am not sure which state your instance is currently in
So first off, do you have backups?
Backups of the folder or the container or all of it?
The external library should be read only.
Backups of the db and your files in Immich (those not in an external library)
And also the external library
It is not mounted readonly
And you should still have backups of it regardless tbf
True, I mean I do, just are probably a week old on all of it
It runs every sunday.
Why not daily?
Hourly?
I can just do a manual backup first
Yes please
the appdata folder gets backed up weekely because I have a lot of other stuff running and that's a lot of backing up. The ../Pictures folder is very large and once they are backed up don't really need to be that often. Running it noe
now
It will take awhile.
Backing up a whatever large folder shouldn't take too long after the initial backup
I don't follow
Just saying that's why I don't do it hourly. I get your point, just that's why I had it setup that way in the beginning
Gotcha. You should absolutely have it run daily though or something
Weekly is quite a long period you potentially just lose
I hear ya, I guess my thought initially as well was I have those assets on my phone as well that I might lose over that week, but makes sense and I'll change it.
Just seen too many people losing data at this point 😅
Fair enough and I appreciate it. Nothing worse for sure.
Everything is backed up and good to go.