Closed manicslothpdx closed 3 years ago
I also just noticed this yesterday while performing a High Sierra to Mojave upgrade, and then subsequently using the script to erase the now upgraded to Mojave computer. Currently using version 2.7.2.2 for upgrade and erase.
I also noticed this starting this week, I think. I was upgraded to Jamf Pro 10.17.1 over the weekend, were either of you? I had not changed my macOSUpgrade script before I started to notice the "Self Service interrupted restart" messages.
We are cloud hosted, so our instance was upgraded to 10.17.1 this weekend as well.
We upgraded our JSS to 10.17.1 over the weekend as well.
The catalina installer has a new switch to forcequitapps. ("--forcequitapps") It would be nice for this to be added as an option to the script by default.
You can customize the "startosinstallOptions" array to look like: startosinstallOptions+=( "--agreetolicense" "--nointeraction" "--forcequitapps" )
This should make it function.
I did try adding "--forcequitapps" to the startosinstallOptions array for installer major version greater or equal to 15, and it does appear to resolve this self service issue with restarting. Not sure if the switch causes issues with older macOS installers, so I wanted to make sure I was only applying for Catalina or newer.
I'm having the same issue, just upgraded our JSS to 10.17.1 yesterday. We have folks going from sierra to Mojave. I know the --forcequitapps flag doesn't work for the Mojave installer. Has anyone found a workaround?
I'm having the same issue while implementing Mojave upgrade from High Sierra or lower OS. Our JSS instance's cloud based, so it was auto updated to 10.17.1 as well. Hoping that there'll be a workaround.
I ended up adding killall Self\ Service
right before ##Load LaunchAgent on line 491 of the original script and that did the trick. I was testing it and saw it close self service right before it launched the full screen "Please wait as we upgrade your computer".
Thank you @sintichn . I can confirm that adding that line allows for both an upgrade from High Sierra to Mojave, as well as using the script to Erase a Mojave machine.
Thank you @sintichn too. Adding the killall command at Line 491 to the script does solve the issue.
I had opened a case with Jamf regarding this, and just heard back that a Product Issue has been filed pertaining to the issue we have seen. Jamf Product Issue: PI-007800 "macOS Self Service - Fails to restart macOS 10.13 device". You might want to reach out to your Jamf Support person and mention this is affecting you as well.
@jrouthier have you tried doing an upgrade from Mojave to Catalina? I'm curious if the failure to restart issue will also present itself when performing that workflow. I've not had a chance to test that yet. But we'll be doing mass Catalina upgrades from Mojave starting in March or April of next year. Testing the workflow for 10.14.6 to 10.15.x is on my list after I come back from winter break. Jamf's PI description makes it sound like it's only an issue for 10.13.x. but @manicslothpdx's comment above suggests differently.
@mpermann I have not tried with Catalina yet, that is on my docket to test in the next month or two (working through Mojave upgrades right now).
@jrouthier I finally got around to testing the workflow with Catalina. I added the killall Self\ Service
to the script and it worked for Catalina. Prior to adding that it did get stuck because Self Service wouldn't quit. So clearly PI-007800 extends beyond just macOS 10.13. It probably affects any OS upgrade using this workflow. It really seems like they messed something up in Self Service app that is causing this issue.
I think --forcequitapps
is the better solution here. I've tested with Catalina installers and it does what it says on the tin. Kills all open processes and restarts.
I think
--forcequitapps
is the better solution here. I've tested with Catalina installers and it does what it says on the tin. Kills all open processes and restarts.
Would you mind sharing your code? I'm having trouble with getting the script to work from Mojave>Catalina. Also, are you using a pkg'd installer as show in the readme?
Thanks in advance :)
Fixed by #140
We've been using this script for years, but during my initial Mojave->Catalina tests, the process will not auto-close the Self Service policy window. We have to close the policy description window manually, and then Self Service will quit on its own, allow the install to continue. Otherwise, the process gets stuck at a popup stating Self Service interrupted the restart. As far as I can tell, this is a new issue for us.