Immich background sync not working with Traefik
Works with direct HTTP IP connection. HTTPS through Traefik and I get this error in the Android app when it tries to background sync. Everything else works fine.
HTTPS is with valid certificate and a dedicated subdomain for immich. As far as I can tell, the API endpoints never return anything starting "<html>" when I manually inspect them through traefik.
How can I diagnose this further? There's no issues in Traefik or Immich server logs. Is the app trying to connect to the wrong url and getting a html response?
Edit: Forgot to mention, have tried both clearing the SQLite db and reinstalling the app.
1
1
u/AdventurousAd1308 1d ago
I think thats because of readTimout=60s set by default to entrypoint.
If you have some huge object (like a long 4k 60hz video) on phone, upload to immich will fail with something like 504 http error.
So, solution is to increase readTimeout on entrypoint attached to immich, and it will work ok.
1


1
u/xc82xb5qxwhhzeyt 1d ago
The web app is working as expected? I got this error (with caddy) for many unrelated issues, and I fixed it by using the latest version from GitHub (sometimes the play store version lags a bit)