erase-install: Install/Update fails at very end as it is about to start the update for macOS - Error Timeout Reached

Describe the bug A clear and concise description of what the bug is. I am in the process of updating 12.6 > 12.6.1 on x86 and arm64 laptops and on some I am seeing issues where it gets to the very end and then fails or files out and the error message that is provided is vague. Recently I was told to use the --update and this will verify if there is a current install then if it is valid it will use it or overwrite it.

image

To Reproduce

  • If applicable, please provide the full command used when running the script. Full command:

image

  • Please describe how the script was run. [e.g. Standalone via Terminal, in Jamf Policy from the uploaded pkg, in Jamf policy from uploaded script only, via another MDM provider] The script is being run from Jamf Pro as a policy. and set to run 3 times if it fails

Screenshot 2022-11-30 at 4 06 57 PM

Expected behavior A clear and concise description of what you expected to happen. I am expecting the upgrade process to finish successfully. I would also like to know why it might be failing with a little more clarity. I am not saying the logs are not useful here, not at all, I am saying that all looks to be going well then it simply times out and fails at the end.

Code/log output Please supply the full command used, and if applicable, add full output from Terminal or from /var/log/erase-install.log. Either upload the log or paste the output in a code block (triple backticks at the start and end of the code block please!).

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2022-11-30 at 3 15 26 PM Screenshot 2022-11-30 at 3 16 40 PM

Screenshot 2022-11-30 at 3 16 51 PM

Environment (please complete the following information):

  • OS version [e.g. 12.0.1] = 12.6.0
  • erase-install version [e.g. 24.0] - please upgrade to the latest version before submitting a bug report. Latest version 27.1

Additional context Add any other context about the problem here. I see the process start, I see in the logs that the end user confirms the install, and the password for the volume owner is supplied and accepted. The laptop has adequate storage and is connected to power.
I also truly appreciate your help and dedication to this process as it has helped me and my organization upgrade many laptops. I am wanting to figure out if this error or the error is due to a corrupt downloaded file if the laptop goes to sleep and if the commands to startosinstall are failing.
Xnip2022-11-30_15-19-00 ![Xnip2022-11-30_15-20-12](https://user-im Xnip2022-11-30_15-21-18 ages.githubusercontent.com/101146428/204917606-9dd99e8c-4777-4966-a8c5-abc5f683b8e8.jpg)

I think is also important to note that in testing I am not seeing this issue on most of my test pilot laptops and team.

The PID does vary at the end of the run if the process does fail.

Screenshot 2022-11-30 at 4 06 14 PM

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 31 (12 by maintainers)

Most upvoted comments

For all of you still seeing the error after upgrading to v29.2, can you make sure that if there was an installer downloaded by 29.1, you delete it before trying again. Using --overwrite will achieve this.

I have exact error code for this issue as well, however, it doesn’t seems the issue related to startosinstall. Here is the log

2023-02-20 23:34:16 [erase-install] v29.0 script execution started: Mon Feb 20 23:34:16 IST 2023
2023-02-20 23:34:16 [erase-install] System version: 12.6 (Build: 21G115)
2023-02-20 23:34:16 [check_for_dialog_app] dialog is installed (/Library/Application Support/Dialog/Dialog.app)
2023-02-20 23:34:16 [erase-install] Caffeinating this script (pid=77685)
2023-02-20 23:34:16 [check_free_space] OK - 61 GB free/purgeable disk space detected
2023-02-20 23:34:16 [erase-install] Looking for existing installer app or pkg
2023-02-20 23:34:16 [find_existing_installer] Installer found at /Applications/Install macOS Ventura.app.
2023-02-20 23:34:16 [check_installer_is_valid] Checking validity of /Applications/Install macOS Ventura.app.
2023-02-20 23:34:16 [check_installer_is_valid] Mounting /Applications/Install macOS Ventura.app/Contents/SharedSupport/SharedSupport.dmg
2023-02-20 23:34:17 [check_installer_is_valid] Using Build value from com_apple_MobileAsset_MacSoftwareUpdate.xml
Volume Shared Support on disk5s2 force-unmounted
2023-02-20 23:34:19 [compare_build_versions] Comparing (1) 21G115 with (2) 22D49
2023-02-20 23:34:19 [check_installer_is_valid] Installer: 22D49 >= System: 21G115 : valid build.
2023-02-20 23:34:19 [erase-install] Checking if the cached installer matches requested build...
2023-02-20 23:34:19 [compare_build_versions] Comparing (1) 22D49 with (2) 22D49
2023-02-20 23:34:19 [compare_build_versions] 22D49 = 22D49
2023-02-20 23:34:19 [erase-install] Existing installer matches requested build.
2023-02-20 23:34:19 [erase-install] Running on architecture arm64
2023-02-20 23:34:19 [get_user_details] ask for user credentials (attempt 1/5)
2023-02-20 23:34:19 [get_default_dialog_args] Invoking utility dialog
2023-02-20 23:34:19.805 Dialog[78143:127274016] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2023-02-20 23:34:19.806 Dialog[78143:127274016] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2023-02-20 23:34:19.806 Dialog[78143:127274016] XType: unable to make a connection to the font daemon!
2023-02-20 23:34:19.806 Dialog[78143:127274016] XType: XTFontStaticRegistry is enabled as fontd is not available.
yes rushikadeoras is a member of everyone
2023-02-20 23:34:27 [get_user_details] rushikadeoras is a Volume Owner
2023-02-20 23:34:27 [check_password] Success: the password entered is the correct login password for rushikadeoras.
2023-02-20 23:34:27 [check_power_status] OK - AC power detected
2023-02-20 23:34:27 [erase-install] Installer is at: /Applications/Install macOS Ventura.app
2023-02-20 23:34:27 [check_free_space] OK - 61 GB free/purgeable disk space detected

2023-02-20 23:34:27 [erase-install] WARNING! Running /Applications/Install macOS Ventura.app with reinstall option

2023-02-20 23:34:27 [erase-install] Sending to dialog: quit:
2023-02-20 23:34:27 [get_default_dialog_args] Invoking utility dialog
2023-02-20 23:34:28 [erase-install] Writing LaunchDaemon which will remove /Library/Management/erase-install at next boot
2023-02-20 23:34:28.111 Dialog[79011:127275924] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}
2023-02-20 23:34:28.111 Dialog[79011:127275924] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts
2023-02-20 23:34:28.111 Dialog[79011:127275924] XType: unable to make a connection to the font daemon!
2023-02-20 23:34:28.111 Dialog[79011:127275924] XType: XTFontStaticRegistry is enabled as fontd is not available.
2023-02-20 23:34:28 [launch_startosinstall] Launching startosinstall
2023-02-20 23:34:28 [erase-install] Sending password to startosinstall
2023-02-20 23:34:39.327 Dialog[79011:127275925] Spell server connection invalidated
[erase-install] Timeout reached for PID 79055!
2023-02-21 00:34:29 [erase-install] Reached end of script. Exit with error 42.

2023-02-21 00:34:29 [erase-install] attempting to terminate the 'caffeinate' process - Termination message indicates success

2023-02-21 00:34:29 [finish] quitting dialog
2023-02-21 00:34:30 [finish] Script exit code: 42