Increase traefik read timeout for Forgejo (Packages) #10

Closed
opened 2026-05-27 14:47:21 +00:00 by steffo · 4 comments
Owner

Attempting to upload images to Forgejo Packages fails if it takes more than 60 seconds, as Traefik, the Kubernetes ingress currently being used, closes the connection during the upload and returns 499:

ERROR: failed to push g.starshard.space/starshard/sojuauth:v0.2.1: unexpected status from PUT request to https://g.starshard.space/v2/starshard/sojuauth/blobs/uploads/kve_qjsfjc6mou6upmrwp2?digest=sha256%3Af32f49ce655a9cf7c1fd4ca1417ddb39a54cedf4b7ff35de20f8009c18dd7a96: 499 status code 499: Client Closed Request
Attempting to upload images to Forgejo Packages fails if it takes more than 60 seconds, as Traefik, the Kubernetes ingress currently being used, closes the connection during the upload and returns `499`: ``` ERROR: failed to push g.starshard.space/starshard/sojuauth:v0.2.1: unexpected status from PUT request to https://g.starshard.space/v2/starshard/sojuauth/blobs/uploads/kve_qjsfjc6mou6upmrwp2?digest=sha256%3Af32f49ce655a9cf7c1fd4ca1417ddb39a54cedf4b7ff35de20f8009c18dd7a96: 499 status code 499: Client Closed Request ```
steffo self-assigned this 2026-05-27 14:47:24 +00:00
Author
Owner

Possibly fixed by adding the following args to the kube-system/traefik deployment:

- --transport.respondingTimeouts.readTimeout=60m
- --transport.respondingTimeouts.writeTimeout=60m

Could not verify as the upload causing the error finished in 57 seconds this time 😆

Possibly fixed by adding the following `args` to the `kube-system/traefik` deployment: ```yaml - --transport.respondingTimeouts.readTimeout=60m - --transport.respondingTimeouts.writeTimeout=60m ``` Could not verify as the upload causing the error finished in 57 seconds this time 😆
steffo stopped working 2026-05-27 14:53:54 +00:00
6 minutes 29 seconds
Author
Owner

Not fixed.

Not fixed.
Author
Owner

New attempt:

- --entryPoints.websecure.transport.respondingTimeouts.readTimeout=300m
- --entryPoints.websecure.transport.respondingTimeouts.writeTimeout=300m
New attempt: ```yml - --entryPoints.websecure.transport.respondingTimeouts.readTimeout=300m - --entryPoints.websecure.transport.respondingTimeouts.writeTimeout=300m ```
steffo stopped working 2026-06-30 06:27:25 +00:00
23 minutes 13 seconds
Author
Owner

Fixed for real this time.

Fixed for real this time.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Total time spent: 29 minutes 42 seconds
steffo
29 minutes 42 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starshard/infrastructure#10
No description provided.