-
Notifications
You must be signed in to change notification settings - Fork 492
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
Fix issues with Fleet desktop periodically not appearing on macOS hosts #25924
Comments
Adding #19172 |
Goal
Key resultEnsure a more stable fleet desktop experience where Fleet desktop is always available on a macOS host. There have been issues where Fleet desktop periodically "disappears" on macOS hosts, so users cannot interact with Fleet desktop and cannot access their host information on Fleet. The cause is unclear, but it is thought that Fleet desktop, currently running as a daemon, maybe the issue and changing it to a launch agent instead may help. We are not certain if this will fix the issues though. We could also surface information in Fleet or on the host that the host's Fleet desktop is not running and that action needs to be taken (e.g. a restart of the host). If we decide to go this route, some product ideation will be required. Here are the current related bugs: |
@noahtalerman Recently I installed fleetd on a new laptop and ran into this issue -- Fleet Desktop didn't launch due to the error described in #25689. This is a terrible experience for a new user. I've worked with a prospect who hit this issue, and we know that customers regularly hit this issue (we have the data from our analytics). I suspect we may be losing potential customers or prospects who hit this issue on their first try of Fleet. I recommend we convert macOS Fleet Desktop into a launchd agent. This is an engineering task and does not need product input. As a second step, we need to surface issues in the Fleet UI. In addition to the Desktop not launching, we need to surface other issues, like denylisted queries. |
We're running into this during our PoC of FleetDM for new + fresh macOS installs. Is there a workaround? |
@hazcod sorry you're running into this! So far, the only solution we've found is restarting the host. Please let us know if that doesn't make Fleet Desktop show up. |
@getvictor can you please track an engineering initiated story for this? Sounds like something we should prioritize ASAP. cc @lukeheath |
@georgekarrv @getvictor @noahtalerman It seems like this should be tracked as a priority bug. We expect the Fleet Desktop icon to appear, so if it's not, agree we need to prioritize and fix ASAP per @getvictor's point about new user experience. |
Hey team! Please add your planning poker estimate with Zenhub @getvictor @ghernandez345 @gillespi314 @mna |
|
FYI @sharon-fdm, @lukeheath, @georgekarrv and I chatted and we want to get #g-orchestration's help on this bug next sprint. #g-mdm is prioritizing DigiCert (#25822). Sharon, I assigned you and moved it to "Ready to estimate" so we can estimate it next week. |
@noahtalerman, @lukeheath, @georgekarrv, NP. We can take it. |
Thanks @sharon-fdm and team! This is a tricky one that is very hard to reproduce. @getvictor and @georgekarrv may have some thoughts to pass on from their digging. |
If we move forward with the architectural fix of changing Fleet Desktop from a child of orbit daemon to its own launchd agent, the current issues will be automatically gone by the nature of the change. However, the challenge is whether we hit some new issues. So, this fix will need some in-depth QA. |
@getvictor this change would affect the fix I put in for #26526 as well, keep me in the loop please! Edit - actually maybe it'd be ok as-is, if the process exits itself after detecting the missing tray icon, launchd should restart it automatically if configured correctly. |
Timebox 3 points to find a simple solution. |
@sgress454 Your fix looks to be Linux only. This issue is macOS only. |
@sharon-fdm The 8-point estimate from the MDM team was to do a POC of the fix and run through all the related flows where macOS Fleet Desktop is involved. A full fix may be larger than 8 points. |
More context. We know this issue regularly happens to customers because we added telemetry for the 2 error messages we know about. Currently, processing this telemetry is a manual process. Here are some details on how to find the older error message: #19172 (comment) |
@getvictor did we ever explore the possibility of using
as you suggested in the previous ticket? |
I did not seriously consider it. We can try and see if this command works from orbit. If we can't reproduce this issue, we can then put in this experimental fix and monitor the user stats to see if people are still seeing it. Another thing to QA is macOS with 2 accounts -- make sure Fleet Desktop works if one user logs out and another one logs in. |
So far I haven't been able to simulate this kind of error without basically crippling my computer by, for example, killing I did notice that while Orbit does check whether a user is logged in before trying to launch the desktop, it only checks that the user isn't |
Fleet version: Observed with the latest version of Fleet's agent (fleetd)
💥 Actual behavior
Fleet Desktop sometimes disappears from the menu bar on macOS hosts and doesn't come back unless the host is restarted.
We've seen this happen after a macOS update: #25689
🧑💻 Steps to reproduce
🛠️ To fix
Update Fleet Desktop to be a launchd agent.
Flows that need to be checked
The text was updated successfully, but these errors were encountered: