Skip to content
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

Munki hangs when caching Apple Softwareupdates #1124

Closed
Lotusshaney opened this issue Dec 16, 2021 · 85 comments
Closed

Munki hangs when caching Apple Softwareupdates #1124

Lotusshaney opened this issue Dec 16, 2021 · 85 comments

Comments

@Lotusshaney
Copy link

When managedsoftwarecentre cli or GUI checks and downloads software updates from Apple it hangs at downloading. This happens in both the CLI and GUI and appears to be the case if the update is already cached by the OS.

Cli run

`Checking Apple Software Update catalog...
    Caching CatalogURL https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
    Options: {'url': 'https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog', 'file': '/tmp/munki_swupd_cache/mirror/apple.sucatalog.download', 'follow_redirects': True, 'ignore_system_proxy': False, 'can_resume': True, 'additional_headers': {'User-Agent': 'managedsoftwareupdate/5.6.2.4398 Darwin/21.1.0 (x86_64) (MacBookPro13,3)'}, 'download_only_if_changed': False, 'cache_data': None, 'logging_function': <function display_debug2 at 0x104cbb1f0>, 'pkginfo': None}
    URLSession_task_didReceiveChallenge_completionHandler_
    Authentication challenge for Host: swscan.apple.com Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
    Allowing OS to handle authentication request
	0..20..40..60..80..100
    Status: 200
    Headers: {'Content-Type': 'application/x-apple-plist', 'x-icloud-versionid': 'c9eabdd0-5d3f-11ec-9de7-248a078d440a', 'X-Apple-Request-UUID': '3ad263dd-a2d4-4a40-a128-e5202395bf86, 3ad263dd-a2d4-4a40-a128-e5202395bf86', 'Server': 'ATS/9.0.3', 'X-iCloud-Content-Length': '6870751', 'CDNUUID': '8fad7f73-9e0f-4b0c-b574-2d2d0a7f319d-127520717', 'X-iCLoud-Availability': '[R, B, PL]', 'Cache-Control': 'max-age=84', 'Date': 'Thu, 16 Dec 2021 11:17:04 GMT', 'Content-Length': '6870751', 'X-Responding-Server': 'massilia_protocol_028:328004902:mr33p01if-zteh08093901.mr.if.apple.com:8081:21S125:68ca597b9c33', 'X-Apple-MS-Content-Length': '6870751', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Connection': 'keep-alive', 'Accept-Ranges': 'bytes', 'Etag': '"1FC3D656BB13C298507AEDE5856842AB"', 'Last-Modified': 'Wed, 15 Dec 2021 00:41:49 GMT'}
Checking for available Apple Software Updates...
    softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '--verbose', '-d', '-a']
    Finding available software...
    Downloading macOS Monterey 12.1...`

and it just hangs forever Downloading macOS Monterey 12.1...

The GUI hangs at the same Downloading macOS Monterey 12.1...

If software update is run from command line this is the output

softwareupdate-da Software Update Tool Finding available software Downloading macOS Monterey 12.1 Downloaded: macOS Monterev 12.1

and it exits.

Running softwareupdate via ptyexec also exits

sudo /usr/local/munki/ptyexec /usr/sbin/softwareupdate --verbose -d -a
Software Update Tool

Finding available software
Downloading macOS Monterey 12.1

Downloaded: macOS Monterey 12.1

My guess is that no progress of the download in the output results in managedsoftwarecentre hanging.

Happens on macOS 10.15.x, 11.6.x and 12.x
managedsoftwarecentre version 5.6.2.4398

@gregneagle
Copy link
Contributor

This happens only while downloading macOS 12.1 specifically? Certainly have not seen this for other OS versions in my environment. Not sure about 12.1

@Lotusshaney
Copy link
Author

No its happened alot. 10.15.6-10.15.7 I had hundreds of them sticking, 11.6.0-11.6.1 and now 12.0.1-12.1 are also having the same problem

@gregneagle
Copy link
Contributor

Have not seen that here at all. Might want to post on Munki-discuss to see if others have seen it.

@Lotusshaney
Copy link
Author

