Profiles stuck in "Verifying" due to query ingestion parsing failure
Fleet versions
- Discovered: v4.84.3
- Reproduced:
💥 Actual behavior
A persistent error is appearing in server logs, and profiles are getting stuck in a pending state. The following error log is repeatedly observed:
{"ts":"2026-05-20T20:55:49Z","level":"error","component":"http","method":"POST","uri":"/api/v1/osquery/distributed/write","took":1121613245,"host_id":9221,"ip_addr":"89.240.194.182","x_for_ip_addr":"89.240.194.182","ingestion-err":"ingesting query mdm_config_profiles_darwin_with_user: parsing time \"2026-04-10 4:25:38\\xe2\\x80\\xafPM +0000\" as \"2006-01-02 15:04:05 -0700\": cannot parse \"\\xe2\\x80\\xafPM +0000\" as \" \"","err":"error in query ingestion"}
When queried directly, timestamps in the mdm_profiles table appear to have a valid format:
"2026-04-10 4:25:38 PM +0000"
🛠️ Expected behavior
Profiles should not get stuck, and time parsing within ingestion should handle this format gracefully. This specifically seems to happen with user channel profiles we think
We should also try to see if we can understand why we're seeing this format and if it's an Apple bug, file feedback
🧑💻 Steps to reproduce
- Observe Fleet server logs while running osquery distributed queries involving configuration profiles on Darwin hosts with a time value formatted as seen above.
- Profiles remain in pending state.
- Log error with details: parsing time failure including "\xe2\x80\xafPM +0000" pattern.
🕯️ More info (optional)
- The error appears related to time format parsing in the ingestion logic when handling responses from Darwin hosts.
- Affects configuration profiles associated with macOS devices.
Actual Repro steps unknown. See comment below
@ksatter any idea what OS version the hosts are on where the problem has been observed?
I could not repro this after many attempts including many attempts with Claude and my own research but would love if someone else figures it out. Since I couldn't I did general smoke testing of macOS profile verification.
The basic signature of this if you repro it is SELECT * FROM macos_profiles will return 12-hour format install dates with AM/PM markers instead of the usual 24 hour formats
Fix verified. Could not reproduce the original issue, but verified that macOS profiles do not get stuck in "Verifying" and date-parsing error is resolved.
Date parsing
- The dates from the customer's report parse correctly - times are written in 12-hour AM/PM form.
- All the date shapes are handled: 24-hour, 12-hour AM/PM, the spacing variants, and edge times like noon and just-after-midnight
- An unreadable or empty date produces a specific error
End-to-end verification
- Fed each date format through the server the same way a Mac reports its profiles: every valid format was accepted cleanly with no errors
- The bad-input cases produced the new error and left the verification cycle healthy
- Same outcome for user-level profiles
No regression on a real Mac
- On enrolled Mac (macOS 26), profiles moved from "Verifying" to "Verified" normally, with no parsing errors
- That Mac reports its dates in the standard 24-hour format
Stuck profiles wait, Time parsing now refined, Fleet users breathe light.