No such file or directory when generating missing thumbnails
I deleted an asset from postgres, that was throwing some ffmpeg errors and now everytime immich runs thumbnail generation I get an error
ERROR [Microservices:{"id":"83f42e09-9a03-4e65-aa3f-cbe95701b3b5"}] Unable to run job handler (AssetGenerateThumbnails): Error: ffprobe exited with code 1
...
/usr/src/app/upload/upload/287d2743-6333-46fa-a400-420c022d0f47/d0/51/d0514b5a-b77f-4cff-89ad-6be5aa56d448.mp4: No such file or directory
currently running immich server version 1.143.1 in OpenMediaVault
How can I stop immich from looking for this asset?
22 Replies
:wave: Hey @Hristakis,
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.What do you mean "deleted it from postgres" ?
Well i consulted ChatGPT and it said that there was an issue with the asset, so I deleted it from Immich, and then I went inside my immich_postgres docker container and deleted it there as well, I now realise that was probably a mistake but now I can't seem to clear this error, even after deleting all thumbnails related to the asset and restarting the whole immich docker
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
That was a big mistake, specifically deleting it from the database
You should restore the database from backup then delete the file from the web UI or API
isn't there a way I could tell immich to stop looking for it? I don't want to restore from a backup as I have uploaded a bunch of new assets and changed some things that I don't want to loose
I am getting
šØ Error - Something went wrong
Not found or no asset.read access (400)
Stacktrace
ct@https://my.immich.app/_app/immutable/chunks/9kRnNcW7.js:1:5505
rt@https://my.immich.app/_app/immutable/chunks/9kRnNcW7.js:1:5409
Was it your asset or someone else's?
I think it was from my Wife's account
Then try the link on hers
same error on all 3 accounts on my server
what if I put a random video in the same folder and just name it the same as the missing one? and then delete it from the UI?
That's what I've been trying to do with the URL but feel free to try
I just querried postgres to find all orphaned assets with this
psql "host=immich_postgres user=postgres dbname=immich password=YOUR_PASSWORD port=5432" -t -A -F "|" -c "SELECT id, "originalPath", "type" FROM asset;" | while IFS="|" read -r id path type; do
if [ ! -f "$path" ]; then
echo "Orphan asset: id=$id, type=$type, path=$path"
fi
done
'
and it gave me a bunch of files
I saw one broken video in my timeline and I deleted it from the UI and now the File not found error is gone, but I am getting
Input file contains unsupported image format
Error: Input file contains unsupported image format
at Sharp.toBuffer (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.3/node_modules/sharp/lib/output.js:163:17)
at MediaRepository.decodeImage (/usr/src/app/server/dist/repositories/media.repository.js:105:68)
at MediaService.decodeImage (/usr/src/app/server/dist/services/media.service.js:177:59)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async MediaService.generateImageThumbnails (/usr/src/app/server/dist/services/media.service.js:189:44)
at async MediaService.handleGenerateThumbnails (/usr/src/app/server/dist/services/media.service.js:116:25)
at async JobService.onJobStart (/usr/src/app/server/dist/services/job.service.js:198:28)
at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:126:13)
at async /usr/src/app/server/node_modules/.pnpm/bullmq@5.58.5/node_modules/bullmq/dist/cjs/classes/worker.js:498:32
at async Worker.retryIfFailed (/usr/src/app/server/node_modules/.pnpm/bullmq@5.58.5/node_modules/bullmq/dist/cjs/classes/worker.js:776:24)
[Nest] 7 - 09/27/2025, 9:35:57 PM ERROR [Microservices:{"id":"3c644147-0629-4daa-8106-0565c6bdc8ff"}] Unable to run job handler (AssetGenerateThumbnails): Error: Input file contains unsupported image format
so I was thinking what if I delete all the orphaned assets in postgres, maybe that will resolve this?
Well that or it might be unsupported, that happens š
what bugs me is why don't the logs say what is the name or path of this unsupported image format š
assetID is right there: 3c644147-0629-4daa-8106-0565c6bdc8ff
huh, I was thinking that is the job Id, my mistake
yup that fixed it, I deleted the assets in the UI and no more errors, YAY! thank you so much!
do you still think I should run the orphan delete pgsql command?
will it somehow optimize the database or it does not matter?
I don't think it will matter much and we always recommend not mucking around in the DB unless you know what you're doing
so if you think you know, go for it š
alright, well we do use PG at work but I barely touch it, and I am not that familiar with SQL anymore sinse univeristy, so I will leave those orphans alone for now. Thank you so much for the support!
so two separate issues, the No such file was solved by looking at all assets in the UI and finding the one I deleted from inside PG and deleting it from the UI as well. The problem with unsupported format was solved by deleting all files within the UI, and no more errors
/close
We'll be adding tools to manage faults like this in the future š
This thread has been closed. To re-open, use the button below.