I have spoken ok Slack but nothing yet

@gregneagle
Copy link
Contributor

Post on Munki-discuss as well.

@ofirgalcon
Copy link

Same problem here.

@gregneagle
Copy link
Contributor

I’d also like to point out that on Apple silicon, Munki doesn’t attempt to download Apple updates at all

@gregneagle
Copy link
Contributor

If you two don’t have any more detail, and I have no way to reproduce or observe the issue, it’s unlikely I’ll be able to address it.

@ofirgalcon
Copy link

What details would you like? I have a computer with this problem right here

@Lotusshaney
Copy link
Author

What details would you like ?

@Lotusshaney
Copy link
Author

Greg this is on Intel Macs so far. Maybe have the same behaviour as M1's and defer updates to the PrefPane ?

@gregneagle
Copy link
Contributor

On Slack you said you saw this on M1 as well. So lots of data yet to collect, and double-checking of that data.
image

I don't think this is a widespread problem, or I would have heard about it earlier. So there must be a specific trigger in your environment that is not present in mine.

@ofirgalcon
Copy link

ofirgalcon commented Dec 16, 2021

When I run with -vvv I see this, no idea if it's relevant

`Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '--verbose', '-d', '-a']

Finding available software...

2021-12-16 15:59:33.318 softwareupdate[56606:5546774] XType: com.apple.fonts is not accessible.

2021-12-16 15:59:33.319 softwareupdate[56606:5546774] XType: XTFontStaticRegistry is enabled.

Downloading macOS Monterey 12.1...`

@gregneagle
Copy link
Contributor

softwareupdate itself logs to /var/log/install.log

@Lotusshaney
Copy link
Author

