macOS Sierra intermittently fails to install

easyedc
Valued Contributor II

Testing out our planned upgrade to 10.12.2 (need to keep it at .2 due to latest Digital Guardian support release) and finding that it seems to randomly fail. By fail I mean that the policy executes cleanly, the system reboots, but it just seems to shut down. It has to be manually powered on and when it boots it's still at 10.11.6 (or whatever OS it was at before testing). If you re-cache the installer and try again, same thing over, and over, and over. Digging through logs I don't see anything that jumps out at me as an outright failure. I've dug through my /var/log/install.log and jamf.log. Neither seem to write any errors but neither seem to write anything related to the in-place upgrade.

From /var/log/install.log:

Wed Feb 01 11:17:01 TEST WORKSTATION jamf[10238]: Executing Policy Upgrade to macOS 10.12.2
Wed Feb 01 11:17:01 TEST WORKSTATION jamf[10238]: Verifying package integrity...
Wed Feb 01 11:17:19 TEST WORKSTATION jamf[10238]: Installing Install macOS Sierra 10.12.2...
Wed Feb 01 11:17:26 TEST WORKSTATION jamf[10238]: Preparing for in-place OS upgrade...
Wed Feb 01 11:18:43 TEST WORKSTATION jamf[10238]: Blessing in-place OS upgrade directory...
Wed Feb 01 11:18:44 TEST WORKSTATION jamf[10653]: Background Restart
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Immediate Restart
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Sending restart to System Events
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Sending Restart command
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Attempting normal restart
Wed Feb 01 11:18:46 TEST WORKSTATION jamf[54]: Network state changed, checking for policies...
Wed M02 01 11:18:47 TEST WORKSTATION jamf[10743]: Error Domain=com.jamf.jamfsecurity.error Code=-50 "One or more parameters passed to a function were not valid." UserInfo={NSLocalizedDescription=One or more parameters passed to a function were not valid.}
Wed Feb 01 13:34:57 TEST WORKSTATION jamf[54]: Informing the JSS about login for user root
Wed Feb 01 13:35:05 TEST WORKSTATION jamf[54]: Network state changed, checking for policies...
Wed Feb 01 13:35:06 TEST WORKSTATION jamf[301]: Checking for policies triggered by "networkStateChange"...
Wed Feb 01 13:35:08 TEST WORKSTATION jamf[301]: The management framework will be enforced as soon as all policies are done executing.
Wed Feb 01 13:35:08 TEST WORKSTATION jamf[301]: Adding launchd task com.jamfsoftware.task.checkForTasks...
Wed Feb 01 13:35:10 TEST WORKSTATION jamf[384]: Enforcing management framework...
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Existing plug-in, 1.plist, is up to date.
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Enforcing scheduled tasks...
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Removing existing launchd task /Library/LaunchDaemons/com.jamfsoftware.task.1.plist...

and from /var/log/jamf.log:

