Repository navigation
Closed
Labels
#g-auto-patchingProduct group focused on auto patching software~communityA issue or pull request submitted by the community.~coreFeature contributes to the core purpose of Fleet: guide people out of the thicket through openness.
Milestone
Description
Fleet versions
- Discovered:
- Reproduced:
Web browser and operating system:
💥 Actual behavior
In the softwareBatchUpload function, fleet downloads software packages one by one (creates goroutines in a wait group with g.SetLimit(1) in a loop). If one of the downloads failed, fleet continues downloading all the other packages, even though the batch will always fail if even one download failed.
Example where downloads are logged:
[+] would've applied 5 software packages for fleet repro-49811
[+] downloading software package - ZoomInstallerIT.pkg ...
[+] downloaded software package - ZoomInstallerIT.pkg
[+] downloading software package - 1password-latest.deb ...
[+] downloaded software package - 1password-latest.deb
[+] downloading software package - htop-3.4.1-1.fc42.aarch64.rpm ...
Error: could not download installer htop-3.4.1-1.fc42.aarch64.rpm
[+] downloading software package - Chrome for testing ...
[+] downloaded software package - Chrome for testing
[+] downloading software package - Notion ...
[+] downloaded software package - Notion
Error: applying software installers for fleet "repro-49811": validation failed: software.url Couldn't edit software. URL ("https://rpmfind.net/linux/fedora/linux/updates/42/Everything/aarch64/Packages/h/htop-3.4.1-1.fc42.aarch64.rpm") returned "Not Found". Please make sure that URLs are reachable from your Fleet server.
🛠️ Expected behavior
Gitops stops downloading packages after one of the packages fail, because packages after first failure won't be applied.
🧑💻 Steps to reproduce
These steps:
- Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
- Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
- TODO
- TODO
🕯️ More info (optional)
N/A
Metadata
Metadata
Assignees
Labels
#g-auto-patchingProduct group focused on auto patching software~communityA issue or pull request submitted by the community.~coreFeature contributes to the core purpose of Fleet: guide people out of the thicket through openness.
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
Activity
[-]Make batch installer download cancel as soon as a download fails.[/-][+]Make batch installer download cancel as soon as a download fails[/+]3 remaining items
Stop batch software upload after first package failure (#53407)
Brajim20 commentedon Oct 9, 2026
QA Pass: 12/12 checks on
main(2b79a2a) vsrc-minor-fleet-v4.93.0(82b6b87). Batch software apply and dry-run, failure at the start, middle and end of the batch, a download failure and an invalid-package failure, a fleet and No team, the reporter'sfleetctl gitopspath, and failed batches leaving existing software untouched. Packages were served from a logging server, so "not downloaded" means Fleet never requested the URL.fleetctl gitops --dry-run, 404 in the middlefleet-release commentedon Oct 29, 2026
Downloads cease when one fails
wasted bandwidth now saved
the fleet moves faster