When an install fails or does not land
An install keeps failing on one machine, reports success while the app is not there, or seems to hang the agent, and you want to know what the agent does about it and where the console shows it.
UPDATED
The Attestree agent checks what an installer did as well as its exit code, and treats a failing install as a reason to slow down rather than to retry every cycle. This page covers the failure side of what the agent does on an endpoint; app-in-use deferrals, maintenance windows and agent self-update are on rollout operations, and the endpoint page itself is on endpoint operations.
What a failure records
Since agent 0.232.0 a failed winget install, a per-user one included, records the last lines of the package manager’s own output, up to 512 characters, instead of a bare error code. Chocolatey and Scoop output is captured too. Scoop exits 0 even when a hash check fails or a manifest is missing; since agent 0.233.0 that run carries the last lines of Scoop’s own output, so it says why. The record is on the endpoint’s timeline and in the audit trail.
That output can carry secrets, so some are replaced with <redacted> before anything is recorded. Since agent 26.11.600 that covers the secret of the endpoint’s own feed address, which winget prints in each download address. Since agent 26.11.800 it also covers a credential written into an address a package’s install script downloads from: a user name and password before the host, a query value such as token=, a MyGet feed key, or a Cloudsmith download token. The host and path are kept, and a token in the path of any other host’s address is not recognised. Records from older agents keep the text they were signed with; the console hides the feed secret in them since 26.11.700, and such credentials since 26.11.800.
An install that keeps failing backs off
Since agent 0.236.1 a winget install or upgrade that fails the same way on the same endpoint stops retrying every cycle:
- The first failure of a version is retried at the next cycle, because one failure may be transient.
- The second failure in a row holds that version for 1 hour. Each further failure doubles the wait, up to 24 hours, so a version that keeps failing is still tried at least once a day.
- Since agent 0.238.0 a per-user install backs off the same way, counted for each user separately, so one user’s failures never hold another user’s install.
- A success, or a new target version, starts afresh.
Only a real answer from the installer counts. A refusal before winget ran, a pending reboot or a result the agent could not verify never starts the backoff. Each real attempt that fails still counts as a failure for the ring gate and the install-fail rate; the cycles skipped in between count neither as failures nor as successes.
An install that reports success but does not land
Some installers exit 0 without installing anything, for example a bundle whose inner MSI failed for a missing argument. Since agent 0.235.0 the agent catches that. When an installer exits 0, the package is still absent from what the endpoint has installed, and the installer exits 0 again on the next cycle, the agent reports the second run as a failure saying the install did not land. It then holds that version instead of downloading and running it every cycle. Since agent 0.239.0 an upgrade that never lands is held the same way.
The hold ends when the target version changes, when the package appears, or after 24 hours, when the installer runs once more and is held again if it still does not land.
Since platform 0.236.1:
/fleet/holdshas an Install did not land card, listing each held install with its endpoint, version, and when the hold started and was last confirmed. Endpoints whose agent is below 0.235.0 cannot report the condition, and the card says how many of your endpoints it covers.- It counts as a failure. The did-not-land verdict cancels the earlier exit-0 successes for that version on that endpoint, so the ring gate and the install-fail rate that automatic rollback proposals read see a failure, not a success.
A related case is an update that leaves a running app untouched: since agent 0.249.0, when winget reports success but the running app’s program file did not change, the agent treats it as a partial update deferred because the app is in use, and retries once the app closes. Rollout operations covers app-in-use behaviour.
Answers that mean wait, not fail
Several answers are recorded as a wait and retried later, so they do not count against a rollout:
- Another installation in progress. Since agent 0.230.0, winget’s “another installation is in progress” is retried once after 30 seconds and then held for 10 minutes. Four such answers in a row are recorded as a real failure.
- The public winget index lags. On an endpoint whose public source is not fenced, a pinned version winget cannot find yet is retried once after a source refresh, then waits 45 minutes, and the ring gate reads it as deferring, never failed (agent 0.229.0).
- The package manager is missing. Since agent 0.232.0, a Chocolatey or Scoop package on a machine without that manager is held quietly instead of being retried and reported every cycle. The Holds page lists it under Package manager not installed (platform 0.234.0).
- Install scope. A per-user install below a machine-wide copy is skipped as a scope conflict; endpoint operations has the rule.
- Since 26.11.1300 an MSIX-only version can put an endpoint on an installer-family wait, which reads “installer family not offered” or “machine-wide msix unsupported”. The gate does not count it. Since 26.11.1700 an endpoint without a copy can wait the same way for the installer family chosen for it.
Wedged installers and loops
- A 20-minute limit per step. An install step that runs longer is ended, with every process the installer started: the installer runs inside a Windows job object that allows no breakaway, so a process it starts cannot leave the job. A process that Windows starts on its behalf, such as a scheduled task, a service or a WMI process creation, is not in the job and keeps running. The sandbox applies the same limit, and a test install that runs past it does not attest (since platform 0.237.0).
- A 60-minute limit per wave. Since agent 0.242.1 a reconcile wave stops starting new steps after 60 minutes; the rest run on the next cycle.
- Looping packages. A package whose uninstall or downgrade keeps failing backs off too, and the Holds page’s Looping coordinates section lists each one with how many backoff windows it has burned, its last exit code and its versions. That evidence needs agent 0.135.0 or later, and the section says how many endpoints it covers.
- Holds survive a restart. Since agent 0.242.1 a hold, a did-not-land hold for example, still knows which installer it was about after the agent restarts. Only the failure count of the backoff above starts again.
Where this stops
- winget only, for the general backoff. It does not apply to Chocolatey or Scoop installs; downgrades and uninstalls have rules of their own.
- The backoff count is in memory. An agent restart starts it again; at most two extra attempts follow before the wait opens again.
- Did-not-land cannot say why. The agent knows the installer said success and nothing it can attribute appeared; it cannot tell a failed bundle from a copy installed under another name.
- Older agents report every exit 0 as success. Below agent 0.235.0 nothing is caught, and below 0.239.0 an upgrade that never lands is not held.
- A hold is not a fix. After 24 hours the installer runs again. The fix is usually an install argument the vendor requires, set on the version’s page, or a newer version.