1. Incident Overview
A platform migration can appear successful when ordinary application traffic works as expected. However, workloads involving large request bodies, long-running connections, or slower network conditions can expose problems that are not visible during basic smoke testing.
This incident surfaced after migrating ingress traffic to Traefik.
The App Cockpit application allowed users to upload large Android application packages. Following the migration, these uploads began failing after approximately one minute.
The browser reported:
net::ERR_HTTP2_PROTOCOL_ERRORThe application backend did not show corresponding request logs for the failed uploads.
The failure was reproducible in the TEST environment, particularly when network throttling was introduced.
This shifted the investigation away from assuming an application-level upload failure and towards examining the request path between the browser, Traefik, and the backend.
The central question was: where was the upload connection being terminated?
Incident metadata
| Attribute | Details |
|---|---|
| Component | App Cockpit |
| Environment | TEST |
| Infrastructure change | NGINX-to-Traefik migration |
| Operation affected | Large Android application uploads |
| Browser error | net::ERR_HTTP2_PROTOCOL_ERROR |
| Approximate failure duration | Around 60 seconds |
| Backend evidence | No corresponding application logs |
| Reproduction | Possible with network throttling |
| Initial investigation area | Traefik / ingress request handling |
| Root cause status | Not conclusively established from available evidence |
2. What Was Happening?
The upload workflow involved multiple components:
- A user selected a large Android application package.
- The browser initiated an HTTP/2 request.
- The request entered the Kubernetes environment through Traefik.
- Traefik was expected to forward the request to the App Cockpit backend.
- The application was expected to process the uploaded file and return a response.
After the migration, the request did not consistently complete.
The most useful observation was that the browser reported a protocol error while the backend had no corresponding request logs.
That did not prove Traefik was responsible, but it provided a strong reason to investigate the layers in front of the application.
3. Incident Timeline
The available incident details support the following sequence. Exact timestamps and durations beyond the approximate one-minute failure window were not retained.
| Stage | Observation |
|---|---|
| Migration | Ingress traffic moved from NGINX to Traefik |
| Initial validation | Normal application access remained functional |
| First symptom | Large Android application uploads started failing |
| Browser investigation | net::ERR_HTTP2_PROTOCOL_ERROR appeared |
| Backend investigation | No corresponding request logs were found |
| Reproduction | Failure reproduced in TEST |
| Controlled testing | Network throttling made the failure reproducible |
| Investigation direction | Traefik entrypoint, router and request timeout behavior became primary areas to inspect |
4. Understanding the Request Path
A successful upload depends on more than the application accepting a file.
Every network component handling the request must allow the request body to be transmitted and the connection to remain valid for the required duration.
A simplified request path:
The migration changed an important component in this path: the ingress proxy.
Even if the application and Kubernetes Service remained unchanged, the new proxy could have different defaults, configuration, request handling, and timeout behavior.
This is why ingress migrations should validate more than basic HTTP availability.
5. Why Did the Failure Occur Around 60 Seconds?
The approximately 60-second failure window was one of the strongest clues.
A request that fails consistently around a specific duration may be affected by a timeout somewhere in the request path.
However, several different timeout mechanisms can produce superficially similar symptoms.
5.1 Traefik EntryPoint read timeout
Traefik's EntryPoint configuration includes:
entryPoints:
websecure:
address: ":443"
transport:
respondingTimeouts:
readTimeout: 60s
writeTimeout: 0s
idleTimeout: 180sThe important setting here is:
readTimeout: 60sTraefik documents readTimeout as the maximum duration for reading the entire incoming request, including its body.
This makes it particularly relevant when investigating large uploads.
A slow upload may take longer to transmit its complete request body than a normal upload. If the effective request-read timeout is shorter than the time required to receive that body, the request can be terminated before the application receives it.
Important: The configuration above is an illustrative example, not a verified copy of the incident's deployed configuration. The effective value must be checked in the actual Traefik deployment.
Traefik documentation: https://doc.traefik.io/traefik/reference/install-configuration/entrypoints/
5.2 Router-level timeout configuration
Traefik also supports router-level responding timeout annotations for Kubernetes Ingress resources.
For example:
metadata:
annotations:
traefik.ingress.kubernetes.io/router.respondingtimeouts.readtimeout: "300s"The router-level readtimeout controls the maximum duration for reading the request body. When it is not set, the EntryPoint readTimeout applies.
The router-level writetimeout has a different purpose: it controls the duration for handling the request through the router, middleware, backend processing, and response writing.
These settings should not be treated as interchangeable.
Reference: https://doc.traefik.io/traefik/master/reference/routing-configuration/kubernetes/ingress/
5.3 Other components may have independent timeouts
Traefik might not be the only component capable of closing the connection.
The complete path may include:
- An external load balancer.
- A cloud network or application gateway.
- Traefik EntryPoint configuration.
- Traefik router and middleware configuration.
- Kubernetes Service and backend connection behavior.
- Application-level upload handling.
A timeout observed at the browser does not automatically identify which component initiated the termination.
6. Investigation: Following the Request Through the Stack
The investigation should establish which layer received the request, which layer stopped processing it, and whether the backend ever saw the upload.
Step 1: Confirm the failure pattern
Start by checking whether the failure is related to upload size, upload duration, or network throughput.
Test with:
- A small file.
- A large file.
- A large file with normal network conditions.
- A large file with throttled network conditions.
Record the following for every test:
| Test | File size | Network | Result | Duration |
|---|---|---|---|---|
| A | Small | Normal | Baseline | Record |
| B | Large | Normal | Observe | Record |
| C | Large | Throttled | Reproduced in incident | Around 60 seconds |
| D | Small | Throttled | Compare | Record |
The goal is to identify whether the failure correlates with elapsed time, transferred bytes, or a particular request size.
Step 2: Inspect the Traefik deployment
First identify the Traefik pods and deployment configuration.
kubectl get pods -n traefikkubectl get deployment -n traefikInspect the deployment arguments:
kubectl describe deployment traefik -n traefikLook for arguments or configuration references related to:
--entrypoints.websecure.transport.respondingtimeouts.readtimeout
--entrypoints.websecure.transport.respondingtimeouts.writetimeout
--entrypoints.websecure.transport.respondingtimeouts.idletimeoutThe exact arguments depend on the deployed Traefik version and configuration method.
If Helm manages the deployment:
helm list -n traefikhelm get values <release-name> -n traefik -aAlso inspect the rendered deployment and ConfigMaps rather than relying only on the Helm values file.
kubectl get deployment traefik -n traefik -o yamlkubectl get configmap -n traefikWhy this matters: A values file may not tell the entire story. The rendered Kubernetes resources and actual container arguments are what the running deployment receives.
Step 3: Inspect Traefik logs
Collect logs from the time of a controlled upload attempt.
kubectl logs -n traefik \
deployment/traefik \
--since=10mIf multiple replicas are running, inspect each relevant pod.
kubectl get pods -n traefik -o widekubectl logs -n traefik <traefik-pod-name> \
--since=10m \
--timestampsLook for:
- Request duration.
- HTTP status codes.
- Router and service names.
- Upstream connection errors.
- Request-read timeout messages.
- Connection termination indicators.
- Errors occurring at the same time as the browser failure.
Access logs should be enabled and configured to retain the fields needed for correlation.
A useful access-log record should capture request method, path, status, duration, router, service, origin status, and request identifiers where available.
Step 4: Verify the backend received the request
Inspect the App Cockpit pods and their logs.
kubectl get pods -n <application-namespace> -o widekubectl logs -n <application-namespace> \
<app-cockpit-pod> \
--since=10m \
--timestampsIf the application uses multiple replicas, inspect all relevant pods.
The absence of an application log is useful evidence, but it is not conclusive on its own.
Possible explanations include:
- The request never reached the backend.
- The connection was closed before the application logged the request.
- Logging occurs only after a particular processing stage.
- The request reached a different replica.
- The log pipeline dropped or delayed the event.
Correlate application logs with Traefik access logs and request timestamps before drawing a conclusion.
Step 5: Inspect Ingress and middleware configuration
Identify the route serving App Cockpit.
kubectl get ingress -Akubectl get ingress <ingress-name> \
-n <application-namespace> -o yamlIf the deployment uses Traefik CRDs, inspect the corresponding resources:
kubectl get ingressroute -Akubectl get middleware -APay particular attention to:
- Router timeout annotations.
- EntryPoint selection.
- Middleware chains.
- Buffering middleware.
- Request-size limits.
- Service port and protocol configuration.
Traefik's buffering middleware can read an entire request body before forwarding it and can enforce a maximum request body size. It therefore deserves inspection if it is attached to the upload route.
Do not assume buffering is enabled simply because a large upload fails.
Reference: https://doc.traefik.io/traefik/reference/routing-configuration/http/middlewares/buffering/
Step 6: Compare the old and new ingress behavior
A migration should be treated as a configuration comparison exercise.
Compare the old NGINX path and the new Traefik path for:
| Area | What to compare |
|---|---|
| Request body | Maximum accepted size |
| Upload handling | Streaming versus buffering |
| Read timeout | Maximum time to receive request body |
| Write timeout | Response handling duration |
| Idle timeout | Connection idle behavior |
| HTTP protocol | HTTP/1.1 and HTTP/2 behavior |
| Backend protocol | HTTP or HTTPS |
| Load balancer | Independent connection timeout |
| Logging | Request IDs and duration fields |
A successful migration of ordinary requests does not establish that large uploads have equivalent behavior.
7. Troubleshooting Decision Flow
The following flow helps isolate the layer responsible for the failure.
8. A Practical Configuration Remediation Strategy
If investigation confirms that the request-read timeout is too short for the upload workload, adjust it deliberately.
For example, an EntryPoint configuration might be changed to:
entryPoints:
websecure:
address: ":443"
transport:
respondingTimeouts:
readTimeout: 300s
writeTimeout: 0s
idleTimeout: 180sThis is an example only. The correct value depends on expected upload duration, network conditions, application behavior, and the other components in the request path.
Alternatively, where supported by the deployed Traefik version and resource type, use a route-specific setting:
metadata:
annotations:
traefik.ingress.kubernetes.io/router.respondingtimeouts.readtimeout: "300s"A route-specific configuration can be preferable when only the upload endpoint needs a longer request-body read window.
Avoid blindly increasing every timeout
A larger timeout is not automatically a better configuration.
Consider:
- How long should an upload reasonably take?
- Can clients retry interrupted uploads?
- Does the application support resumable uploads?
- What happens when a client connects but sends data extremely slowly?
- Can long-lived requests exhaust proxy resources?
- Are there independent load-balancer timeouts?
The objective is to make the upload path reliable without unnecessarily increasing resource consumption or leaving abandoned connections open.
9. Verification: Proving the Fix
A configuration change should not be considered successful just because the browser no longer displays an error once.
Use a repeatable test matrix.
| Scenario | Expected result |
|---|---|
| Small file upload | Completes successfully |
| Large file, normal network | Completes successfully |
| Large file, throttled network | Completes within the supported upload window |
| Upload near the expected timeout boundary | Behavior matches documented limits |
| Concurrent uploads | No unexpected resource exhaustion |
| Failed or interrupted upload | Clear error handling and useful logs |
Use a request test that records timing and response information where the endpoint supports it.
curl -v \
--http2 \
--output /dev/null \
--write-out '\nHTTP: %{http_code}\nTotal time: %{time_total}s\n' \
-F "file=@large-test.apk" \
https://<application-host>/<upload-endpoint>Use the application's actual upload method, authentication, headers, and endpoint. A curl test is useful for isolating protocol and proxy behavior, but it does not fully reproduce browser behavior.
During every test, correlate:
- Browser start and failure timestamps.
- Traefik access-log entries.
- Traefik error logs.
- Backend request logs.
- File size and upload duration.
- Any load-balancer or gateway connection logs.
The strongest verification is a successful upload under the same throttled conditions that previously reproduced the issue, accompanied by matching evidence across the proxy and application layers.
10. What We Know — and What We Still Need to Prove
A good RCA should separate observations from conclusions.
Confirmed incident observations
- The problem appeared after the ingress migration to Traefik.
- Large Android application uploads were affected.
- The browser returned
net::ERR_HTTP2_PROTOCOL_ERROR. - The failure occurred at approximately the one-minute mark.
- The issue could be reproduced in TEST with network throttling.
- Corresponding backend logs were not available for failed requests.
Investigation hypothesis
The Traefik websecure EntryPoint or router request-body read timeout was a plausible cause.
This hypothesis was relevant because Traefik's read timeout applies to the complete incoming request, including the body.
What the available evidence does not establish
- That Traefik definitely terminated the connection.
- That the effective deployed timeout was exactly 60 seconds.
- That the request never reached any backend replica.
- That HTTP/2 itself was defective.
- That increasing the timeout alone would resolve every upload failure.
RCA conclusion
The incident was isolated to the large-upload request path after the Traefik migration. Its timing, reproduction under throttled network conditions, and lack of corresponding backend logs made ingress-layer request handling a primary investigation area.
A request-body read timeout was a credible explanation, but the available evidence did not conclusively identify the component that terminated the connection.
The final root cause should only be recorded after correlating the effective Traefik configuration with access/error logs and confirming the behavior through controlled tests.
11. Lessons for SRE and Platform Engineering
1. Validate workload behavior, not just endpoint availability
A health check returning HTTP 200 does not validate large uploads, long-running requests, streaming, or slow-client behavior.
2. Treat ingress migrations as behavioral changes
Replacing one ingress controller with another can change timeout defaults, buffering behavior, protocol handling, and logging.
3. Missing backend logs are an investigation clue
When a request fails without application logs, trace the request from the edge inward. Do not immediately attribute the issue to the application.
4. Reproduce with controlled network conditions
Throttling helped make the failure repeatable. Reproducibility turns a vague intermittent problem into a measurable engineering investigation.
5. Correlate logs across layers
A browser error alone cannot identify the component that closed the connection. Request IDs, timestamps, durations, and upstream status information make the difference.
6. Do not confuse timeout symptoms with root cause
A one-minute failure window is a clue, not proof. Verify the effective configuration and observe which component actually terminates the request.
12. Final Takeaway
The most important lesson from this incident is that a successful ingress migration is not defined by whether normal application requests work.
It is defined by whether the new ingress layer preserves the behavior that the application depends on — including large request bodies, slower connections, long-running operations, and reliable error handling.
When a large upload fails at a predictable time and the backend has no corresponding logs, follow the request path from the edge inward.
Find the component that terminates the connection before changing timeouts across the entire platform.
---
References
- Traefik EntryPoints and responding timeouts
- Traefik Kubernetes Ingress configuration
- Traefik Buffering middleware
- Traefik Content-Length and streaming behavior
This is an evidence-led incident reconstruction. The observations reflect the available incident details; configuration examples and investigation steps are illustrative, not claims about the exact deployed configuration or a confirmed final fix.
