Specific files keep failing to backup
Hello, I'm running into an issue with Immich not backing up two specific videos I recorded on my phone over the weekend.
The automatic backup starts when I connect to WIFI, uploads to a certain percent, and then stops. I see an Android notification saying the upload failed. I don't see any related errors in docker logs, but the Android app shows this:
"Warning [resumeBackup] failed to acquireLock."
I have successfully blacked up more than 1k files including video, so I'm not sure why these two won't complete. Can I have some tips on how to troubleshoot? The server is running latest release and has plenty of storage free space.
I have successfully blacked up more than 1k files including video, so I'm not sure why these two won't complete. Can I have some tips on how to troubleshoot? The server is running latest release and has plenty of storage free space.
9 Replies
Are you running through a DNS with a reverse proxy? Is there any size limitation on your proxy?
Yes, I'm running with Caddy as my reverse proxy. Not aware of any size limit.
Try connect to your local IP and upload to see if it is success
then we can circle back to see if Caddy need any additional header for size limitation
Thanks Alex, I'll try!

probably it but I am not sure
this seems to be the body, not the header
https://caddyserver.com/docs/caddyfile/directives/request_body
Perfect, this gives me some good avenues to look into.
Hi again. Confirmed that taking the reverse proxy out of the equation by using direct LAN IP has allowed these 2 videos to backup.
I am not seeing an error in the Caddy log unfortunately, and setting max_body to 5 GB has not solved it. I'll work more on it later this week and post a solution if/when discovered.
Further research uncovered this may be an issue with using Cloudflare Proxy upstream. By enabling debug logging in Caddy I can see an error "status: 304" is occurring. I'm going to switch off Cloudflare Proxy on this instance and see if the issue is resolved. I continue posting here to document my progress, I hope it's not an annoyance.
Looks to be related to this: https://github.com/immich-app/immich/issues/567
GitHub
[Feature]: Upload large files in chunks · Issue #567 · immich-app/i...
Feature detail Currently, uploading is done in a very simple way: upload the whole file directly to the server. However, some users may have limits on their reverse proxy preventing uploading such ...
you are using CF?