Immich not reading database properly

Hello all, Just wondering if anyone has had their immich db stop reading properly? Its saying there is no such file or directory? Docker desktop and this was because data was moved off the disk and to another one. We've had an issue with our disk being close to dying.
No description
32 Replies
Immich
Immich3mo ago
:wave: Hey @Sheepish2, 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. :blue_square: 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. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Sheepish2
Sheepish2OP3mo ago
currently on latest versions
Daniel
Daniel3mo ago
This is not Immich reading files from your database Thumbnails are stored on your disk as well. Did you actually copy those?
Sheepish2
Sheepish2OP3mo ago
I've copied the entire directory off. I have my docker desktop setup so that it reads from a windows file structures (As I had google photos). Since copying those directories into another instance of immich, its not working as is normal - It's also giving my a 500 error when trying to access administration Error: Error: 500 at Object.mt [as ok] (http://192.168.0.10:3003/_app/immutable/chunks/BYB68Yzy.js:1:8008) at async V (http://192.168.0.10:3003/_app/immutable/chunks/BKkcvvZ3.js:1:2121) at async vr (http://192.168.0.10:3003/_app/immutable/nodes/34.BufroOdd.js:1:2990) at async Ke (http://192.168.0.10:3003/_app/immutable/chunks/DP2jmxmE.js:1:16986)
Sheepish2
Sheepish2OP3mo ago
needless to say:
No description
Daniel
Daniel3mo ago
This is just random compiled js not being broken Could be a caching issue Could be the server not being up Definitely not worrying (that part at least)
Sheepish2
Sheepish2OP3mo ago
What would help for fault finding? Cause I cant really do much without that
Daniel
Daniel3mo ago
Not opening multiple help desk threads in the first place...
Sheepish2
Sheepish2OP3mo ago
Valid - That one is for a truenas issue This one is for my windows box
Daniel
Daniel3mo ago
The other one says "unable to read .immich in Docker Desktop" Docker desktop is a windows thing
Sheepish2
Sheepish2OP3mo ago
I've got that closed - You're right, I thought i had put in the true nas issues.
Daniel
Daniel3mo ago
So The server cannot find all those thumbs, so either you haven't copied them or they aren't where Immich expects them to be
Sheepish2
Sheepish2OP3mo ago
Alright. The file structure as before looks the same to me. I have my add only backup that I've restored to that directory and it all looks the same. would this be the same for the inability to access administration?
Daniel
Daniel3mo ago
would this be the same for the inability to access administration?
Excuse me? This could also be a permissions issue if you're asking that, yes
Sheepish2
Sheepish2OP3mo ago
I've set the folder structure to full control for all users.
Daniel
Daniel3mo ago
Try to find that file: thumbs/fe725b59-d1d0-4dbb-bc06-c1004858dbbd/e1/f5/e1f54014-3d44-42f4-8e05-9e64af508954-thumbnail.webp
Sheepish2
Sheepish2OP3mo ago
That exists
Daniel
Daniel3mo ago
Can you open it?
Sheepish2
Sheepish2OP3mo ago
and is accessible in the folder structure indeed
Daniel
Daniel3mo ago
Did you ever recreate the container? docker compose down && docker compose up -d
Sheepish2
Sheepish2OP3mo ago
No I haven't recreated. Just turned them off, copied the data off the drive, new drive in and copied the data back. Then turned them back on
Daniel
Daniel3mo ago
Please try doing that then
bo0tzz
bo0tzz3mo ago
For completeness, also please post the details requested by the bot compose file etc and also the paths & how you changed them
Sheepish2
Sheepish2OP3mo ago
docker compose ^
Sheepish2
Sheepish2OP3mo ago
Recent Changes Stopped Immich Stack Moved data off D: Drive New Disk in Moved Data back Started Immich Stack Immich Server started complaining about not being able to see a .immich file in encoded video - it was present. Windows 11 runing Docker Desktop Latest version of immich Pre me moving data about - all good times. ~~~~~~~~~ DB_DATABASE_NAME=immich DB_PORT=5432 REDIS_HOSTNAME=immich-redis IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3004 DB_HOSTNAME=immich-postgres DB_USERNAME=portainer DB_PASSWORD=portainer PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/src/app/bin NODE_VERSION=22.13.1 YARN_VERSION=1.22.22 LD_LIBRARY_PATH=/usr/lib/jellyfin-ffmpeg/lib:/usr/lib/wsl/lib: NODE_ENV=production NVIDIA_DRIVER_CAPABILITIES=all NVIDIA_VISIBLE_DEVICES=all IMMICH_BUILD=13037889168 IMMICH_BUILD_URL=https://github.com/immich-app/immich/actions/runs/13037889168 IMMICH_BUILD_IMAGE=v1.125.7 IMMICH_BUILD_IMAGE_URL=https://github.com/immich-app/immich/pkgs/container/immich-server IMMICH_REPOSITORY=immich-app/immich IMMICH_REPOSITORY_URL=https://github.com/immich-app/immich IMMICH_SOURCE_REF=v1.125.7 IMMICH_SOURCE_COMMIT=4fd8c1b3c1b4eaf5be7c01c2a87bb6e80117415e IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/4fd8c1b3c1b4eaf5be7c01c2a87bb6e80117415e IMMICH_IGNORE_MOUNT_CHECK_ERRORS=true Currently set as immich server was complaining about not seeing the .immich file That i run in power shell? I dont have to specify what it needs? (Only ask as I have 2 other docker containers..
Daniel
Daniel3mo ago
This is in the scope of the compose file in the directory you're in
bo0tzz
bo0tzz3mo ago
So the files were at D:\Immich\, you stopped the stack, moved them somewhere else, replaced the drive that was at D:, moved them back, restarted the stack? Did you restart the system at any point in that process?
Sheepish2
Sheepish2OP3mo ago
Yep, Sorry I forgot to mention that. After the data got moved off. Stopped the PC, replaced the drive then turned it back on. The drive letter remained the same across the transfer I've redeployed my images (Using portainer) still no avail. I've removed my ignore errors flag in my env settings and have 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." [Nest] 7 - 02/08/2025, 1:21:05 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
Sheepish2
Sheepish2OP3mo ago
Also does this make much sense to you? - I know its errors but does the microservices error make sense.?
No description
Sheepish2
Sheepish2OP3mo ago
Restarting let it spring back to life...

Did you find this page helpful?