Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.11.1 breaks file upload in some cases - related to PR #10569 (with solution described) #10595

Closed
2 tasks done
wollomatic opened this issue Apr 11, 2024 · 6 comments
Closed
2 tasks done

Comments

@wollomatic
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

The issue seems to be related to #10569

We have an internal app based on SvelteKit. With traefik v2.11.0 everything works, but updating to v2.11.1 breaks the file upload.

We could get it solved by increasing the transport.respondingTimeouts.tcp.lingeringTimeout (see configuration below). Maybe the default of 2s is a bit too low.

What did you see instead?

With traefik v2.11.1, the file upload breaks and traefik logs level=debug msg="'499 Client Closed Request' caused by: context canceled"

What version of Traefik are you using?

Version:      2.11.1
Codename:     mimolette
Go version:   go1.22.2
Built:        2024-04-10T09:58:54Z
OS/Arch:      linux/amd64

What is your environment & configuration?

Entrypoint before (breaks):

entryPoints:
  web:
    # [...]
  web-secure:
    address: ':10443'
    http:
      encodeQuerySemicolons: true

Entrypoint after (works again)

entryPoints:
  web:
    # [...]
  web-secure:
    address: ':10443'
    transport:
      respondingTimeouts:
        tcp:
          lingeringTimeout: 30
    http:
      encodeQuerySemicolons: true

Traefik runs on a default linux webserver with docker compose, similar to this example: https://github.com/wollomatic/traefik-hardened

If applicable, please paste the log output in DEBUG level

level=debug msg="'499 Client Closed Request' caused by: context canceled"

@hmmbob
Copy link

hmmbob commented Apr 11, 2024

Related to #10589 as well

@viceice
Copy link
Contributor

viceice commented Apr 11, 2024

Seeing this too, rolled back to v2.11.0

time="2024-04-11T12:56:49+02:00" level=debug msg="Request has been aborted [[2001:9e8:f715:6a00::]:64230 - /user/events]: net/http: abort Handler" middlewareType=Recovery middlewareName=traefik-internal-recovery
time="2024-04-11T12:56:54+02:00" level=debug msg="Request has been aborted [[2001:9e8:f715:6a00::]:64244 - /user/events]: net/http: abort Handler" middlewareName=traefik-internal-recovery middlewareType=Recover

@agilezebra
Copy link

agilezebra commented Apr 11, 2024

I suggest that, if you're going to merge the non-upload-specific lingeringTimeout tickets into this one as duplicates, that someone updates the description of the ticket to cover all of the lingeringTimeout issues.

@viceice
Copy link
Contributor

viceice commented Apr 11, 2024

I think such a feature should not be part of a patch release 😕

@agilezebra
Copy link

agilezebra commented Apr 11, 2024

I think such a feature should not be part of a patch release 😕

It absolutely should not be part of a patch release if semver is being followed, which it is according to https://doc.traefik.io/traefik/deprecation/releases/

@emilevauge
Copy link
Member

On behalf of the maintainer team, sorry for the inconvenience.
We opened a global issue to cover this bug: #10598
I'm closing this one, as we will update the global issue while we make progress on this.

@traefik traefik locked and limited conversation to collaborators May 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants