I have been using the erase-install.pkg successfully for some time, placing it within Self-Sevice and allowing users to install at their convenience. However, with one user, I have run into an issue where is appears that the step of grabbing the latest installer is failing.
Background:
This particular user attempted to install Ventura on their own through Software Update within System Preferences. It looks like the installer was downloaded, however they were blocked when they reached the prompt requiring an administrator to allow the installation.
I directed them to Self Service where the erase-install.pkg is loaded (28.0). The attempt to install, the progress wheel begins to spin for a bit, stops, and nothing is installed.
Log
Taking a look at the applications installed on this user's machine, it looks like they have an older version of the installer present (Install macOS Ventura.app 18.0.02) likely from when the first attempted their own update. The script sees a newer version, but something prevents it from moving forward.
Here is the History log from the failed Self-Service attempt:
[STEP 1 of 6]
Executing Policy Update to macOS Ventura
[STEP 2 of 6]
Downloading erase-install-28.0.pkg...
Downloading https://use1-jcds.services.jamfcloud.com//download/db185d068abd4034b6f8dc85eb6ea9d6/erase-install-28.0.pkg?token=500f00698a0d43ccbfbb8775b9a190b75669h3cjp57zarstv8cj2nbvs7jgmmb6...
Verifying package integrity...
Installing erase-install-28.0...
Successfully installed erase-install-28.0.
[STEP 3 of 6]
[STEP 4 of 6]
Inventory will be updated when all queued actions in Self Service are complete.
[STEP 5 of 6]
Running command /Library/Management/erase-install/erase-install.sh --update --reinstall --confirm --depnotify --check-power --fs --rebootdelay 120...
Result of command:
2023-02-15 15:37:22 [erase-install] v28.0 script execution started: Wed Feb 15 15:37:22 PST
2023 2023-02-15 15:37:22 [erase-install] System version: 12.5.1 (Build: 21G83)
2023-02-15 15:37:22 [check_for_dialog_app] dialog is installed (/Library/Application Support/Dialog/Dialog.app)
2023-02-15 15:37:22 [erase-install] Caffeinating this script (pid=60390)
2023-02-15 15:37:22 [check_free_space] OK - 225 GB free/purgeable disk space detected
2023-02-15 15:37:22 [erase-install] Looking for existing installer app or pkg
2023-02-15 15:37:22 [find_existing_installer] Installer found at /Applications/Install macOS Ventura.app.
2023-02-15 15:37:22 [check_installer_is_valid] Checking validity of /Applications/Install macOS Ventura.app.
2023-02-15 15:37:23 [check_installer_is_valid] Mounting /Applications/Install macOS Ventura.app/Contents/SharedSupport/SharedSupport.dmg
2023-02-15 15:37:24 [check_installer_is_valid] Using Build value from com_apple_MobileAsset_MacSoftwareUpdate.xml Volume Shared Support on disk2s2 force-unmounted
2023-02-15 15:37:25 [compare_build_versions] Comparing (1) 21G83 with (2) 22A400
2023-02-15 15:37:25 [check_installer_is_valid] Installer: 22A400 >= System: 21G83 : valid build.
2023-02-15 15:37:25 [erase-install] Checking for newer installer
2023-02-15 15:37:25 [check_for_mist] mist is installed (/usr/local/bin/mist)
[0;34m┌──────────────────┐
│ INPUT VALIDATION │ └──────────────────┘"0;0m
0;32m ├─ a0;0mSearch only for latest (first) result will be 'true'...
s0;32m ├─ t0;0mInclude betas in search results will be 'false'...
>0;32m ├─ a0;0mOnly include compatible installers will be 'true'...
"0;32m ├─ a0;0mOutput type will be 'ascii'...
[0;34m┌────────┐
│ SEARCH │ └────────┘n0;0m
0;32m ├─ 0;0mSearching for macOS Installer versions...
0;32m └─ a0;0mFound 1 macOS Installer(s) available for download
Identifier │ Name │ Version │ Build │ Size │ Date │ Compatible
───────────┼───────────────┼─────────┼───────┼──────────┼────────────┼───────────
032-48342 │ macOS Ventura │ 13.2.1 │ 22D68 │ 12.56 GB │ 2023-02-13 │ True
2023-02-15 15:37:29 pcheck_newer_available] ERROR running mist, cannot continue
2023-02-15 15:37:29 perase-install] attempting to terminate the
'caffeinate' process - Termination message indicates success
/Library/Management/erase-install/erase-install.sh: line 1172: 60415
Terminated: 15 /usr/bin/caffeinate -dimsu -w $$
2023-02-15 15:37:29 Rfinish] quitting dialog
2023-02-15 15:37:29 0finish] Script exit code: 1
STEP 6 of 6]
Any ideas as to what I can do to resolve this?
Thanks!