-
Notifications
You must be signed in to change notification settings - Fork 28
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
macOS 12 won't actually restart and install the update #76
Comments
Yeah, I suspect this is due to the very large size of newer macOS updates. If you open System Preferences > Software Update and attempt to run the update in progress, it will show you how far it's gone and estimate download and run times, could always provide that as guidance to folks waiting a long time. But I've definitely seen the update take this long when run manually, and the script unfortunately doesn't provide as much visibility on progress as the native UI. |
I'm seeing this, too. I installed the unmodified pkg on a test-machine. The flow of the script works excellent but it hangs on downloading / installing the update. (Intel / Monterey). Let it run for hours. Funny thing is, when I execute the script with sudo I can see the update downloading. Same behavior when running only the script from Jamf as a policy. If it's started at recurring checkin, the updates hang / don't get downloaded. If I call it manually with |
I am experiencing the same behavior. Tested on multiple intel Monterey machines |
IMO it might be helpful to show the output of the softwareupdate command that's being run (eg you can test by running One example I'm seeing: Finding available software {NSLocalizedDescription=Download failed, NSLocalizedRecoverySuggestion=An error occurred while downloading the selected updates. Please check your internet connection and try again.} |
Intel mac now does find the update but still stuck with the same issue, hanging after password entry. |
Wiped both my M1 and Intel Monterey testing machines, installed 12.2 on them (not 12.2.1) and started from scratch with some new testing last night. |
Thanks for helping test this out! Software update instability seems to be a pretty widespread issue with recent macOS Big Sur and macOS Monterey updates, I've seen it discussed all over MacAdmins Slack. I'd recommend reaching out to Apple Enterprise Support to see if relief might come in a future patch. |
I already have, snippet below Subject: Re: [101616806379] SoftwareUpdateD process is inconsistant Hello, When you attempted to check for software updates, I see the following error in the log archive: 2022-02-09 14:26:07.091567+0000 0x33C8F Error 0x0 14904 softwareupdated: (SoftwareUpdateMacController) [com.apple.SoftwareUpdateMacController:ScanManager] [ScanFailed] Scan failed with majorError: Error Domain=SUMacControllerError Code=7509 “[SUMacControllerErrorAccessLost=7509] Access control was lost to another client” UserInfo={NSDebugDescription=[SUMacControllerErrorAccessLost=7509] Access control was lost to another client, NSLocalizedDescription=The current software update operation was cancelled due to another process starting a new operation. Please try again later.} This indicates to me that the softwareupdate binary is being called too frequently. For testing next steps, I recommend disabling any scripted calls for softwareupdate, disabling “Collect Available software updates” in Jamf’s Inventory Collection, and disabling any other policy in Jamf that might trigger a scripted software update operation. Once completed, run the following kickstart command and perform a single software update scan, using either Terminal or System Preferences: sudo /bin/launchctl kickstart -k system/com.apple.softwareupdated Finally, I want to position that Apple recommends using the AvailableOSUpdates command to check for updates via MDM. You may want to speak with Jamf about this command or how they’ve implemented it. Below is a link to our developer documentation on this feature: https://developer.apple.com/documentation/devicemanagement/list_the_available_os_updates |
Yeah, I've turned off software update collection in Jamf Pro inventory in our environment to lighten the load on that process. Any reduction in checks in this script, or moving to MDM-based checks, would require pretty substantial adjustments, but this might be necessary in future macOS releases if these trends continue. |
Hi, sorry new at using your tool but I am still having the same issue with my test Intel system as it hangs as well. Not sure if caught everything posted earlier but seems like there isn't quite a solution yet for Intel Macs? Here's the log stream off my latest attempt: ~ % log stream --style syslog --predicate 'senderImagePath ENDSWITH "logger"' I even ran the kickstart command manually without traction or output. This was ran on a MacBook Air Intel running Monterey 12.1 (was trying to get to 12.2.1). Can you please guide me in the right direction? Thank you! |
Can someone please advise if possible? |
Hey, we unfortunately don't have surefire fixes for this issue at the moment, since software update reliability seems to have tanked considerably with recent macOS Big Sur and Monterey updates on MDM-managed Macs (which is everyone using this script framework). If you haven't already, please reach out to Apple Enterprise Support so they are aware how much of an impact these issues have, and hopefully that will help bring faster solutions. In the meantime, I'd recommend updating to the latest version of Install or Defer (5.0.1 at the moment; 5.0.2 will probably drop in the next few days with a minor bug fix for folks running beta macOS releases) and seeing if the fixes I've applied there make your update runs more reliable. |
Has anyone tried this on intel machines with the 12.3 beta yet that is out now? We really need a solution for our org soon as we have a huge number of machines. |
The last few 12.3 beta releases have indicated that they specifically address some software update stability issues so fingers crossed that this release helps. Note that you'd probably need to update to 12.3 (hopefully 11.6.5 includes this fix too) to get the fix, meaning 12.2.1-to-12.3 may still encounter issues unless Apple has a way to improve update reliability before receiving the patch. |
Looks like the official 12.3 dropped today. |
Yep, and 11.6.5 which will hopefully bring relief for #54. 🤞🏻 |
Has anyone compared Install or Defer to Nudge? What are the major differences? I would prefer to use our tried and tested Install or Defer workflow which has worked great for us in the past, but I am not sure how long our organization is willing to wait without proper enforcement. From a quick read I don't think it has any issues with Monterey and Intel machines, but from what I gather it looks like Nudge makes the user initiate the update manually via Software Update on BOTH intel and m1, and just continues to hassle the user until they do it. As opposed to Install or Defer which seems to perform things in a more truly forced / automated fashion by utilizing softwareupdated for Intel users then requiring the manual clicks by having the user navigate to Software Update through the gui for M1 only (due to apple security limitations) The more automated / forced method via softwareupdated for intel machines seems preferable. |
For what it's worth, I intend on modifying my fork of install-or-defer this
week so that the update button also pushes users to System Preferences >
Software Update. At least then, if the update fails, the user is notified
in a more transparent way (and they aren't stuck with a floating "Updates
are being installed" window"). Perhaps at the end of the deferral window,
if the user *still *hasn't updated, I'll enforce the update using the
softwareupdate command.
…On Mon, Mar 14, 2022 at 4:20 PM romnation1 ***@***.***> wrote:
Has anyone compared Install or Defer to Nudge? What are the major
differences? I would prefer to use our tried and tested Install or Defer
workflow which has worked great for us in the past, but I am not sure how
long our organization is willing to wait without proper enforcement.
From a quick read I don't think it has any issues with Monterey and Intel
machines, but from what I gather it looks like Nudge makes the user
initiate the update manually via Software Update on BOTH intel and m1, and
just continues to hassle the user until they do it. As opposed to Install
or Defer which seems to perform things in a more truly forced / automated
fashion by utilizing softwareupdated for Intel users then requiring the
manual clicks for M1 only (due to apple security limitations)
—
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHRVCXIZHX2ACTL454QUWSLU77CSNANCNFSM5OFO6FZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
From what I understand, Nudge is a great tool, but it has no hard enforcement mechanisms (it runs a persistent alert to get folks to apply updates on their own, similar conceptually to the Apple Silicon workflow for this framework but built fully around that nudging workflow), so it won't specifically address your organization's concerns about enforced update timelines.
Pull requests are welcome if you have thoughts on improving the Install or Defer user experience. Let me know how your tests go! 😁 |
12.3.1 dropped yesterday. Has anyone had a chance to test and see if updates on Intel machines are working properly now? |
I tested this morning on my 12.3 intel machine (attempting to update to 12.3.1) and am still having the same problem unfortunately. |
Seeing this same issue on some of our Intel machines - Apple Silicon machines are working as intended. Thought it was something with softwareupdate hanging and tried running - sudo launchctl kickstart -k system/com.apple.softwareupdated but no luck on the machines in question. |
TBH I think softwareupdate is a dead method to install updates :( Apple are shifting the process to MDM commands and I'm already testing a workflow of using Jamf APIs to trigger the update. |
How would that work exactly? |
Apple is no longer supporting macOS Monterey beyond security patches, and they recommend moving to the current macOS release to receive bug fixes related to software updates. Going to close this out, but if you encounter similar issues in macOS Sonoma, please submit a new issue for tracking. |
Hey,
Love the new script and Config Profile. I noticed that my computers get to last stage of "Installing updates..." hud which then it should restart... but it just doesn't? I know caching is no longer part of the process, so maybe this is because it is caching it which can take 20-30 min on its own?
Not sure if this process is supposed to take a while or if it's me/our devices.
The text was updated successfully, but these errors were encountered: