Troubleshooting Immich: Large File Uploads and Manual SSH Imports
If you are running Immich behind Traefik (and potentially a Cloudflare Tunnel), you may encounter two common issues:
- 413 Request Entity Too Large: Uploads fail for large 4K videos.
- Invisible Files: Files copied via
scporrsyncdo not show up in the Immich timeline.
Problem 1: Upload Limits (Traefik & Cloudflare)
The Cause
- Traefik: Default middleware settings may buffer or limit request body sizes.
- Cloudflare: Free tier tunnels and proxies have a hard 100MB limit.
The Solution (Traefik Bypass)
To handle large files, bypass the proxy by exposing the Immich port directly for local network (LAN) use. Update your docker-compose.yml:
services:
immich-server:
# ... existing config ...
ports:
- "2283:2283" # Expose directly for LAN uploads
labels:
- "traefik.http.middlewares.immich-buffering.buffering.maxRequestBodyBytes=0"
- "traefik.http.routers.immich.middlewares=immich-buffering"