mirror of
https://github.com/Installomator/Installomator.git
synced 2026-02-19 13:02:28 +00:00
Jamf agent stuck on process when using 'prompt_user' #560
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @m3ir on GitHub.
Hi!
recently I've noticed many machines on different jamfcloud fleets, stuck on jamf process.
the script have been used it 'prompt_user', seems that the user deffer the update, I am not sure how many times, This policy trigger is already being run on machine.
nothing will stop it, until the user will type : sudo killall jamf
after that the policies will keep coming while it's on scope.
I saw devices on pending for days, and just after killing jamf process, it ran on device.
Regards,
@scriptingosx commented on GitHub:
can you re-check if this behavior appears with v8.0 there have been some improvements that should have fixed this
@m3ir commented on GitHub:
I think they've clicked "Not now", but not sure.
anyway their were with Installomator v0.5, was it in default on "prompt-user" on that version?
@TheDaveyBoy commented on GitHub:
Do you know if this is still the behavior? If the user doesn't interact with the prompt, will the prompt kill itself and move on after a certain amount of time?
@Raptor399 commented on GitHub:
Also: does the user actually click "Not now", or do they leave the prompt open and just continue with their work?
Because the latter will never terminate the Installomator script, and therefore Jamf never gets the control back. Users ignoring the popup was the number one problem causing Jamf hangups for me, which is why I created PR #140 . It introduces a configurable timeout; if the user doesn't respond within the timeout, the script will assume "Not now" and exit.
@acodega commented on GitHub:
Can't say off the top of my head, you could look at some old commits to see what it was, but I think at this point this issue can be closed if it's not being seen on the latest release, Installomator v8.0. I'll leave this open for now and close it in a few days if we don't hear anything.
@TheDaveyBoy commented on GitHub:
I figured it out.
Change
to
This will close the prompt after 120 seconds. However, you do need to change
to
The osascript of giving up after (seconds) returns nothing, so just a quick and dirty fix of having the script check for quit and update only.
@Raptor399 commented on GitHub:
Have look at Pull Request #140, which tries to solve the problem in a similar fashion, but makes the timeout configurable instead of hardcoded.