Skip to content

traefik: raise websecure readTimeout 60s -> 12h for large ocis uploads - #23

Merged
phonkd merged 1 commit into
mainfrom
worktree-203-ocis
Jul 9, 2026
Merged

traefik: raise websecure readTimeout 60s -> 12h for large ocis uploads#23
phonkd merged 1 commit into
mainfrom
worktree-203-ocis

Conversation

@phonkd

@phonkd phonkd commented Jul 9, 2026

Copy link
Copy Markdown
Owner

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.

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>
Copilot AI review requested due to automatic review settings July 9, 2026 16:47
@phonkd
phonkd merged commit 61c2ffb into main Jul 9, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.readTimeout from the Traefik default (60s) to 12h.
  • 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";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants