-
-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Uploads that take longer than 60 seconds and use HTTP/2 are terminated by Traefik due to the default readTimeout of 60 seconds. This issue does not occur when using HTTP/3.
How to reproduce:
- Open Firefox and go to
about:config - Set
network.http.http3.enabledtofalseto force HTTP/2 - Start a file upload via the Nextcloud web interface (Use a tool like NetLimiter to throttle the upload speed so that it lasts longer than 60 seconds)
- The upload fails (with a 502 Bad Gateway Timeout)
Root cause:
Traefik’s default readTimeout is set to 60 seconds. Under HTTP/2, if no data is received during that period, Traefik closes the connection—even if the upload is still in progress.
Workaround:
Setting this label on the affected container resolves the issue:
traefik.http.services.nextcloud.loadbalancer.server.readtimeout=120sSuggestion:
It would be helpful if mash could either:
- Document this edge case for Nextcloud and similar apps with long-lived uploads
- Or apply a higher default
readTimeoutfor such cases automatically
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working