2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: Starting softwareupdate CLI tool
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=6155, uid=0, installAuth=NO rights=(), transactions=0 (/usr/sbin/softwareupdate)
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: Controller: Time interval since last scan - 84.718941
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=6155, uid=0, installAuth=NO rights=(), transactions=0 (/usr/sbin/softwareupdate)
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: Controller: currentPallasAudience - (null), shouldScan - 1, productKeysInActiveForegroundTransactions - 0, client = 3, shouldScanForClient: 1, foregroundScan: 0
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: SUOSUShimController: Start legacy scan
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: Query for available updates: FINISHED
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: SUOSUShimController: Start MSU scan
2021-12-16 16:24:28+00 Beauty softwareupdate[6155]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: Repeated Cmd-R scans in close proximity: clearing catalog metadata cache
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: SUOSUServiceDaemon: Adding client: (null) (pid = 6155, uid = 0, path = /usr/sbin/softwareupdate, connection remote object interface = <NSXPCInterface: 0x7fc0056cce00>, exported interface = <NSXPCInterface: 0x7fc00569e980>, remote object proxy = <__NSXPCInterfaceProxy_SUOSUServiceClientProtocol: 0x7fc00567f9d0>)
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: SUOSUMobileSoftwareUpdateController: Set bridgeOS catalog override to catalogURL default
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=6155, uid=0, installAuth=NO rights=(), transactions=0 (/usr/sbin/softwareupdate)
2021-12-16 16:24:28+00 Beauty system_installd[823]: PackageKit: Adding client PKInstallDaemonClient pid=340, uid=200 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)
2021-12-16 16:24:28+00 Beauty softwareupdated[340]: SUScan: Scan for client pid 340 (/System/Library/CoreServices/Software Update.app/Contents/Resources/softwareupdated)
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Got status 200
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: SUScan: Using catalog https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Take com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion with type BackgroundTask for pid 781, id 0x8BDB
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:29+00 Beauty softwareupdate[6155]: SUOSUShimController: Available MSU updates: (
"<SUOSUProduct: MSU_UPDATE_21C52_patch_12.1>"
)
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion for pid 781, id 0x8BDB
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Could not cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion - no assertion found for pid 781
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:29+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:29+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:30+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:30+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:31+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: JS: No bundle at/Applications/SafeView.app
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: JS: 12.0.1
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:32+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:33+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:33+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:33+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:33+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:33+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:33+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: bridgeOS: Minimum bridge version requirement satisfied ((null)), skipping search for bridgeOS update
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:35+00 Beauty softwareupdated[340]: Failed to get bridge device
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SUScan: Elapsed scan time = 7.7
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Take com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion with type BackgroundTask for pid 781, id 0x8BDC
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Refreshing available updates from scan
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SUStatisticsManager: Successfully reported statistics for category 5
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion for pid 781, id 0x8BDC
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Scan (f=1, d=0) completed
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: 0 updates found:
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Could not cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion - no assertion found for pid 781
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Could not cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion - no assertion found for pid 781
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:36+00 Beauty softwareupdate[6155]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SUOSUServiceDaemon: Adding client: (null) (pid = 6155, uid = 0, path = /usr/sbin/softwareupdate, connection remote object interface = <NSXPCInterface: 0x7fc00a248fd0>, exported interface = <NSXPCInterface: 0x7fc00991f690>, remote object proxy = <__NSXPCInterfaceProxy_SUOSUServiceClientProtocol: 0x7fc00a2e88c0>)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SUOSUMobileSoftwareUpdateController: Set bridgeOS catalog override to catalogURL default
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: MSU updates found: (
"<SUOSUProduct: MSU_UPDATE_21C52_patch_12.1>"
)
2021-12-16 16:24:36+00 Beauty softwareupdate[6155]: External updates: (
)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: MSU updates found: (
"<SUOSUProduct: MSU_UPDATE_21C52_patch_12.1>"
)
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: External updates: (
)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: MSU updates found: (
"<SUOSUProduct: MSU_UPDATE_21C52_patch_12.1>"
)
2021-12-16 16:24:36+00 Beauty softwareupdate[6155]: Controller: Received availableUpdatesChanged notification; new updates: [MSU_UPDATE_21C52_patch_12.1]; new major updates: [002-42435, 002-23774, 002-42341, 002-23589, 071-97382, 071-78704, 001-68446, 001-51042, 001-36801, 061-26589, 041-91758]
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: Controller: Received availableUpdatesChanged notification; new updates: [MSU_UPDATE_21C52_patch_12.1]; new major updates: [002-42435, 002-23774, 002-42341, 002-23589, 071-97382, 071-78704, 001-68446, 001-51042, 001-36801, 061-26589, 041-91758]
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:36+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUShimController: Armed: 0, with mode: 0, date: (null), updates queued for later: (
)
2021-12-16 16:24:36+00 Beauty softwareupdate[6155]: SUOSUShimController: Armed: 0, with mode: 0, date: (null), updates queued for later: (
)
2021-12-16 16:24:36+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Take com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion with type BackgroundTask for pid 781, id 0x8BDF
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: CLI scan returned: (
"<SUOSUProduct: MSU_UPDATE_21C52_patch_12.1>"
)
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: Disk already has enough free space for updates (required: 11772361863, available: 35356508160)
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion for pid 781, id 0x8BDF
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: SUOSUAuthenticationManager: Disabling local authentication requirement
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: Adding client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: SoftwareUpdate: request for status for unknown product MSU_UPDATE_21C52_patch_12.1
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: AssertionMgr: Could not cancel com.apple.softwareupdate.NotifyAgentAssertion-BadgingCountChanged assertion - no assertion found for pid 781
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:37+00 Beauty SoftwareUpdateNotificationManager[781]: (null):softwareupdated: Service connection invalidated!
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: Removing client SUUpdateServiceClient pid=781, uid=501, installAuth=NO rights=(), transactions=0 (/System/Library/PrivateFrameworks/SoftwareUpdate.framework/Versions/A/Resources/SoftwareUpdateNotificationManager.app/Contents/MacOS/SoftwareUpdateNotificationManager)
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: SUOSUAuthorizationController: Non-interactive authorization succeeded for non-admin user
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: Sending authorization to notification service
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: SUOSUNotificationManagerController: Connection to notification manager service invalidated
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: SUOSUNotificationManagerController: Error connecting to notification manager service to set authorization: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.SoftwareUpdateNotificationManagerService was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.SoftwareUpdateNotificationManagerService was invalidated: failed at lookup with error 3 - No such process.}
2021-12-16 16:24:37+00 Beauty softwareupdate[6155]: SUOSUNotificationManagerController: Failed to authorize???
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: No matching products found while calculating disk space required
2021-12-16 16:24:37+00 Beauty softwareupdated[340]: No keys matching () available for download

