Posted on 04-20-2021 06:44 AM
In our environment I'm testing the use of msupdate to manage M365 applications. I have a handful of Macs that are failing when msupdate runs. Here is an example:
bash-3.2# /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/msupdate --config Checking configuration... 2021-04-20 08:28:51.978 msupdate[3382:26241] -[NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff9977ce08 2021-04-20 08:28:51.979 msupdate[3382:26241] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff9977ce08' First throw call stack: ( 0 CoreFoundation 0x00007fff3e64e9ad exceptionPreprocess 256 1 libobjc.A.dylib 0x00007fff68d5aa17 objc_exception_throw 48 2 CoreFoundation 0x00007fff3e6c87f4 -[NSObject(NSObject) _retain_OA] 0 3 CoreFoundation 0x00007fff3e5f081f ___forwarding 1485 4 CoreFoundation 0x00007fff3e5f01c8 _CF_forwarding_prep_0 120 5 AE 0x00007fff3f80d5dd _Z23aeBroadcastForRecordingPK11AEEventImpl 289 6 AE 0x00007fff3f7d0ed0 AESendMessage 2441 7 msupdate 0x0000000102c3fc4f TerminateAppWithSIGHUPSignal 76111 8 msupdate 0x0000000102c3fa79 TerminateAppWithSIGHUPSignal 75641 9 msupdate 0x0000000102c3fed8 TerminateAppWithSIGHUPSignal 76760 10 msupdate 0x0000000102c40054 TerminateAppWithSIGHUPSignal 77140 11 msupdate 0x0000000102be4b72 main 12152 12 msupdate 0x0000000102be351d main 6435 13 msupdate 0x0000000102be3828 main 7214 14 msupdate 0x0000000102be1f51 main 855 15 libdispatch.dylib 0x00007fff6a4db5f8 _dispatch_call_block_and_release 12 16 libdispatch.dylib 0x00007fff6a4dc63d _dispatch_client_callout 8 17 libdispatch.dylib 0x00007fff6a4e28e0 _dispatch_lane_serial_drain 602 18 libdispatch.dylib 0x00007fff6a4e3396 _dispatch_lane_invoke 385 19 libdispatch.dylib 0x00007fff6a4eb6ed _dispatch_workloop_worker_thread 598 20 libsystem_pthread.dylib 0x00007fff6a71c611 _pthread_wqthread 421 21 libsystem_pthread.dylib 0x00007fff6a71c3fd start_wqthread 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6
MAU version is 4.34.21041102 and the proper config profiles are present to allow msupdate to run. The version of macOS is 10.14.6 (18G8022).
Posted on 04-20-2021 09:19 AM
I discovered that the problem is the Microsoft AutoUpdate app, and I had to replace it on all Macs, located here:
/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
It seemed to have gotten corrupted in the last MS update, and I had the same issue.
1. Created a script to delete the existing install
consoleuser=$(ls -l /dev/console | awk '{ print $3 }')
echo "logged in user is" $consoleuser
pkill -f "Microsoft AutoUpdate"
folders=(
"/Library/Application Support/Microsoft/"
"/Library/Preferences/com.microsoft.autoupdate2.plist"
)
search="*"
for i in "${folders[@]}"
do
echo "removing folder ${i}"
rm -rf "${i}"
done
2. Created a new policy to run the script and included the "Microsoft_AutoUpdate_4.33.21031401_Updater.pkg" package installer to reinstall MS Update.
Posted on 04-20-2021 12:34 PM
Thanks, @user-DEHSlZazPZ . I'd re-deployed the latest MAU to the clients in question but I hadn't uninstalled the old version first. That's something I can test.