Issues with uploading photos
Hello folks,
I have a weird issue with uploads.
Here is what happens: I'm using specific set of photos to reproduce this constantly.
Uploads from mobile devices, 4 to be exact, from different vendors have this issue.
All of the photos uploaded from mobiles are displayed broken with following errors in server logs(attached screenshot).
Example is in second screenshot.
If this exact set is uploaded from web, or external library they are perfectly fine.
I can trace this issue back to December 2024.
Any help will be appreciated. Whole library is around 750GB and it will be pain to readd them manually.
Environment is Debian Bookworm(Proxmox VM) with Docker and Portainer on top.


15 Replies
:wave: Hey @Ilcheff,
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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: 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.Can you specify which devices exactly?
And if possible provide that set of photos
^ zipped up
When I get to PC I will. All devices connected have that issue, but not at the same rate of broken images
You say all devices but I am specifically asking which those are 😛
Say you own 5 iphones then maybe it's something iphone specific
Can you add information about how the phones connect to the server?
Direct connection or through a reverse proxy?
Devices are: Xiaomi 14 Ultra, Xiaomi Mi 11 Ultra, Huawei P Smart Z, Samsung Galaxy A23
Mobile app and server are latest releases.
Everything connects to Immich using public end-point via haproxy.
Nothing is changed or updated on proxy itself from almost a year(haproxy runs on pfSense and can't be updated too often unfortunately due to workload)
At this pont I can provide samples only from X14Ultra as it's my device. I will have access to others tommorow so i will send samples from at least one or tho devices.
hmm funky how there's 4 versions of all pictures 👀 how did you do that?
They are uploaded this way intentionally. Two sets are .DNG, two sets are jpegs. one set uploaded from phone, one from PC. Some images uploaded from phone is heavily broken, even original image. For example: IMG_20250218_204946.jpg - both preview and file in library is broken when uploaded from phone(download and compare md5sum with original photo). File uploaded from PC is fine and md5sum matches
it's pretty weird to be honest
RAW images are same sh*t
this one for example: IMG_20250218_204949.dng
When you claim that uploading via browser is done without problems, are you using a reverse proxy?
Have you tried uploading without a reverse proxy from mobile?
Sorry about late reply. In both cases I'm using photos.kochintata.eu which is pointed to proxy. You can see that cloud.kochinata.eu is pointing to exact same IP address. Before noticing this issue I've never used web browser to upload photos, only mobile app. I will try from mobile without a proxy when I get home so I can avoid using vpn. I have another set of photos from different device (Huawei) to test with.
After further tests it seams that there is issue when i pass via haproxy. Interesting is that problem occurs only from mobile app. No mater what browser I'm using or what OS I'm using, all uploads are fine. I've tested Android versions from 10 to 15 with all my old headsets viable(HTC, Huawei, Xiaomi, Google Pixel) all of them shares same behavior. Is it possible some logic in the app can break things like this? Sadly I don't have enough time to test older app versions...
How big is the file you are trying to upload?
How long does it take to upload?
It's pictures after all. Not bigger than 30MB. Nextcloud is behind same haproxy. Limit for uploads in haproxy config is 10GB
This can't explain why uploads from PC are fine, but from app are broken
Can you try uploading the same image via haproxy and without, then diffing the files it produced in the immich library? Seeing what kind of corruption is happening gives information what is going on