Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script fails to find package installer #141

Closed
grahampugh opened this issue Oct 26, 2021 · 0 comments · Fixed by #143
Closed

Script fails to find package installer #141

grahampugh opened this issue Oct 26, 2021 · 0 comments · Fixed by #143
Assignees
Labels
bug Something isn't working

Comments

@grahampugh
Copy link
Owner

Describe the bug
Script fails to find package installer when --move not used.

To Reproduce

sudo /Library/Management/erase-install/erase-install.sh --os=12 --build=21A559 --test-run --no-fs --check-power --power-wait-limit 180 --reinstall --min-drive-space 10 --current-user --pkg

Expected behavior
Package is discovered and the script continues.

Code/log output

   [erase-install] v24.0 script execution started: Di 26 Okt 2021 19:49:59 CEST
   [erase-install] Caffeinating this script (pid=46199)

*** TEST-RUN ONLY! ***
* This script will perform all tasks up to the point of erase or reinstall,
* but will not actually erase or reinstall.
* Remove the --test-run argument to perform the erase or reinstall.
**********************

   [free_space_check] OK - 17907544 KB free disk space detected
   [check_power_status] OK - AC power detected
   [erase-install] Looking for existing installer app or pkg
   [find_existing_installer] No valid installer found.
yes username is a member of staff
   [get_user_details] username is a Volume Owner
   [check_password] Success: the password entered is the correct login password for username.
   [erase-install] Starting download process
   [erase-install] Opening jamfHelper download message (language=de)
   [get_installinstallmacos] installinstallmacos.py is in /Library/Management/erase-install
   [get_relocatable_python] Relocatable Python is installed in /Library/Management/erase-install
   [run_installinstallmacos] Checking that selected OS 12 is available

   [run_installinstallmacos] This command is now being run:

   installinstallmacos.py --workdir /Library/Management/erase-install --ignore-cache --pkg --os 12 --validate
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11.2G  100 11.2G    0     0  24.1M      0  0:07:58  0:07:58 --:--:-- 21.1M

installinstallmacos.py - get macOS installers from the Apple software catalog

This Mac:
Model Identifier : MacBookPro17,1

Device ID        : J293AP
OS Version       : 11.6
Build ID         : 20G165

 #  ProductID       Version    Build    Post Date   Title                          
 1  071-72781       11.5.1     20G80    2021-07-26  macOS Big Sur                  
 2  071-78704       11.5.2     20G95    2021-08-18  macOS Big Sur                  
 3  071-97382       11.6       20G165   2021-09-17  macOS Big Sur                  
 4  002-23589       11.6.1     20G224   2021-10-25  macOS Big Sur                  
 5  002-23774       12.0.1     21A559   2021-10-25  macOS Monterey                 

Build 21A559 selected. Downloading #5...

Package downloaded to: /Library/Management/erase-install/InstallAssistant-12.0.1-21A559.pkg
   [run_installinstallmacos] InstallAssistant package downloaded.
   [erase-install] Closing jamfHelper download message (language=de)
   [erase-install] 'jamfHelper' ended

   [erase-install] ERROR: Can't find the installer! 
/Library/Management/erase-install/erase-install.sh: line 920: 46262 Terminated: 15          "$jamfHelper" -windowType hud -windowPosition ul -title "${!dialog_dl_title}" -alignHeading center -alignDescription left -description "${!dialog_dl_desc}" -lockHUD -icon "$dialog_dl_icon" -iconSize 100
   [erase-install] 'caffeinate' ended

Environment (please complete the following information):

  • erase-install version [e.g. 24.0] - 24.0
@grahampugh grahampugh added the bug Something isn't working label Oct 26, 2021
@grahampugh grahampugh self-assigned this Oct 26, 2021
grahampugh added a commit that referenced this issue Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant