grahampugh / erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!
https://grahamrpugh.com/2023/05/14/macaduk-presentation-eraseinstall.html
Apache License 2.0
826 stars 131 forks source link

[BUG] | v31.0 | [run_mist] An error occurred running mist. Cannot continue. #473

Closed n0brainer closed 5 months ago

n0brainer commented 8 months ago

Describe the bug When running E&I v31.0, getting mist errors repeatedly going from macOS 13.6.1 on 2020 13" MBPro (m1)

To Reproduce /Library/Management/erase-install/erase-install.sh --os 14 --erase --check-power --power-wait-limit 180 --postinstall-command "jamf policy -trigger removeJSSID"

Tried with the specific mistcli-2.0 pkg and w/o.

When running command, it errors between 7-20% with mist cannot continue.

Expected behavior download, wipe and reload.

Code/log output Please supply the full command used, and if applicable, add full output from Terminal or from /var/log/erase-install.log. Don't post a partial log - I need the whole thing. Either upload the log as a file, or paste the output in a code block like this:


Running command /Library/Management/erase-install/erase-install.sh --os 14 --erase --check-power --power-wait-limit 180 --postinstall-command "jamf policy -trigger removeJSSID"...
--
Result of command:2023-12-11 09:30:00 \| v31.0 \| [log_rotate] Finished rotating logs in /Library/Management/erase-install/log  2023-12-11 09:30:00 \| v31.0 \| [erase-install] v31.0 script execution started: Mon Dec 11 09:30:00 CST 2023  2023-12-11 09:30:00 \| v31.0 \| [erase-install] Arguments provided: --os 14 --erase --check-power --power-wait-limit 180 --postinstall-command jamf policy -trigger removeJSSID 2023-12-11 09:30:00 \| v31.0 \| [erase-install] System version: 13.6.1 (Build: 22G313) 2023-12-11 09:30:01 \| v31.0 \| [check_for_swiftdialog_app] swiftDialog v2.3.2.4726 is installed (/Library/Application Support/Dialog/Dialog.app) 2023-12-11 09:30:01 \| v31.0 \| [check_for_swiftdialog_app] Creating dialog log (/var/tmp/dialog.ApA)... 2023-12-11 09:30:01 \| v31.0 \| [erase-install] Caffeinating this script (pid=3464) 2023-12-11 09:30:01 \| v31.0 \| [check_free_space] OK - 931 GB free/purgeable disk space detected 2023-12-11 09:30:01 \| v31.0 \| [erase-install] Looking for existing installer app or pkg 2023-12-11 09:30:01 \| v31.0 \| [find_existing_installer] No valid installer found. 2023-12-11 09:30:01 \| v31.0 \| [erase-install] Existing installer OS version does not match requested OS (14). 2023-12-11 09:30:01 \| v31.0 \| [overwrite_existing_installer] Overwrite option selected. Deleting existing version. overwrite_existing_installer:6: no matches found: /Volumes/*macOS* 2023-12-11 09:30:01 \| v31.0 \| [erase-install] Running on architecture arm64 2023-12-11 09:30:01 \| v31.0 \| [get_user_details] ask for user credentials (attempt 1/5) 2023-12-11 09:30:01 \| v31.0 \| [get_default_dialog_args] Invoking utility dialog yes macadmin is a member of everyone 2023-12-11 09:30:08 \| v31.0 \| [get_user_details] macadmin is a Volume Owner 2023-12-11 09:30:08 \| v31.0 \| [check_password] Success: the password entered is the correct login password for macadmin. yes macadmin is a member of admin 2023-12-11 09:30:08 \| v31.0 \| [check_power_status] OK - AC power detected 2023-12-11 09:30:08 \| v31.0 \| [get_default_dialog_args] Invoking utility dialog 2023-12-11 09:30:09 \| v31.0 \| [check_for_mist] mist is installed (/usr/local/bin/mist) 2023-12-11 09:30:09 \| v31.0 \| [get_mist_list] Non-default catalog selected (darwin version 22) ┌──────────────────┐ │ INPUT VALIDATION │ └──────────────────┘   ├─ Search only for latest (first) result will be 'false'...   ├─ Include betas in search results will be 'false'...   ├─ Only include compatible installers will be 'true'...   ├─ Export path will be '/Library/Management/erase-install/mist-list.json'...   ├─ Export path file extension is valid...   ├─ Output type will be 'ascii'... ┌────────┐ │ SEARCH │ └────────┘   ├─ Searching for macOS Installer versions...   ├─ Exported list as JSON: '/Library/Management/erase-install/mist-list.json'   └─ Found 13 macOS Installer(s) available for download  [0;0m┌────────────┬────────────────┬─────────┬─────────┬──────────┬────────────┬────────────┐ │ IDENTIFIER │ NAME           │ VERSION │ BUILD   │ SIZE     │ DATE       │ COMPATIBLE │ ├────────────┼────────────────┼─────────┼─────────┼──────────┼────────────┼────────────┤ [0;0m[0;0m│ [0;0m052-09398 [0;0m │ [0;0mmacOS Sonoma  [0;0m │ [0;0m14.1.2 [0;0m │ [0;0m23B92  [0;0m │ [0;0m12.92 GB[0;0m │ [0;0m2023-11-30[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-89627 [0;0m │ [0;0mmacOS Sonoma  [0;0m │ [0;0m14.1.1 [0;0m │ [0;0m23B81  [0;0m │ [0;0m12.92 GB[0;0m │ [0;0m2023-11-16[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-86434 [0;0m │ [0;0mmacOS Sonoma  [0;0m │ [0;0m14.1   [0;0m │ [0;0m23B74  [0;0m │ [0;0m12.92 GB[0;0m │ [0;0m2023-10-25[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-58988 [0;0m │ [0;0mmacOS Sonoma  [0;0m │ [0;0m14.0   [0;0m │ [0;0m23A344 [0;0m │ [0;0m12.87 GB[0;0m │ [0;0m2023-09-26[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-82952 [0;0m │ [0;0mmacOS Ventura [0;0m │ [0;0m13.6.1 [0;0m │ [0;0m22G313 [0;0m │ [0;0m11.95 GB[0;0m │ [0;0m2023-11-16[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-55926 [0;0m │ [0;0mmacOS Ventura [0;0m │ [0;0m13.6   [0;0m │ [0;0m22G120 [0;0m │ [0;0m11.95 GB[0;0m │ [0;0m2023-09-21[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-43677 [0;0m │ [0;0mmacOS Ventura [0;0m │ [0;0m13.5.2 [0;0m │ [0;0m22G91  [0;0m │ [0;0m11.95 GB[0;0m │ [0;0m2023-12-06[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-82938 [0;0m │ [0;0mmacOS Monterey[0;0m │ [0;0m12.7.1 [0;0m │ [0;0m21G920 [0;0m │ [0;0m12.41 GB[0;0m │ [0;0m2023-11-16[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-55586 [0;0m │ [0;0mmacOS Monterey[0;0m │ [0;0m12.7   [0;0m │ [0;0m21G816 [0;0m │ [0;0m12.40 GB[0;0m │ [0;0m2023-09-21[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-45268 [0;0m │ [0;0mmacOS Monterey[0;0m │ [0;0m12.6.9 [0;0m │ [0;0m21G726 [0;0m │ [0;0m12.41 GB[0;0m │ [0;0m2023-12-06[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-15015 [0;0m │ [0;0mmacOS Monterey[0;0m │ [0;0m12.6.8 [0;0m │ [0;0m21G725 [0;0m │ [0;0m12.42 GB[0;0m │ [0;0m2023-07-24[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-45246 [0;0m │ [0;0mmacOS Big Sur [0;0m │ [0;0m11.7.10[0;0m │ [0;0m20G1427[0;0m │ [0;0m12.42 GB[0;0m │ [0;0m2023-09-11[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m│ [0;0m042-14707 [0;0m │ [0;0mmacOS Big Sur [0;0m │ [0;0m11.7.9 [0;0m │ [0;0m20G1426[0;0m │ [0;0m12.42 GB[0;0m │ [0;0m2023-07-24[0;0m │ [0;0mTrue      [0;0m │ [0;0m[0;0m└────────────┴────────────────┴─────────┴─────────┴──────────┴────────────┴────────────┘ [0;0m 2023-12-11 09:30:10 \| v31.0 \| [run_mist] Restricting to selected OS '14' 2023-12-11 09:30:10 \| v31.0 \| [run_mist] Setting mist to only list compatible installers 2023-12-11 09:30:10 \| v31.0 \| [get_mist_list] Non-default catalog selected (darwin version 22)  2023-12-11 09:30:10 \| v31.0 \| [run_mist] This command is now being run:  2023-12-11 09:30:10 \| v31.0 \| mist download installer Sonoma application --application-name Install %NAME%.app --output-directory /Applications --compatible --no-ansi --catalog-url https://swscan.apple.com/content/catalogs/others/index-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog ┌──────────────────┐ │ INPUT VALIDATION │ └──────────────────┘   ├─ User is 'root'...   ├─ Download search string will be 'Sonoma'...   ├─ Include betas in search results will be 'false'...   ├─ Only include compatible installers will be 'true'...   ├─ Cache downloads will be 'false'...   ├─ Output directory will be '/Applications'...   ├─ Temporary directory will be '/private/tmp/com.ninxsoft.mist'...   ├─ Force flag has not been set, existing files will not be overwritten...   ├─ Application name will be 'Install %NAME%.app'... ┌────────┐ │ SEARCH │ └────────┘   ├─ Searching for macOS download 'Sonoma'...   ├─ Found [052-09398] macOS Sonoma 14.1.2 (23B92) [2023-11-30] ┌───────┐ │ SETUP │ └───────┘   ├─ Creating new temporary directory '/private/tmp/com.ninxsoft.mist/052-09398'... ┌──────────┐ │ DOWNLOAD │ └──────────┘   ├─ [ 1 / 7 ] 052-09398.English.dist.......... [  0000  B /  0000  B (00.00%) ]   ├─ [ 1 / 7 ] 052-09398.English.dist.......... [ 07.40 KB / 07.40 KB (100.0%) ]   ├─ [ 1 / 7 ] 052-09398.English.dist.......... [ 07.40 KB / 07.40 KB (100.0%) ]   │            Verifying...   │            Verifying... [0;32m✓✓✓[0;0m   ├─ [ 2 / 7 ] BuildManifest.plist............. [  0000  B / 07.43 MB (00.00%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 93.60 KB / 07.43 MB (01.26%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 198.90 KB / 07.43 MB (02.68%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 280.80 KB / 07.43 MB (03.78%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 378.30 KB / 07.43 MB (05.09%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 458.90 KB / 07.43 MB (06.17%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 571.10 KB / 07.43 MB (07.68%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 716.69 KB / 07.43 MB (09.64%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 836.29 KB / 07.43 MB (11.25%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............ [ 931.19 KB / 07.43 MB (12.53%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.03 MB / 07.43 MB (13.82%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.13 MB / 07.43 MB (15.21%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.27 MB / 07.43 MB (17.05%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.35 MB / 07.43 MB (18.15%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.45 MB / 07.43 MB (19.47%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.53 MB / 07.43 MB (20.58%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.62 MB / 07.43 MB (21.82%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.71 MB / 07.43 MB (23.00%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.86 MB / 07.43 MB (24.99%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.94 MB / 07.43 MB (26.09%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.23 MB / 07.43 MB (30.06%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.32 MB / 07.43 MB (31.16%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.40 MB / 07.43 MB (32.26%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.50 MB / 07.43 MB (33.58%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.64 MB / 07.43 MB (35.49%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.74 MB / 07.43 MB (36.82%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.04 MB / 07.43 MB (40.86%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.16 MB / 07.43 MB (42.55%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.24 MB / 07.43 MB (43.65%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.40 MB / 07.43 MB (45.71%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.77 MB / 07.43 MB (50.70%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.87 MB / 07.43 MB (52.10%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.99 MB / 07.43 MB (53.65%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.07 MB / 07.43 MB (54.75%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.51 MB / 07.43 MB (60.70%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.59 MB / 07.43 MB (61.80%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.72 MB / 07.43 MB (63.58%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.86 MB / 07.43 MB (65.33%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.95 MB / 07.43 MB (66.65%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.05 MB / 07.43 MB (67.98%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.20 MB / 07.43 MB (69.96%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.28 MB / 07.43 MB (70.98%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.44 MB / 07.43 MB (73.27%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.69 MB / 07.43 MB (76.57%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.82 MB / 07.43 MB (78.26%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.99 MB / 07.43 MB (80.54%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.08 MB / 07.43 MB (81.86%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.21 MB / 07.43 MB (83.63%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.51 MB / 07.43 MB (87.60%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.69 MB / 07.43 MB (90.02%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.77 MB / 07.43 MB (91.12%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.86 MB / 07.43 MB (92.37%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.95 MB / 07.43 MB (93.55%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.03 MB / 07.43 MB (94.65%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.13 MB / 07.43 MB (95.97%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.26 MB / 07.43 MB (97.74%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.39 MB / 07.43 MB (99.42%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.43 MB / 07.43 MB (100.0%) ]   ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.43 MB / 07.43 MB (100.0%) ]   │            Verifying...   │            Verifying... [0;32m✓✓✓[0;0m   ├─ [ 3 / 7 ] Info.plist...................... [  0000  B / 05.13 KB (00.00%) ]   ├─ [ 3 / 7 ] Info.plist...................... [ 05.13 KB / 05.13 KB (100.0%) ]   ├─ [ 3 / 7 ] Info.plist...................... [ 05.13 KB / 05.13 KB (100.0%) ]   │            Verifying...   │            Verifying... [0;32m✓✓✓[0;0m   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [  0000  B / 12.91 GB (00.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 129.14 MB / 12.91 GB (01.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 258.20 MB / 12.91 GB (02.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 387.20 MB / 12.91 GB (03.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 516.29 MB / 12.91 GB (04.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 645.35 MB / 12.91 GB (05.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 774.42 MB / 12.91 GB (06.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 903.53 MB / 12.91 GB (07.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.03 GB / 12.91 GB (08.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.16 GB / 12.91 GB (09.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.29 GB / 12.91 GB (10.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.42 GB / 12.91 GB (11.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.55 GB / 12.91 GB (12.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.68 GB / 12.91 GB (13.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.81 GB / 12.91 GB (14.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.94 GB / 12.91 GB (15.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.07 GB / 12.91 GB (16.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.19 GB / 12.91 GB (17.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.32 GB / 12.91 GB (18.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.45 GB / 12.91 GB (19.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.58 GB / 12.91 GB (20.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.71 GB / 12.91 GB (21.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.84 GB / 12.91 GB (22.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.97 GB / 12.91 GB (23.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.10 GB / 12.91 GB (24.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.23 GB / 12.91 GB (25.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.36 GB / 12.91 GB (26.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.48 GB / 12.91 GB (27.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.61 GB / 12.91 GB (28.00%) ]   ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.74 GB / 12.91 GB (29.00%) ] 2023-12-11 09:30:55 \| v31.0 \| [run_mist] An error occurred running mist. Cannot continue.  2023-12-11 09:30:55 \| v31.0 \| [erase-install] attempting to terminate the 'caffeinate' process - Termination message indicates success  2023-12-11 09:30:55 \| v31.0 \| [finish] sending quit message to dialog (/var/tmp/dialog.ApA) 2023-12-11 09:30:55 \| v31.0 \| [finish] Script exit code: 1

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

n0brainer commented 8 months ago

Archive 11.zip

Logs came across as a mess when pasted in, attached original files.

grahampugh commented 8 months ago

There is a general reliability problem with Apple's software catalogs over the past week or two affecting all tools that interact with them. Nothing I can do. I've read that it's behaving better with the newly released updates today but haven't tried myself yet.