@Lotusshaney
Copy link
Author

That was while running Mangedsoftwarecentre GUI

@Lotusshaney
Copy link
Author

On Slack you said you saw this on M1 as well. So lots of data yet to collect, and double-checking of that data. image

I don't think this is a widespread problem, or I would have heard about it earlier. So there must be a specific trigger in your environment that is not present in mine.

Sorry that was a typo. Not on M1 only Intel so far. My environment is mainly Intel with a few M1’s

@1ARdotNO
Copy link

I am seeing the same behaviour as OP,
This is on intel mac's, I have just recently enabled the Preference
defaults write /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates -bool True
But have been struggeling better part of a day to figure out what is going on here.

@Lotusshaney
Copy link
Author

Is there any more information, logs, etc you require ?

@gregneagle
Copy link
Contributor

I certainly don’t have enough information to guess what might be happening for you, or to reproduce the issue, so there’s not much I can do at this point.

@ofirgalcon
Copy link

Can you think of any tests or logs we could provide to help. This is definitely an issue that I've been noticing for a while. Could it be related to Apple's software update also downloading the file?

@gregneagle
Copy link
Contributor

Munki calls Apple’s software update to download the file…

@1ARdotNO
Copy link

I know that for other updates it prints a list of updates and says likeneeds reboot etc. This update does not print that in the message, maybe the flag is missing causing it to be misinterperted or something?
Speculation

@stephanvanhienen
Copy link

I'm having the same issue on multiple clients.
Not sure how I can give more information -vvv gives the following ;

Checking Apple Software Update catalog...
Caching CatalogURL https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
Options: {'url': 'https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog', 'file': '/tmp/munki_swupd_cache/mirror/apple.sucatalog.download', 'follow_redirects': True, 'ignore_system_proxy': False, 'can_resume': True, 'additional_headers': {'User-Agent': 'managedsoftwareupdate/5.6.2.4398 Darwin/21.1.0 (x86_64) (MacBookPro11,4)'}, 'download_only_if_changed': False, 'cache_data': None, 'logging_function': <function display_debug2 at 0x106db13a0>, 'pkginfo': None}
URLSession_task_didReceiveChallenge_completionHandler_
Authentication challenge for Host: swscan.apple.com Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
Allowing OS to handle authentication request
0..20..40..60..80..100
Status: 200
Headers: {'Content-Type': 'application/x-apple-plist', 'x-icloud-versionid': '7dd4c4c0-62c8-11ec-9aac-248a078d598e', 'X-Apple-Request-UUID': '851d10c9-e085-4eff-9aae-996f0b5b8201, 851d10c9-e085-4eff-9aae-996f0b5b8201', 'Server': 'ATS/9.0.3', 'X-iCloud-Content-Length': '6870751', 'CDNUUID': 'f33fc1cc-d1df-4eda-b1d3-40382095659b-363928554', 'X-iCLoud-Availability': '[B, PL, R]', 'Cache-Control': 'max-age=520', 'Date': 'Mon, 27 Dec 2021 09:16:25 GMT', 'Content-Length': '6870751', 'X-Responding-Server': 'massilia_protocol_028:428008504:pv49p01if-zteh17133901.pv.if.apple.com:8083:21T149:5c0afdc2c4a8', 'X-Apple-MS-Content-Length': '6870751', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Connection': 'keep-alive', 'Accept-Ranges': 'bytes', 'Etag': '"B30A6AEF308DC42989143CE0EB616102"', 'Last-Modified': 'Wed, 22 Dec 2021 01:42:58 GMT'}
Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '--verbose', '-d', '-a']
Finding available software...
2021-12-27 10:16:30.262 softwareupdate[2210:26961] XType: com.apple.fonts is not accessible.
2021-12-27 10:16:30.262 softwareupdate[2210:26961] XType: XTFontStaticRegistry is enabled.
Downloading macOS Monterey 12.1...

