fleetd installation fails on MacOS if reinstalling/updating it through the host's software UI
Fleet version: 4.73
Web browser and operating system: N/A
💥 Actual behavior
For Mac I'm running into a failed installation but the osquery continues to work after the installation fails, which is different from the Linux case described in this bug: https://github.com/fleetdm/fleet/issues/31325.
MacOS error
Installing software...
Failed
installer: Package name is Fleet osquery
installer: Upgrading at base path /
installer: The upgrade failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An unexpected error occurred while moving files to the final destination.)
🛠️ To fix
TBD - discuss at estimation
Product designer: _________________________
🧑💻 Steps to reproduce
- Install fleetd on a macOS device.
- Upload fleetd package for macos on any team
- Try to install/reinstall these packages on the hosts from step 1
- Wait for the installation to fail
🕯️ More info (optional)
Linux originally had a similar issue, but osquery would also stop working if an admin attempted to install it via the UI. We addressed it here and as a result uncovered the MacOS case: https://github.com/fleetdm/fleet/issues/31325
Hopefully we can utilize similar fix from the Linux issue to add some code to the install scripts in the packages. This is two subtasks, one for each platform.
settled on 4
@AndreyKizimenko I couldn't replicate this ... maybe I'm not reproducing this correctly? Please refer to the following video (update completes at around the 3:25 mark):
https://github.com/user-attachments/assets/a7068839-8f58-41f3-bf9e-2d22927d6eeb
@juan-fdz-hawa could you please try re-installing this package on the host that has the same version already installed as the uploaded package?
@AndreyKizimenko
https://github.com/user-attachments/assets/63bef817-a2eb-4e25-adec-e37d0026deb4
@juan-fdz-hawa That's very strange, not something I'm seeing. I think I'll remove the Milestone and assign the ticket to myself to try to reproduce this on other machines and to investigate other potential root causes. It seemed very straightforward initially
@juan-fdz-hawa That's very strange, not something I'm seeing. I think I'll remove the Milestone and assign the ticket to myself to try to reproduce this on other machines and to investigate other potential root causes. It seemed very straightforward initially
Thanks, let me know if there's anything I can do to help.
That's very strange, not something I'm seeing. I think I'll remove the Milestone and assign the ticket to myself to try to reproduce this on other machines and to investigate other potential root causes. It seemed very straightforward initially
@AndreyKizimenko thanks! Because this bug needs repro, I removed this from the drafting board and back into the "Inbox" state: https://fleetdm.com/handbook/company/product-groups#inbox
If you successfully repro, please add it back to the drafting board.
Hi @juan-fdz-hawa , so it looks like Windows issue is indeed resolved, I can no longer repro it on any of my devices. I can however repro the macos issue, but that might be for a different reason.
When you upload a macOS fleet client package, it isn't even recognized as installed, maybe because the installed one is different from what we are generating with fleetctl? As a result, any installation fails.
Hi @juan-fdz-hawa , so it looks like Windows issue is indeed resolved, I can no longer repro it on any of my devices. I can however repro the macos issue, but that might be for a different reason.
When you upload a macOS fleet client package, it isn't even recognized as installed, maybe because the installed one is different from what we are generating with fleetctl? As a result, any installation fails.
![]()
Thanks @AndreyKizimenko - The issue with the fleet-desktop version seems like a software ingestion issue to me, I'm not sure if or how this relates to the other version, so seems like this is reproducible, I'll move it to the drafting board.
Dropping this back out in favor of #33193 because of overlap with #33967.
Quick update to confirm that I was able to reproduce with these steps:
- Installed fleetd v1.53.1 on a macOS VM (Workstations fleet).
- Uploaded
fleet-osquery.pkgas a Custom package to the Workstations fleet. (This package contains the same fleetd version as the one that was installed on the VM.) - Clicked Install on the host details page > Software > Library tab.
Fleet install fails, Yet osquery prevails, Mac needs softer sails.