I
Immich3mo ago
Clampy

Getting read validation errors after changing Files Custom Locations

Hello! I had Immich working with default settings on Unraid, started upload images etc. I then noticed after the mover kicked in it moved it from the SSD to my HDD, and my thumbnails were slow - so I read https://immich.app/docs/guides/custom-locations and moved thumbs and encoded-video to my SSD. * After adding these custom locations, my Immich server won't start * If I remove the custom locations, it starts up again and works * The folders are created correctly on the SSD, so the location setup seems correct in Compose/Env Here is my Docker error:
[Nest] 7 - 02/24/2025, 8:54:18 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich' microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information.", stack: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information."
I looked at the page, and it states File does not exist - volume mount has changed and should be corrected, which makes a lot of sense, as the folders were changed after initial startup. I assume the issue is simply that they are missing, and I need to recreate them in the new locations. If this is the case, how do I do that? Thank you!
11 Replies
Immich
Immich3mo ago
:wave: Hey @Clampy, 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. :blue_square: 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. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Clampy
ClampyOP3mo ago
Docker Compose
Clampy
ClampyOP3mo ago
Env:
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/user/files/Media/Pictures/Immich

# The location where your database files are stored
DB_DATA_LOCATION=/mnt/user/appdata/postgres

# Custom location where your uploaded, thumbnails, and transcoded video files are stored
THUMB_LOCATION=/mnt/user/appdata/immich/thumbs
ENCODED_VIDEO_LOCATION=/mnt/user/appdata/immich/encoded-video

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Europe/Stockholm

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=Blah

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/user/files/Media/Pictures/Immich

# The location where your database files are stored
DB_DATA_LOCATION=/mnt/user/appdata/postgres

# Custom location where your uploaded, thumbnails, and transcoded video files are stored
THUMB_LOCATION=/mnt/user/appdata/immich/thumbs
ENCODED_VIDEO_LOCATION=/mnt/user/appdata/immich/encoded-video

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Europe/Stockholm

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=Blah

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
bo0tzz
bo0tzz3mo ago
Did you move the files over?
Zeus
Zeus3mo ago
Unrelated but you haven’t uncommented your timezone
Clampy
ClampyOP3mo ago
I initially copied them to their new home, and wanted to test that it was set up correctly, so I deleted the original files. I started getting errors when reading the thumbnails - so clearly it was still pointing to the old location (which was now missing). I did this after I made my post, which is why it read like it was working before when swapping back. I didn't realize it was because of the .immich files until it was too late. I didn't know these .immich files existed while I was trying to debug, so I ended up deleting the two folders in both locations to start fresh Now I know better, I would have been more careful, but I had no reason to believe the folders couldn't just be regenerated after the updated Thank you, nice catch I am in a very good position to go scorched earth and recreate everything @bo0tzz , so if there is no easy way to recreate these two files, I have no problem with that. I tested adding IMMICH_IGNORE_MOUNT_CHECK_ERRORS=true just to confirm, and it does fix the issue, but of course it would be nice to find a solution that doesn't mean skipping protection!
Zeus
Zeus3mo ago
The solution would be to move the old folder to the new location Barring that you can create the .immich files but it means you lost whatever was in there
Clampy
ClampyOP3mo ago
Absolutely that's no problem! I expected to recreate them anyway when I added the custom folder as I wasn't 100% sure they were safe either way. How can I recreate the .immich files? I did some searching on docs website, and couldn't find any mention of recreating missing ones, only what happens if they are missing. Are they literally just empty, hidden files called .immich? 😅 Thank you.
bo0tzz
bo0tzz3mo ago
Yeah, just touch .immich And then rerun the jobs from the admin panel
Clampy
ClampyOP3mo ago
Yeah I just made them and removed the IGNORE and it works fine. Perfect! Thank you very much both of you, you have been a great help. Have a fantastic day, and thank you for the work you put in for this app. Appreciate it a lot ❤️
Immich
Immich3mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?