Wed Feb 01 11:16:59 TEST WORKSTATION jamf[10238]: Checking for policy ID 304...
Wed Feb 01 11:17:01 TEST WORKSTATION jamf[10238]: Executing Policy Upgrade to macOS 10.12.2
Wed Feb 01 11:17:01 TEST WORKSTATION jamf[10238]: Verifying package integrity...
Wed Feb 01 11:17:19 TEST WORKSTATION jamf[10238]: Installing Install macOS Sierra 10.12.2...
Wed Feb 01 11:17:26 TEST WORKSTATION jamf[10238]: Preparing for in-place OS upgrade...
Wed Feb 01 11:18:43 TEST WORKSTATION jamf[10238]: Blessing in-place OS upgrade directory...
Wed Feb 01 11:18:44 TEST WORKSTATION jamf[10653]: Background Restart
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Immediate Restart
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Sending restart to System Events
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Sending Restart command
Wed Feb 01 11:18:45 TEST WORKSTATION jamf[10682]: Attempting normal restart
Wed Feb 01 11:18:46 TEST WORKSTATION jamf[54]: Network state changed, checking for policies...
Wed M02 01 11:18:47 TEST WORKSTATION jamf[10743]: Error Domain=com.jamf.jamfsecurity.error Code=-50 "One or more parameters passed to a function were not valid." UserInfo={NSLocalizedDescription=One or more parameters passed to a function were not valid.}
Wed Feb 01 13:34:57 TEST WORKSTATION jamf[54]: Informing the JSS about login for user root
Wed Feb 01 13:35:05 TEST WORKSTATION jamf[54]: Network state changed, checking for policies...
Wed Feb 01 13:35:06 TEST WORKSTATION jamf[301]: Checking for policies triggered by "networkStateChange"...
Wed Feb 01 13:35:08 TEST WORKSTATION jamf[301]: The management framework will be enforced as soon as all policies are done executing.
Wed Feb 01 13:35:08 TEST WORKSTATION jamf[301]: Adding launchd task com.jamfsoftware.task.checkForTasks...
Wed Feb 01 13:35:10 TEST WORKSTATION jamf[384]: Enforcing management framework...
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Existing plug-in, 1.plist, is up to date.
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Enforcing scheduled tasks...
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Removing existing launchd task /Library/LaunchDaemons/com.jamfsoftware.task.1.plist...
Wed Feb 01 13:35:11 TEST WORKSTATION jamf[384]: Adding launchd task com.jamfsoftware.task.1...
Wed Feb 01 13:35:12 TEST WORKSTATION jamf[384]: Creating launch daemon...
Wed Feb 01 13:35:12 TEST WORKSTATION jamf[384]: Creating launch agent...
Wed Feb 01 13:35:13 TEST WORKSTATION jamf[444]: Informing the JSS about login for user root
Wed Feb 01 13:55:15 TEST WORKSTATION jamf[858]: Checking for policies triggered by "recurring check-in"...

and from the policy reporting back to my JSS, er JAMF Pro Server:

[STEP 1 of 7]
Executing Policy Upgrade to macOS 10.12.2
[STEP 2 of 7]
Verifying package integrity...
Installing Install macOS Sierra 10.12.2...
Preparing for in-place OS upgrade...
Closing package...
[STEP 3 of 7]
Running script Digitial Guardian uninstall...
Script exit code: 0
Script result: 2017-02-01 11:18:24.620 dgctl[10441:78383] OK
2017-02-01 11:18:39.757 dgctl[10443:78394] Got no response from daemon.
2017-02-01 11:18:39.758 dgctl[10443:78394] Failed to send command to dgdaemon.
[STEP 4 of 7]
Running script DisableAppleIDpopup.sh...
Script exit code: 0
Script result:
[STEP 5 of 7]
Running script McAfee Uninstall...
Script exit code: 0
Script result: /Library/Application Support/JAMF/tmp/McAfee Uninstall: line 3: /Library/McAfee/cma/uninstall.sh: No such file or directory
[STEP 6 of 7]
[STEP 7 of 7]
Blessing in-place OS upgrade directory...
Creating Reboot Script...

and the ONLY difference I can see is the variance in Step 2 of my policy and the line about "Enabling core storage for disk disk0s2...":

[STEP 2 of 7]
Verifying package integrity...
Installing Install macOS Sierra 10.12.2...
Preparing for in-place OS upgrade...
Enabling core storage for disk disk0s2...
Closing package...

I'm going to try to upgrade from using the cache'd package and just un-zipping the installer file, but I have a feeling that will work. Anyone else come across this? Any one have ideas? Or, anyone have any suggestions about where I can find the installer log for macOS assuming it's not the actual install.log file?

1 ACCEPTED SOLUTION

easyedc
Valued Contributor II

So what happens when you look for alternative solutions? You may find the alternative answer. Running this via GUI has put this message up:538ac925bd9c4475b52edf2240e7171d

After seeing that error, I went to Apple's Sierra Requirements and my test workstations that are failing are all Mac Pros older than 2010 which would make sense. Case closed.

View solution in original post

1 REPLY 1

easyedc
Valued Contributor II

So what happens when you look for alternative solutions? You may find the alternative answer. Running this via GUI has put this message up:538ac925bd9c4475b52edf2240e7171d

After seeing that error, I went to Apple's Sierra Requirements and my test workstations that are failing are all Mac Pros older than 2010 which would make sense. Case closed.