immich and background on Samsung s22 π‘π‘
It's been 2 days that immich android app is trying to upload vids (~60) left but it's in loop on the same videos now.
Is there anything that can be done to force the upload?
Anything that can be done to prevent app killing on Android 13?
Thank you
21 Replies
It's only uploading when the app has the focus

Responsible for that is Samsung's extremely aggressive battery optimizer.
you can turn it off but it's nto guaranteed to not kill the background service
So this affects videos since they are bigger in size correct? But also keeping the focus it does not seem to eventually load them
I followed all instructions for disable it, not sure it works
Oh i see i misunderstood your problem
I think there are 2 issues here
Honestly i have no idea how to solve it but apparently there is something wrong with the queued video so i would try to move it to a different folder for now so the queue can finish at least
I am backing up the camera folder where there are videos and pics altogether
I also suspect the reverse proxy or cloudflare DNS is blocking files bigger that somewhat
Are you using Cloudflare only for DNS or also as reverse proxy/CDN? Their free tier limits HTTP POST requests to 100MB, which means you cannot upload files larger than this limit.
No just the cname proxied, i am using caddy
Is the
Proxy status
set to proxied or DNS only for the domain you're accessing Immich from?Proxy status Β· Cloudflare DNS docs
The Proxy status of a DNS record affects how Cloudflare treats incoming traffic to that record. Cloudflare recommends enabling our proxy for all A, β¦
Proxied
Then Cloudflare will apply the limit and you can't upload files larger than 100MB
yup I just read that π¦
disabling it π
GridPane
Cloudflareβs CDN and Upload Limitations
Cloudflare offer a great free service, and a part of that service is their CDN. This is available to all plans, including the free tier. If, however, you are using Cloudflares CDN and are trying toβ¦
Thank you @MicheI
You might also need to increase the body size limit in caddy
You can set up a private network using zero trust dashboard here https://one.dash.cloudflare.com/
and connect to it with cloudflare / wireguard client
if you have a good kinetic router you can even set up this wireguard connection on the router itself, so your phone will connect to immich automatically when you connect to your home wifi
to get the wireguard creds you'd need create an emulator and go through the setup to grab the config with
adb pull
https://parkercs.tech/cloudflare-for-teams-wireguard-config/
I'm not aware of any limitations using this methodCloudflare Zero Trust
Cloudflare Zero Trust replaces legacy security perimeters with our global edge, making the Internet faster and safer for teams around the world.
Parker's Blog
Cloudflare for Teams Wireguard Config
Warning
I'm going to go ahead and say this isn't a task for the weak and feeble. This isn't a method supported by Cloudflare, and could be against their TOS for all I know, thus making this process not straightforward.
Summary
This process involved installing the Android SDK on Windows with the AVD manager, using some command line knowledge,...
I thought also zero trust is limited to 100 mb
I don't think any of the CDN limits apply to the zero trust, it wouldn't make sense since the first one is a proxy and the second one is a VPN, it wouldn't be possible to read the contents of your requests in case they were HTTPS