And then nothing.

@stephanvanhienen
Copy link

I also have a client hanging on the 'Finding available software...' ;

Checking Apple Software Update catalog...
Caching CatalogURL https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
Options: {'url': 'https://swscan.apple.com/content/catalogs/others/index-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog', 'file': '/tmp/munki_swupd_cache/mirror/apple.sucatalog.download', 'follow_redirects': True, 'ignore_system_proxy': False, 'can_resume': True, 'additional_headers': {'User-Agent': 'managedsoftwareupdate/5.6.2.4398 Darwin/21.1.0 (x86_64) (MacBookPro15,1)'}, 'download_only_if_changed': False, 'cache_data': None, 'logging_function': <function display_debug2 at 0x1060b2310>, 'pkginfo': None}
URLSession_task_didReceiveChallenge_completionHandler_
Authentication challenge for Host: swscan.apple.com Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
Allowing OS to handle authentication request
0..20..40..60..80..100
Status: 200
Headers: {'Content-Type': 'application/x-apple-plist', 'x-icloud-versionid': '7dd4c4c0-62c8-11ec-9aac-248a078d598e', 'X-Apple-Request-UUID': '851d10c9-e085-4eff-9aae-996f0b5b8201, 851d10c9-e085-4eff-9aae-996f0b5b8201', 'Server': 'ATS/9.0.3', 'X-iCloud-Content-Length': '6870751', 'CDNUUID': '970d737a-a222-437b-b82f-1b60a09cbb47-11625391', 'X-iCLoud-Availability': '[B, PL, R]', 'Cache-Control': 'max-age=304', 'Date': 'Mon, 27 Dec 2021 09:36:49 GMT', 'Content-Length': '6870751', 'X-Responding-Server': 'massilia_protocol_028:428008504:pv49p01if-zteh17133901.pv.if.apple.com:8083:21T149:5c0afdc2c4a8', 'X-Apple-MS-Content-Length': '6870751', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'Connection': 'keep-alive', 'Accept-Ranges': 'bytes', 'Etag': '"B30A6AEF308DC42989143CE0EB616102"', 'Last-Modified': 'Wed, 22 Dec 2021 01:42:58 GMT'}
Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '--verbose', '-d', '-a']
Finding available software...

@stephanvanhienen
Copy link

And there should also be a timeout when running the softwareupdate command, now managedsoftwareupdate just hangs. (my test run is still running after 4 hours)

@ofirgalcon
Copy link

Same here. Hangs for many hours until the user presses Cancel.

@stephanvanhienen
Copy link

Any news on this issue ?
Let me know if I should provide more information.

@1ARdotNO
Copy link

Since there has been no solution, I have deployed the update as a script instead.

Hopefully it is fixed before 12.2 the next update😅

@1ARdotNO
Copy link

1ARdotNO commented Jan 14, 2022

Since there has been no solution, I have deployed the update as a script instead.

Hopefully it is fixed before 12.2 the next update😅

Below is the script used, deployed as apackage with a condition to only install on mac where os version is less than 12.1

Hope this helps somebody

FILE=/Applications/Install\ macOS\ Monterey.app 
if [ ! -d "$FILE" ];then 
echo "monterey downloader not detected" 
/usr/sbin/softwareupdate --fetch-full-installer --full-installer-version 12.1 
fi 
if [ -d "$FILE" ];then 
echo "monterey downloader detected" 
'/Applications/Install macOS Monterey.app/Contents/Resources/startosinstall' --agreetolicense --forcequitapps 
fi 

@gregneagle
Copy link
Contributor

At this point the only thing we know for sure is that for some users/in some orgs, softwareupdate -da fails to exit when called by Munki. The issue is not affecting me or my org. Unless we can zero in on the precise trigger/cause, there are two options:

  1. Do nothing. Orgs affected by this should disable Munki softwareupdate checking.

  2. Change Munki to to no longer download (or install) any Apple softwareupdates on Big Sur+ (though I think some reporters claim to see this problem on macOS < Big Sur). Since this is the behavior currently on Apple silicon, and since Apple silicon deployed percentage will only go up, this seems a reasonable change.

