Closed rudreshkumarv closed 1 year ago
Greetings, @rudreshkumarv!
Please review the following Troubleshooting information, which will be included in the forthcoming documentation for Setup Your Mac (1.6.0).
If the Setup Your Mac dialog displays briefly, “disappears,” and the Jamf Pro policies continue to execute, the issue is most often invalid icons. (See swiftDialog Issue No. 208.)
Please double-check the following:
timestamp=$( date '+%Y-%m-%d-%H%M%S' ) ; curl -o ~/Downloads/Setup-Your-Mac-via-Dialog-$timestamp.bash https://raw.githubusercontent.com/dan-snelson/dialog-scripts/main/Setup%20Your%20Mac/Setup-Your-Mac-via-Dialog.bash ; sudo bash ~/Downloads/Setup-Your-Mac-via-Dialog-$timestamp.bash
/usr/local/bin/dialog: line 2: 10577 Trace/BPT trap: 5 /Library/Application\ Support/Dialog/Dialog.app/Contents/MacOS/Dialog "$@"
Review the Terminal output for the icon URLs and validate they each work as expected in your default browser
Consider enabling your Jamf Pro instance’s Cloud Services Connection for the available Icon Service.
@rudreshkumarv:
As an example of icon URLs for Step No. 3, the following works for me: https://razorpaytest.jamfcloud.com/icon?id=19
This one does not: https://razorpaytest.jamfcloud.com/icon?id=26
If you change every icon ID to 19
, does Setup Your Mac display?
@dan-snelson
Thank you so much.
icon id 26 missing from my instance. Added new icon and working fine.
Thanks for confirming, @rudreshkumarv; glad it’s working.
I used the latest version of the script. Noticed after Welcome screen, Setup Your Mac page will launch and disappears. However all the policy trigger are executed successful.
Tested on Ventura OS 13.1
Also tried by marking False for Welcome Screen.
Jamf Policy : Trigger - Enrollment Complete Script - Welcomescreen and Debug mode sset to false
Logs :
2022-12-28 14:37:46 - Created log file via script 2022-12-28 14:37:46 -
Setup Your Mac (1.5.1)
2022-12-28 14:37:47 - Dialog not found. Installing... 2022-12-28 14:37:55 - swiftDialog version 2.0.1.3814 installed; proceeding... 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: progress_total=7 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: list: FileVault Disk Encryption, Cortex XDR, Palo Alto GlobalProtect, Zoom, Google Chrome, Final Configuration, Computer Inventory 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 0, icon: https://razorpaytest.jamfcloud.com/icon?id=26, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 1, icon: https://razorpaytest.jamfcloud.com/icon?id=25, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 2, icon: https://razorpaytest.jamfcloud.com/icon?id=23, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 3, icon: https://razorpaytest.jamfcloud.com/icon?id=24, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 4, icon: https://razorpaytest.jamfcloud.com/icon?id=21, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 5, icon: https://razorpaytest.jamfcloud.com/icon?id=19, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 6, icon: https://razorpaytest.jamfcloud.com/icon?id=19, status: pending, statustext: Pending … 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: list: show 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: progress: 0 2022-12-28 14:37:56 - WELCOME DIALOG: quit: 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: progress: 0 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: listitem: index: 0, status: wait, statustext: Installing …, 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=26 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: progresstext: FileVault is built-in to macOS and provides full-disk encryption to help prevent unauthorized access to your Mac. 2022-12-28 14:37:56 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event filevault 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: Testing for "/Library/Preferences/com.apple.fdesetup.plist" … 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: listitem: index: 0, status: success, statustext: Installed 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: progress: 14 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: listitem: index: 1, status: wait, statustext: Installing …, 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=25 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: progresstext: You’ll enjoy next-gen protection with Cortex XDR which doesn’t rely on signatures to catch malware. 2022-12-28 14:38:03 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event cortex 2022-12-28 14:38:26 - SETUP YOUR MAC DIALOG: Testing for "/Applications/Cortex XDR.app/Contents/Info.plist" … 2022-12-28 14:38:26 - SETUP YOUR MAC DIALOG: listitem: index: 1, status: success, statustext: Installed 2022-12-28 14:38:26 - SETUP YOUR MAC DIALOG: progress: 28 2022-12-28 14:38:26 - SETUP YOUR MAC DIALOG: listitem: index: 2, status: wait, statustext: Installing …, 2022-12-28 14:38:27 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=23 2022-12-28 14:38:27 - SETUP YOUR MAC DIALOG: progresstext: Use Palo Alto GlobalProtect to establish a Virtual Private Network (VPN) connection to Church headquarters. 2022-12-28 14:38:27 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event globalProtect 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: Testing for "/Applications/GlobalProtect.app/Contents/Info.plist" … 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: listitem: index: 2, status: success, statustext: Installed 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: progress: 42 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: listitem: index: 3, status: wait, statustext: Installing …, 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=24 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: progresstext: Zoom is a videotelephony software program developed by Zoom Video Communications. 2022-12-28 14:38:40 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event zoom 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: Testing for "/Applications/zoom.us.app/Contents/Info.plist" … 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: listitem: index: 3, status: success, statustext: Installed 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: progress: 56 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: listitem: index: 4, status: wait, statustext: Installing …, 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=21 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: progresstext: Google Chrome is a browser that combines a minimal design with sophisticated technology to make the Web faster. 2022-12-28 14:39:00 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event googleChrome 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: Testing for "/Applications/Google Chrome.app/Contents/Info.plist" … 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: listitem: index: 4, status: success, statustext: Installed 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: progress: 70 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: listitem: index: 5, status: wait, statustext: Installing …, 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=19 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: progresstext: Finalizing Configuration … 2022-12-28 14:39:19 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event finalConfiguration 2022-12-28 14:39:24 - SETUP YOUR MAC DIALOG: RUNNING: /usr/local/bin/jamf policy -event reconAtReboot 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: Testing for "" … 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: listitem: index: 5, status: success, statustext: Installed 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: progress: 84 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: listitem: index: 6, status: wait, statustext: Installing …, 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: icon: https://razorpaytest.jamfcloud.com/icon?id=19 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: progresstext: A listing of your Mac’s apps and settings — its inventory — is sent automatically to the Jamf Pro server daily. 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: listitem: index: 6, status: wait, statustext: Updating …, 2022-12-28 14:39:32 - SETUP YOUR MAC DIALOG: Updating computer inventory with the following reconOptions: "" … 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: Testing for "" … 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: listitem: index: 6, status: success, statustext: Installed 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: listitem: index: 6, status: success, statustext: Updated 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: title: Rudresh's Mac is ready! 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: icon: SF=checkmark.circle.fill,weight=bold,colour1=#00ff44,colour2=#075c1e 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: progresstext: Complete! Please restart and enjoy your new Mac, Rudresh! 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: progress: complete 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: button1text: Restart 2022-12-28 14:39:50 - SETUP YOUR MAC DIALOG: button1: enable 2022-12-28 14:39:50 - Exiting … 2022-12-28 14:39:50 - De-caffeinate … 2022-12-28 14:39:50 - Attempting to terminate the 'caffeinate' process … 2022-12-28 14:39:50 - (Termination message indicates success.) 2022-12-28 14:39:50 - Removing /var/tmp/dialogWelcome.5T1 … 2022-12-28 14:39:50 - Removing /var/tmp/dialogSetupYourMac.VhR … 2022-12-28 14:39:50 - Removing /var/tmp/dialogFailure.pk3 … 2022-12-28 14:39:50 - Executing Completion Action Option: 'Restart Confirm' … 2022-12-28 14:39:50 - Restart, only after macOS time-out or user confirmation 2022-12-28 14:39:50 - Run "osascript -e tell app "loginwindow" to «event aevtrrst»" as "503" …