Replies: 4 comments 2 replies
-
It's always somewhat more guess work without the full output, however, here's my guesses: Error 1 is a network error/interruption. Error 2 there is something preventing the existing files in the cache being overwritten - perhaps security software? You might need to delete the working directory (/Library/Management/erase-install) on that client and try again. |
Beta Was this translation helpful? Give feedback.
-
To answer your third issue, yes the Ventura installer could have been cached. |
Beta Was this translation helpful? Give feedback.
-
[erase-install] Caffeinating this script (pid=44755) [run_installinstallmacos] This command is now being run: installinstallmacos.py --workdir /Library/Management/erase-install --ignore-cache --pkg --version 12.6.1 --validate 99 11.5G 99 11.4G 0 0 8182k 0 0:24:39 0:24:32 0:00:07 8126k installinstallmacos.py - get macOS installers from the Apple software catalog This Mac: Device ID : J316sAP ProductID Version Build Post Date Title1 071-78704 11.5.2 20G95 2021-08-18 macOS Big Sur Build 21G217 selected. Downloading #13... Package downloaded to: /Library/Management/erase-install/InstallAssistant-12.6.1-21G217.pkg [unpack_pkg_to_applications_folder] Unpacking /Library/Management/erase-install/InstallAssistant-12.6.1-21G217.pkg into /Applications folder [erase-install] Opening DEPNotify message (language=en) [erase-install] attempting to terminate the 'caffeinate' process - Termination message indicates success /Library/Management/erase-install/erase-install.sh: line 795: 51667 Killed: 9 dep_notify_progress startosinstall > /dev/null 2>&1 |
Beta Was this translation helpful? Give feedback.
-
Have another error now on my primary Mac where this has worked before. We are using a jamf helper that gives them a dialogue at first. It's downloading it, but when it hits 1% on the Upgrade screen it goes away. I've tried this on my home network which has worked before and in our Office where it's worked. Below is the command I'm usi /Library/Management/erase-install/erase-install.sh --reinstall --pkg --version=12.6.2 --min-drive-space=35 --current-user --fs --depnotify --cleanup-after-use |
Beta Was this translation helpful? Give feedback.
-
For the most part all the devices I've used the erase-install on has worked great. We're having some test users run this from self-service, but they're getting different errors or they say it never restarts. I'm assuming they're not letting it sit to automatically install to finish the process. Some are downloading to the /Applications folder, but not kicking off.
Preparing: 31.0% Failed to download required installer asset (SFR).
[erase-install] attempting to terminate the 'caffeinate' process - Termination message indicates success
/Library/Management/erase-install/erase-install.sh: line 1078: 8217 Terminated: 15 /usr/bin/caffeinate -dimsu -w $$
/Library/Management/erase-install/erase-install.sh: line 795: 10695 Killed: 9 dep_notify_progress startosinstall > /dev/null 2>&1
2nd Error
13 012-90254 12.6.1 21G217 2022-10-24 macOS Monterey
14 012-90253 11.7.1 20G918 2022-10-24 macOS Big Sur
15 012-93766 13.0.1 22A400 2022-11-09 macOS Ventura
Build 21G217 selected. Downloading #13...
Traceback (most recent call last):
File "/Library/Management/erase-install/installinstallmacos.py", line 1367, in
main()
File "/Library/Management/erase-install/installinstallmacos.py", line 1305, in main
os.link(download_pkg, local_pkg)
FileExistsError: [Errno 17] File exists: '/Library/Management/erase-install/content/downloads/36/13/012-90254-A_BJQ1VMPD44/z225i7bzise31eo21e4kgfkafz7zq0q9tu/InstallAssistant.pkg' -> '/Library/Management/erase-install/InstallAssistant-12.6.1-21G217.pkg'
[run_installinstallmacos] Error obtaining valid installer. Cannot continue.
[erase-install] attempting to terminate the 'caffeinate' process - Termination message indicates success
/Library/Management/erase-install/erase-install.sh: line 1078: 12924 Terminated: 15 /usr/bin/caffeinate -dimsu -w $$
/Library/Management/erase-install/erase-install.sh: line 795: 13000 Killed: 9 dep_notify_progress installinstallmacos > /dev/null 2>&1
Edit
To add another issue I just came across. When I first tested this script it was a few days prior to Ventura coming out. It worked my test devices, but apparently I had it set to download the latest OS and didn't realize Ventura just came out until I ran it on my test Mac and it installed Ventura. I had this set in self service for my team to test. One engineer ran it, but it didn't complete the install. That was a few weeks ago, so after multiple tests, I had him run it again, but it was trying to install Ventura on his Mac. Could it have cached the installer in the erase-install folder? Since then, I have used this on 9 devices and it's worked.
log/Library/Management/erase-install/erase-install.sh --reinstall --pkg --os=12 --update --min-drive-space=35 --current-user --check-power --no-fs --depnotify --cleanup-after-use
Beta Was this translation helpful? Give feedback.
All reactions