mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Document retry attempts for different actions in Fleet (#43159)
This commit is contained in:
parent
64439dd8bf
commit
829227f7d5
8 changed files with 14 additions and 6 deletions
|
|
@ -35,7 +35,9 @@ When a host fails the selected policy, this will trigger the software to be inst
|
|||
|
||||
Once the software is installed, Fleet will automatically refetch the host's vitals and update the software inventory.
|
||||
|
||||
If the software install fails, you can reset a software automation and trigger the install on all targeted hosts again. To do this, deselect the policy in the **Policies > Manage automations** modal, select **Save**, and then reselect the policy. This will reset the policy's host passing and failing host counts and retrigger the software automations.
|
||||
Policy automation software installs are automatically attempted up to 3 total times. Each time the policy runs and fails, Fleet triggers the software install again, up to a total of 3 attempts. If the host passes the policy, the retry count resets.
|
||||
|
||||
If the software install still fails after all attempts, you can reset a software automation and trigger the install on all targeted hosts again. To do this, deselect the policy in the **Policies > Manage automations** modal, select **Save**, and then reselect the policy. This will reset the policy's host passing and failing host counts and retrigger the software automations.
|
||||
|
||||
## How does it work?
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ To learn how to use Fleet's maintenance windows, head to this [article](https://
|
|||
|
||||
### Software and scripts
|
||||
|
||||
Automations for [software](https://fleetdm.com/guides/automatic-software-install-in-fleet) and [scripts](https://fleetdm.com/guides/policy-automation-run-script) retry up to 3 times by default. Each time the policy runs and fails, Fleet triggers the software install or script again, up to a total of 3 attempts. If the host passes the policy, the retry count resets.
|
||||
Automations for [software](https://fleetdm.com/guides/automatic-software-install-in-fleet) and [scripts](https://fleetdm.com/guides/policy-automation-run-script) are attempted up to 3 total times. Each time the policy runs and fails, Fleet triggers the software install or script again, up to a total of 3 attempts. If the host passes the policy, the retry count resets.
|
||||
|
||||
### Webhooks and tickets
|
||||
|
||||
|
|
|
|||
|
|
@ -956,7 +956,7 @@ Automatic renewal is only supported if the validity period is set to 2 days or l
|
|||
|
||||
If an end user is on vacation (offline for more than 30 days), their certificate might expire, and they'll lose access to Wi-Fi or VPN. To reconnect them, ask your end users to temporarily connect to a different network so that Fleet can deliver a new certificate.
|
||||
|
||||
Fleet automatically retries each failed macOS, iOS, iPadOS, and Windows certificate once per host, checking every 30 seconds for certificates to resend. Learn more in the [4.38.0 release article](https://fleetdm.com/releases/fleet-4-38-0#failed-profile-redelivery). Automatic retries for Android is coming soon.
|
||||
Fleet automatically retries failed certificate delivery for macOS, iOS, iPadOS, Windows, and Android hosts. Apple and Android certificates are attempted up to 4 times (1 initial attempt + 3 retries). Currently, Windows are attempted only once (4 times [coming soon](https://github.com/fleetdm/fleet/issues/42981)).
|
||||
|
||||
> Currently, for NDES, Smallstep, and custom SCEP CAs, Fleet requires that the `$FLEET_VAR_SCEP_RENEWAL_ID` variable is in the certificate's OU (Organizational Unit) for automatic renewal to work for Apple and Windows hosts. For some CAs, including [NDES](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/active-directory-domain-services-maximum-limits?utm_source=chatgpt.com#:~:text=OU%20names%20can%20only%20be%2064%20characters%20long.), the OU has a maximum length of 64 characters so any characters beyond this limit get truncated, causing the renewal to fail.
|
||||
>
|
||||
|
|
|
|||
|
|
@ -103,6 +103,8 @@ Hosts that are running MDM commands or will run MDM commands to apply OS setting
|
|||
|
||||
### Failed
|
||||
|
||||
> Apple MDM profiles and Android certificates are automatically attempted up to 4 times (1 initial attempt + 3 retries) before entering the "Failed" state.
|
||||
|
||||
Hosts that failed to apply OS settings. For Windows profiles, status codes are listed in [Microsoft's OMA DM docs](https://learn.microsoft.com/en-us/windows/client-management/oma-dm-protocol-support#syncml-response-status-codes).
|
||||
|
||||
macOS, iOS, or iPadOS hosts may display OS settings as "Failed" even when MDM is turned off. This can happen if MDM was previously enabled and the enrollment profile was deleted while the host was offline. Because Fleet never received [confirmation](https://developer.apple.com/documentation/devicemanagement/check-out) that the enrollment profile was removed, it continues sending MDM commands and checking their status, which always fails.
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ Once the package is installed, Fleet will automatically refetch the host's vital
|
|||
|
||||
> .ipa apps on iOS/iPadOS will be uninstalled when the host is unenrolled from MDM.
|
||||
|
||||
> Software installs are automatically attempted up to 3 times (1 initial attempt + 2 retries) to handle intermittent network issues or temporary failures. IT admins can see error messages for all attempts in the **Host details > Activity** card.
|
||||
|
||||
## Edit the package
|
||||
|
||||
* Navigate to the **Software** page, choose a fleet, and select the software you want to edit.
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@ Apps can be installed manually on each host's **Host details** page. For macOS a
|
|||
>
|
||||
> To find the minimum OS version for the app, visit the [App Store](https://apps.apple.com/), find the app, scroll to the bottom, and look for **Compatibility** under **Information**.
|
||||
|
||||
> VPP app installs are automatically attempted up to 4 times (1 initial attempt + 3 retries) to handle intermittent issues.
|
||||
|
||||
Currently, Apple App Store (VPP) apps can't be uninstalled via Fleet. If the app is uninstalled by the end user, or when the host is unenrolled, the license won't be revoked. You can revoke the license by running [this script](https://github.com/fleetdm/fleet/blob/main/docs/solutions/macos/scripts/revoke-vpp-licenses.sh).
|
||||
|
||||
> VPP apps on iOS/iPadOS hosts will be uninstalled when the host has MDM features turned off.
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ If the script fails, you can reset a script automation and trigger the script to
|
|||
|
||||
> When script automation on a policy is added or switched to a different script, the policy's status will reset for associated hosts. This allows the newly attached script to run on hosts that had previously failed the policy.
|
||||
|
||||
* Scripts are run once regardless of exit code.
|
||||
* Policy automation scripts are automatically attempted up to 3 total times. Each time the script exits with a non-zero exit code (i.e., it fails), Fleet triggers the script again, up to a total of 3 attempts. If the host passes the policy, the retry count resets.
|
||||
* When used in policy automation, Fleet does not run shell scripts on Windows hosts or PowerShell scripts on non-Windows hosts.
|
||||
|
||||
## Via the API
|
||||
|
|
|
|||
|
|
@ -147,9 +147,9 @@ To see the end user experience on iOS/iPadOS, check out the [iOS video](https://
|
|||
|
||||
### Retries
|
||||
|
||||
For macOS, Windows, and Linux hosts, software installs are automatically attempted up to 3 times (1 initial attempt + 2 retries) to handle intermittent network issues or temporary failures. When Fleet retries, IT admins can see error messages for all attempts in the **Host details > Activity** card. The end user only sees an error message if the third, and final, attempt fails.
|
||||
For macOS, Windows, and Linux hosts, custom packages and Fleet-maintained app installs are automatically attempted up to 3 times (1 initial attempt + 2 retries) to handle intermittent network issues or temporary failures. When Fleet retries, IT admins can see error messages for all attempts in the **Host details > Activity** card. The end user only sees an error message if the third, and final, attempt fails.
|
||||
|
||||
Retries only happen for custom packages and Fleet-maintained apps. For App Store (VPP) apps, the MDM command to install the app is sent once and either succeeds or fails.
|
||||
For App Store (VPP) apps, VPP app installs are automatically attempted up to 4 times (1 initial attempt + 3 retries).
|
||||
|
||||
#### Stop setup on failed software installs
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue