Skip to content

[Backport 2.33-maintenance] fix(libstore/filetransfer): restart source before upload retries#15057

Merged
internal-nix-ci[bot] merged 1 commit into2.33-maintenancefrom
backport-15047-to-2.33-maintenance
Jan 22, 2026
Merged

[Backport 2.33-maintenance] fix(libstore/filetransfer): restart source before upload retries#15057
internal-nix-ci[bot] merged 1 commit into2.33-maintenancefrom
backport-15047-to-2.33-maintenance

Conversation

@internal-nix-ci
Copy link

Automatic backport to 2.33-maintenance, triggered by a label in #15047.

When an upload fails with a transient HTTP error (e.g., S3 rate limiting
with HTTP 503), retries would fail with "curl error: Failed to open/read
local data from file/application" because the upload source was already
exhausted from the previous attempt.

Restart the source in init() to ensure it's at the beginning for both
first attempts (no-op) and retries (necessary fix).

Fixes: #15023
(cherry picked from commit fbd787b)
@internal-nix-ci internal-nix-ci bot enabled auto-merge January 22, 2026 20:28
@internal-nix-ci internal-nix-ci bot merged commit a569ebc into 2.33-maintenance Jan 22, 2026
19 checks passed
@internal-nix-ci internal-nix-ci bot deleted the backport-15047-to-2.33-maintenance branch January 22, 2026 21:07
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.

1 participant