Traefik Timeouts and Immich (Day 21)
I have been setting up Immich, i.e destroying and recreating it until I got my photo organization and volumes just right.
The next step was to do a mass import after testing, the CLI tool makes mass imports pretty straightforward, but I kept having an issue with certain files failing to import especially when trying to import or upload large files (like 2GB).
I would generally get a very generic upload failed
Everything was working fine for regular photos, and my phone syncing without issues.
Did some digging and I found that the issue was to do with Traefik time outs, see the traefik page here
The Fix
So I adjusted the timeouts in the config i.e.:
ports:
web:
redirections:
..............
websecure:
tls:
enabled: true
transport:
respondingTimeouts:
readTimeout: 20m
writeTimeout: 20m # 20 minutes - adjust based on your needs
And while at it updated traefik to v3.3.3 (helm chart 34.3.0)
and changed from redirectTo
to redirections
(diff):
ports:
web:
- redirectTo:
- port: websecure
+ redirections:
+ entryPoint:
+ to: websecure
+ scheme: https
+ permanent: true
I now got the large file uploads peachy.
PPS: Planning to move the days of homelab to a dedicated page and reduce the amount of logs on the homepage