-
Notifications
You must be signed in to change notification settings - Fork 465
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
Software Package installs for Windows .exe and .msi installers stuck in Pending state #22558
Comments
@PezHub What version (commit) of fleetd are you using? I can see Agent Have you reproduced with |
yes, my initial testing was with 1.33.0. Poor choice of screenshot on my part |
Additional testing shows that installers uploaded prior to migrating to Test Results Migrated to Uploaded new installer- Migrated to Uploaded new installer - Additiona Notes: install script for the same package is different upon upload for 4.56 vs 4.57. example for evernote.exe 4.56.0
4.57.0
|
IIRC /cc @getvictor |
Related comment: #20000 (comment) |
It might be a red herring. The script should either fail or succeed based on how the script contents relate to the installer itself, getting stuck in pending is not expected. |
Red herring sounds right, as MSIs are broken as well, and those have a reliable install flow. I did a little more investigation last night in the Slack thread, but didn't see anything unique about the software installer record. |
I managed to install VSCode by fixing the install script to this:
Note the ArgumentList line: |
I tested with the Slack installer (the one used in the QA wolf ticket that was a duplicate of this one) and same issue, it does launch Slack at the end of install and this makes it seem to Fleet as if it never completes installation (that it is still going on). I couldn't google the option to prevent launching after install, so I could not confirm a set of args to provide to it that would work, but it's the same root issue. |
The pending issue is known already: #22155 Many EXE installers will fail when using default script. Some MSI installers will also fail. A few weeks ago, I proposed having a library of known/tested installers/scripts so that engineers/CS/customers can refer to them. We decided not to do that since we ultimately want to have a Fleet-managed apps library. |
Following convo on Slack : https://fleetdm.slack.com/archives/C03C41L5YEL/p1727894346150629?thread_ts=1727884144.284709&cid=C03C41L5YEL I will implement the timeout for all scripts related to software installation (initial value will be 1h). So the fix will also address #22155. |
For QA, I created this branch / draft PR (NOT TO BE MERGED) with a shorter timeout of 5m so that we don't have to wait forever to test this. Gabe already knows about it but fyi @georgekarrv Branch: |
It's on edge already, if you update your channel to edge you can test now |
Windows install waits, |
Fleet version: 4.57
Web browser and operating system: ANY
π₯ Β Actual behavior
When attempting to install software on a windows host, the install gets stuck in a pending state and never completes.
π§βπ» Β Steps to reproduce
π―οΈ More info (optional)
This occurs via Self Service or manual installations and can be reproduced with both exe and msi installers
The text was updated successfully, but these errors were encountered: