mpanighetti / install-or-defer

A framework for prompting users of Jamf Pro-managed Macs to install Apple software updates.
Apache License 2.0
148 stars 28 forks source link

Mojave - Update downloaded but didn't install #40

Closed master-vodawagner closed 4 years ago

master-vodawagner commented 4 years ago

I've got a user who advised the latest security update for macOS Mojave has been hanging using the v3.0 of install or defer.

I couldn't find anything in the logs to indicate why though, the logs say it was downloading it then it was downloaded and finally the user clicked run update.

Thu Feb 6 11:33:34 GMT 2020: Start of preinstall script… Thu Feb 6 11:33:34 GMT 2020: Killing any active jamfHelper notifications... Removing existing script resources... Deleted file: //Library/Preferences/ Deleted file: //private/tmp/install-or-defer Thu Feb 6 11:33:34 GMT 2020: End of preinstall script… Thu Feb 6 11:33:35 GMT 2020: Starting install-or-defer.sh script. Performing validation and error checking... Thu Feb 6 11:33:36 GMT 2020: Validation and error checking passed. Starting main process... Thu Feb 6 11:33:37 GMT 2020: Max deferral time undefined, or not set to a positive integer. Using default value. Thu Feb 6 11:33:37 GMT 2020: Maximum deferral time: 72h:00m:00s Thu Feb 6 11:33:37 GMT 2020: Deferral deadline: 2020-02-09 11:33:37 Thu Feb 6 11:33:37 GMT 2020: Time remaining: 72h:00m:00s Thu Feb 6 11:33:37 GMT 2020: Checking for pending system updates... Thu Feb 6 11:34:47 GMT 2020: Caching all system updates... Thu Feb 6 11:34:47 GMT 2020: Software Update Tool Finding available software Downloading Security Update Developer Beta 2020-002 Downloaded Security Update Developer Beta 2020-002 Done. Thu Feb 6 11:36:21 GMT 2020: Prompting to install updates now or defer... Thu Feb 6 11:36:27 GMT 2020: User clicked Run Updates after 00h:00m:06s. Thu Feb 6 11:36:27 GMT 2020: Running all system updates...

Is there any additional logging I can look at?

mpanighetti commented 4 years ago

I'd take a look at the softwareupdate process in the system log to see what's holding it up. For what it's worth, I've successfully tested this build on a Mojave VM running the latest security update and confirmed it was able to progress to the restart phase.

Also worth noting: the logs report that this Mac was running a beta release (Security Update Developer Beta 2020-002), which might explain things not working as expected. Try removing the Mac from the beta program and running the normal release of this security update, and see if that goes through successfully.

jimgrice commented 4 years ago

We are following this on our site as we had about 5 failures, and not all Mojave. Some High Sierra and some Catalina. Not sure this is because of users running beta as we are not. Running the raw code in your script in a terminal failed to trigger the software update REBOOT as noted in the original ticket. I would encourage you to take a look to see if Apple has changed how restarts are triggered. Thanks for a great product!

master-vodawagner commented 4 years ago

So II just had a Catalina machine stuck at the same point for over an hour but as soon as I killed the PID for softwareupdate --install --$INSTALL_WHICH --no-scan 2>&1 the machine rebooted to start the install

mpanighetti commented 4 years ago

Doesn't seem like there's been any change in restart behavior since the most recent script revisions and macOS releases. Recommend trying again with v3.0.1, which improves the cleanup steps in a reinstall workflow and may help better reset an environment running v3.0 and running into issues.

jimgrice commented 4 years ago

Thanks, we found the issue on our end. Many months ago. Cheers!

-- On hackney'd steeds, the giddy blockheads fly.

From: Mario Panighetti notifications@github.com Reply-To: mpanighetti/install-or-defer reply@reply.github.com Date: Monday, July 6, 2020 at 1:02 PM To: mpanighetti/install-or-defer install-or-defer@noreply.github.com Cc: Jim Grice grice@stsci.edu, Comment comment@noreply.github.com Subject: Re: [mpanighetti/install-or-defer] Mojave - Update downloaded but didn't install (#40)

Doesn't seem like there's been any change in restart behavior since the most recent script revisions and macOS releases. Recommend trying again with v3.0.1https://urldefense.com/v3/__https:/github.com/mpanighetti/install-or-defer/releases/tag/v3.0.1__;!!CrWY41Z8OgsX0i-WU-0LuAcUu2o!iP16bp3M7jXcHjLZD-_gAiQOjjAdTcrck89vY4ObLOTB3O846XsXoqvK5LP0rg$, which improves the cleanup steps in a reinstall workflow and may help better reset an environment running v3.0 and running into issues.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/mpanighetti/install-or-defer/issues/40*issuecomment-654356741__;Iw!!CrWY41Z8OgsX0i-WU-0LuAcUu2o!iP16bp3M7jXcHjLZD-_gAiQOjjAdTcrck89vY4ObLOTB3O846XsXoqvXySz7ZQ$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AGZDNJWMUE254ZIPXMA6M5TR2H7RNANCNFSM4KQ34RRA__;!!CrWY41Z8OgsX0i-WU-0LuAcUu2o!iP16bp3M7jXcHjLZD-_gAiQOjjAdTcrck89vY4ObLOTB3O846XsXoqvqvQvn9w$.