@gregneagle
Copy link
Contributor

Even if Munki is completely successful at all times running softwareupdate -da I am disturbed by the unexpected install of the OS update at the next reboot. This alone makes me want to stop downloading OS updates at least, regardless of architecture.

@vmiller
Copy link

vmiller commented Jan 21, 2022

For what it's worth, all of my testing is done without any of my org's management (I'm even testing on my home network). And yes I realize I will likely need to configure munki in my org to no longer check for apple updates.

I wish I could convince my org to get rid of Macs in labs...

@gregneagle
Copy link
Contributor

Or get rid of "computer labs", a relic of the 1990s and early 2000s...

@vmiller
Copy link

vmiller commented Jan 21, 2022

That's even less likely to happen :-)

@vmiller
Copy link

vmiller commented Jan 21, 2022

A second run of softwareupdate completes successfully

vaughn@Vaughns-iMac ~ % date
Fri Jan 21 12:40:21 EST 2022
vaughn@Vaughns-iMac ~ % sudo softwareupdate -da
Password:
Software Update Tool

Finding available software
Downloading macOS Monterey 12.1
Downloading: 100.00%
Downloaded: macOS Monterey 12.1
vaughn@Vaughns-iMac ~ % date
Fri Jan 21 13:08:22 EST 2022
vaughn@Vaughns-iMac ~ % sudo softwareupdate -da
Password:
Software Update Tool

Finding available software
Downloading macOS Monterey 12.1

Downloaded: macOS Monterey 12.1
vaughn@Vaughns-iMac ~ % date
Fri Jan 21 13:08:38 EST 2022
vaughn@Vaughns-iMac ~ %

What about a 2nd run of software update after the first successful download? My expectation is that it would hang at the Downloading phase.

-Eric
On Jan 21, 2022, at 9:23 AM, Vaughn Miller @.> wrote:  On the same iMac16,2 - wiped and re-installed to 12.0.1 A commnadline invocation of softwareupdate is successful : @. ~ % date Fri Jan 21 07:49:47 EST 2022 @.*** ~ % sudo softwareupdate -da Password: Software Update Tool Finding available software Downloading macOS Monterey 12.1 Downloading: 100.00% Downloaded: macOS Monterey 12.1 @.*** ~ % date Fri Jan 21 08:16:02 EST 2022 @.*** ~ % install.log here : https://gist.github.com/vmiller/8baea60348eb26cdf8ad4c606bf02ae3 And as @poundbangbash noticed, the update is then applied upon a reboot. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

@poundbangbash
Copy link
Contributor

The one test machine I saw this behavior with had downloaded the update, but then 20 minutes later the logs show the update was stashed for next reboot install. It may not be a back to back consecutive run that shows the hang. It seems the stash has to happen first but I'm not sure if there is a way to trigger that or just let time pass.

@cfatechsupport
Copy link

cfatechsupport commented Feb 4, 2022

Anyone have progress on this issue? We use Munki to deploy some 3rd party apps, but have all Apple checking/installing turned off in our labs so I'm feeling like it's not Munki related.

What's Im seeing is strange softwareupdate behaviour in general. Take a look a these back to back softwareupdate -l runs made just minutes apart:

`
admin@ART-258/ % softwareupdate -l --verbose --all
Software Update Tool
Finding available software
2022-02-04 16:47:38.215 softwareupdate[1933:10275] XType: com.apple.fonts is not accessible.
2022-02-04 16:47:38.215 softwareupdate[1933:10275] XType: XTFontStaticRegistry is enabled.
No new software available.

admin@ART-258 / % softwareupdate -l --verbose --all
Software Update Tool
Finding available software
2022-02-04 16:48:11.201 softwareupdate[1948:10448] XType: com.apple.fonts is not accessible.
2022-02-04 16:48:11.201 softwareupdate[1948:10448] XType: XTFontStaticRegistry is enabled.
Software Update found the following new or updated software:

  • Label: macOS Monterey 12.2-21D49
    Title: macOS Monterey 12.2, Version: 12.2, Size: 1892345K, Recommended: YES, Action: restart,

admin@ART-258 / % softwareupdate -l --verbose --all
Software Update Tool
Finding available software
2022-02-04 16:48:22.015 softwareupdate[1951:10510] XType: com.apple.fonts is not accessible.
2022-02-04 16:48:22.016 softwareupdate[1951:10510] XType: XTFontStaticRegistry is enabled.
No new software available.

admin@ART-258 / % softwareupdate -l --verbose --all
Software Update Tool
Finding available software
2022-02-04 16:48:32.274 softwareupdate[1954:10557] XType: com.apple.fonts is not accessible.
2022-02-04 16:48:32.275 softwareupdate[1954:10557] XType: XTFontStaticRegistry is enabled.
No new software available.
`

One minute the 12.2 update appears available, the next it's not

@Lotusshaney
Copy link
Author

I see this all the time too, all the way back to Catalina. I think any cli running of softwareupdate in current macOS is troublesome !

@shoopdawoop
Copy link

This might not add anything new to this thread, but ...

I am seeing this behaviour as well on a bunch of Macs running different versions of macOS 12.x where the latest Updates would not show up in MSU even days after becoming available, e.g. today on an iMac (Intel) running macOS 12.1 (21C52) that would not download the 12.2.1 (21D62) Update (with System Preferences set to check for but not automatically download Updates).

A restart did not seem to help.

While a managedsoftwareupdate run would trigger a softwareupdate run, the Update will not be downloaded (as indicated by next to no network traffic in Activity Monitor), while downloading the Update via System Preferences does download the Update just fine (from a caching server on the LAN in this case).

And even after the Update had successfully been downloaded via System Preferences, and even after it had successfully prepared the Update for install ... Munki would still try to download the Update.

Any idea on what else to try to debug this?

This is probably not relevant here but I also noticed this special character after viewing ManagedSoftwareUpdate.log in SublimeText:

Downloading macOS<0xa0>Monterey 12.2.1

@fuzzylogiq
Copy link
Contributor

Resolved Issues in macOS 12.3 Beta
(Beta 4) Resolves an issue where software update scans may become unresponsive.

There are also test releases of 11.6.5 and macOS Catalina Security Update, but we don't get release notes for them. I sure hope this fix is backported if it's the same issue.

@shoopdawoop
Copy link

Thanks, looking forward to macOS 12.3 then.

By now I found a bunch of machines on which the issue was even more dramatic: the failing download is basically preventing managedsoftwareupdate from running, thus preventing updates from being installed or even preventing users from applying updates manually (and I thought they were just lazy), as well as preventing postflight scripts from running (and sometimes for months as seen below).

Dec 14 2021 10:49:00 +0100     Downloading macOS Monterey 12.1
Dec 14 2021 19:08:20 +0100 ************************************************************
Dec 14 2021 19:08:20 +0100 managedsoftwareupdate launched as pid 31513
Dec 14 2021 19:08:20 +0100 Another instance of managedsoftwareupdate is running as pid 1723.
Dec 14 2021 19:08:20 +0100 pid 31513 exiting.
Dec 14 2021 19:08:20 +0100 ************************************************************
Dec 14 2021 19:08:30 +0100 ************************************************************
Dec 14 2021 19:08:30 +0100 managedsoftwareupdate launched as pid 31529
Dec 14 2021 19:08:30 +0100 Another instance of managedsoftwareupdate is running as pid 1723.
Dec 14 2021 19:08:30 +0100 pid 31529 exiting.
Dec 14 2021 19:08:30 +0100 ************************************************************
Dec 14 2021 19:08:41 +0100 ************************************************************
Dec 14 2021 19:08:41 +0100 managedsoftwareupdate launched as pid 31544
Dec 14 2021 19:08:41 +0100 Another instance of managedsoftwareupdate is running as pid 1723.
Dec 14 2021 19:08:41 +0100 pid 31544 exiting.
Dec 14 2021 19:08:41 +0100 ************************************************************

As I do not have the time to dig deeper into this right now, I guess I will be setting AppleSoftwareUpdatesOnly to false now as suggested.

@shoopdawoop
Copy link

... and by now I have seen the same behaviour on macOS 10.15.7 clients as well.

Just to be clear, I do not consider this to be a problem with Munki, but an Apple issue.

And to confirm, setting AppleSoftwareUpdatesOnly to false does seem to solve the issue.

@Lotusshaney
Copy link
Author

So maybe we go with using the Apple Silicon way of software updates and use the pref pane on all platforms.

That way it should be minimal code change for Greg and gives everyone a unified workflow while maintaining Munkis fantastic prompting for Apple Updates rather than have to look at other products such as nudge.

@cfatechsupport
Copy link

Just wanted to add, we've had AppleSoftwareUpdatesOnly set to false for many years now, and it does NOT resolve this issue for us as @shoopdawoop suggests. Though I too believe this is an issue with softwareupdated that's manifesting via Munki, not necessarily a Munki issue.

@gregneagle
Copy link
Contributor

gregneagle commented Mar 4, 2022

AppleSoftwareUpdatesOnly is for a configuration where you use Munki only for Apple Software Updates. It is False by default and I would not expect that to have any bearing on this issue at all.

https://github.com/munki/munki/wiki/Apple-Software-Updates-With-Munki#using-the-munki-tools-only-to-install-apple-software-updates

@gregneagle
Copy link
Contributor

Betting @shoopdawoop meant setting InstallAppleSoftwareUpdates to false.

@shoopdawoop
Copy link

He did indeed; sorry for the mixup -> confusion.

@Lotusshaney
Copy link
Author

Any more thoughts on this ?

@PeetMcK
Copy link

PeetMcK commented Jun 3, 2022

@gregneagle A big vote for simply disabling installing updates on < Big Sur. I really want my users reminded of all updates via Munki.

I've been running into this issue at a good clip across multiple orgs.

  1. Change Munki to to no longer download (or install) any Apple softwareupdates on Big Sur+ (though I think some reporters claim to see this problem on macOS < Big Sur). Since this is the behavior currently on Apple silicon, and since Apple silicon deployed percentage will only go up, this seems a reasonable change.

@ofirgalcon
Copy link

+1

@gregneagle
Copy link
Contributor

With this commit: 3a41be2 Munki no longer attempts to download Apple software update items that require a restart on macOS 10.14 and above. These are the same updates that must be installed manually via the Software Update preferences pane. I'm hoping that this avoids the hanging -- all of the examples were OS updates.

@cfatechsupport
Copy link

Thanks Greg! I think this is a positive move, and again I still squarely blame Apple, I see the hangs elsewhere as well, it's just more obviously manifested in MSC . However, will this still notify users of the availability of a non-downloadable update? I hope so, or at least an option to do so.

@gregneagle
Copy link
Contributor

Yes, notifications are not affected. Munki traditionally (on Intel at least) has downloaded all available updates before presenting them to the user so the user doesn't agree to install them, and then wait for (a possibly long/slow) download. Now users may have to wait.

@cfatechsupport
Copy link

Damned if ya do, damned if ya don't! ;-) Sometimes I long for the good ol' days of easy macOS updates, but I do think this is the better option for where we're at now, at least in our environment. Thanks again!

@gregneagle
Copy link
Contributor

This code is in the Munki 6.0 beta release. I don't know if it will make it into a 5.7.x release.

@cfatechsupport
Copy link

I've been testing the updated au.py & su_tool.py scripts (using 5.7.3.4444) and so far so good! Just curious if not merging into 5.7.x is more about compatibility or time/effort?

@walkintom
Copy link

Just wanted to throw in that I'm now seeing this on Intel Macs going to macOS 12.6. I was tempted to disable Apple Software Update functionality within Munki but we're still a good 80/20 Intel/Silicon so it's still handy having it install things like Safari, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests