traefik: raise websecure readTimeout 60s -> 12h for large ocis uploads - #23
Merged
Conversation
Loki showed tus PATCH chunks returning 204 then the upload dying with a traefik 502; ocis never crashed or logged an error, disk and memory fine. traefik v3 defaults entrypoint readTimeout to 60s, killing any upload chunk that streams longer — ownCloud's own traefik deployment sets 12h for this. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts Traefik’s websecure entryPoint configuration to prevent large oCIS tus upload chunks from failing due to Traefik v3’s default 60s readTimeout.
Changes:
- Increase
entryPoints.websecure.transport.respondingTimeouts.readTimeoutfrom the Traefik default (60s) to12h. - Add inline rationale/comments documenting the oCIS upload failure mode and upstream example configuration.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+127
to
+131
| # traefik v3 defaults readTimeout to 60s, which kills any | ||
| # request body still streaming after a minute — i.e. large | ||
| # oCIS tus upload chunks. ownCloud's own traefik example | ||
| # uses 12h for upload workloads. | ||
| transport.respondingTimeouts.readTimeout = "12h"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Loki showed tus PATCH chunks returning 204 then the upload dying with a traefik 502; ocis never crashed or logged an error, disk and memory fine. traefik v3 defaults entrypoint readTimeout to 60s, killing any upload chunk that streams longer — ownCloud's own traefik deployment sets 12h for this.