zayatura
zayatura
IImmich
Created by zayatura on 8/10/2023 in #help-desk-support
Immich becomes temporarily unresponsive after watching several videos, with Cloudflare Tunnel
I have noticed a weird issue on the web interface: sometimes the videos will not load properly. This happens after watching several videos in a succession (each loading pretty much instantly). When it starts, no video will load (it will just show a spinner), neither any new one, nor any previously watched one. If I wait patiently, the videos will start working again, just to break again later (after watching another series). While in this unresponsive state, the network tab shows that the requests are simply taking a very long time (e.g. > 30 seconds). While in this state, the server does not respond at all, so I cannot open immich in a new tab or in an entirely different browser. It goes away after a minute or so. It seems to be related somehow to me using a Cloudflare Tunnel, as indeed I don't have the issue at all if I eliminate Cloudflare from the equation (if I add an entry in my hosts file that points my domain to the private IP from the LAN). My config: I am running a home server with an 11th gen intel i5 (Linux), with nvme SSD, 16 GB RAM, gigabit internet connection (both on the server and on the client). My Immich instance is accessible through the internet by Cloudflare ZeroTrust (free tier). I don't see any apparent performance issue on the server (~0% CPU usage while it happens). I also have some other apps (e.g. Nextcloud), and I have an nginx set up as reverse proxy (with HTTPS), and with subdomains for each app. Instead of having to open a port to forward to nginx on my router, and somehow having to update the IP address on my domain (and sub-domains) whenever this changes (I have dynamic IP), I have free-tier Cloudflare Zerotrusta account, with a Tunnel set up (the home server has cloudflared running as well), and on the tunnel I have a public hostname set for each of my applications (each with its own subdomain, and with a proper HTTP Host header set)
41 replies