Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiles are incorrectly marked as "Failed" #15725

Closed
noahtalerman opened this issue Dec 18, 2023 · 3 comments
Closed

Profiles are incorrectly marked as "Failed" #15725

noahtalerman opened this issue Dec 18, 2023 · 3 comments
Assignees
Labels
~backend Backend-related issue. bug Something isn't working as documented bug-mac-profiles Defect in Mac MDM profiles. #g-mdm MDM product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release.
Milestone

Comments

@noahtalerman
Copy link
Member

noahtalerman commented Dec 18, 2023

If you're using Fleet's MDM features, this bug might affect your Fleet.

If you're running into the issue, here's how to resolve it:

Update the Fleet database using the following SQL query, which will cause the failed profiles to be
redelivered to the host:

UPDATE
  host_mdm_apple_profiles
SET
  status = NULL,
  retries = 0
WHERE
  status = 'failed' AND
  (detail = 'Failed, was verifying' OR detail = 'Failed, was verified') AND
  host_uuid = 'HOST_UUID';

Replace HOST_UUID with the UUID of the host you want to target.

If you're uncomfortable working with the Fleet database directly, you can download all profiles, remove them from Fleet, and re-add them to resolve the issue.

If you have any questions about these resolution steps, please post a message in our support channel.


Fleet version: 4.42


💥  Actual behavior

In Fleet, several hosts have the majority of their profiles marked as failed when in fact these profiles were installed on the device (one host is here):

Screenshot 2023-12-18 at 3 34 30 PM

@noahtalerman noahtalerman added bug Something isn't working as documented :reproduce Involves documenting reproduction steps in the issue labels Dec 18, 2023
@noahtalerman noahtalerman changed the title Profile Profile status is incorrect Dec 18, 2023
@noahtalerman noahtalerman added #g-mdm MDM product group and removed :reproduce Involves documenting reproduction steps in the issue labels Dec 18, 2023
@sabrinabuckets
Copy link
Contributor

Possibly a duplicate/may be resolved by #15678

@sabrinabuckets sabrinabuckets added ~released bug This bug was found in a stable release. :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. labels Dec 19, 2023
@lukeheath lukeheath added this to the 4.43.0-tentative milestone Dec 21, 2023
@lukeheath lukeheath added bug-mac-profiles Defect in Mac MDM profiles. ~backend Backend-related issue. labels Jan 4, 2024
@gillespi314 gillespi314 self-assigned this Jan 8, 2024
@noahtalerman noahtalerman changed the title Profile status is incorrect Profile's incorrectly marked as "Failed" Jan 9, 2024
@noahtalerman noahtalerman changed the title Profile's incorrectly marked as "Failed" Profiles are incorrectly marked as "Failed" Jan 9, 2024
@sabrinabuckets
Copy link
Contributor

Worked with @gillespi314 to validate the fix in my local environment: triggered a Failed status for a profile, and used the SQL query to remediate.

Approved for release.

@fleet-release
Copy link
Contributor

Bug in profile status,
Fleet's fix restores the truth,
Devices breathe easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
~backend Backend-related issue. bug Something isn't working as documented bug-mac-profiles Defect in Mac MDM profiles. #g-mdm MDM product group :release Ready to write code. Scheduled in a release. See "Making changes" in handbook. ~released bug This bug was found in a stable release.
Projects
None yet
Development

No branches or pull requests

5 participants