Macjutsu / super

S.U.P.E.R.M.A.N. optimizes the macOS software update experience.
Apache License 2.0
637 stars 86 forks source link

Scheduling option issue: Super not launching at selected time #248

Open I-Wildcard opened 2 weeks ago

I-Wildcard commented 2 weeks ago

Hello team,

I was testing the Super 5 scheduling option today when updating to macOS Sequoia 15.1, and for some reason Super did not launch at the time I selected (17.30). I did receive the reminders 4 hours and 15 minutes before the selected time (as per our customisation), which worked great - but when 17.30 arrived nothing happened.

I looked into the logs, and this is what I see:

Tue Oct 29 17:15:06 Hostname super-starter[45989]: **** S.U.P.E.R.M.A.N. 5.0.0 - LAUNCHDAEMON ****
Tue Oct 29 17:15:07 Hostname super[46004]: **** S.U.P.E.R.M.A.N. 5.0.0 - SUPER STARTUP ****
Tue Oct 29 17:15:08 Hostname super[46004]: Status: Mac computer with Apple silicon running: macOS Sequoia 15.0.1-24A348
Tue Oct 29 17:15:08 Hostname super[46004]: Status: Last macOS startup was: 2024-10-17:10:46:08
Tue Oct 29 17:15:09 Hostname super[46004]: Status: Current active GUI user is: username (502)
Tue Oct 29 17:15:15 Hostname super[46004]: Status: Managed by Jamf Pro 11.10.1 hosted at: https://company.jamfcloud.com/
Tue Oct 29 17:15:15 Hostname super[46004]: Parameter Warning: The --display-notifications-centered type of DIALOG is ignored because dialogs are not notifcations.
Tue Oct 29 17:15:16 Hostname super[46004]: Status: Previously scheduled installation workflow active for: 2024-10-29:17:30
Tue Oct 29 17:15:16 Hostname super[46004]: Status: macOS update/upgrade workflows automatically authenticated via saved password for current user: username
Tue Oct 29 17:15:16 Hostname super[46004]: **** S.U.P.E.R.M.A.N. 5.0.0 - CHECK FOR SOFTWARE UPDATES/UPGRADES ****
Tue Oct 29 17:15:16 Hostname super[46004]: Status: Restrictions configuration profile is deferring macOS major upgrades for 90 days.
Tue Oct 29 17:15:17 Hostname super[46004]: Target: macOS minor update macOS Sequoia 15.1-24B83 which is a 3GB download.
Tue Oct 29 17:15:17 Hostname super[46004]: Status: Previously set automatic zero date based on the macOS Sequoia 15.1-24B83 workflow start date of 2024-10-29:09:32.
Tue Oct 29 17:15:17 Hostname super[46004]: Status: Scheduled installation date of 2024-10-29:17:30 has not passed and the user can reschedule.
Tue Oct 29 17:15:17 Hostname super[46004]: **** S.U.P.E.R.M.A.N. 5.0.0 - SCHEDULED RESTART macOS Sequoia 15.1-24B83 MINOR UPDATE VIA SOFTWAREUPDATE ****
Tue Oct 29 17:15:17 Hostname super[46004]: Status: Scheduled installation reminder of 240 minutes prior to installation has passed.
Tue Oct 29 17:15:17 Hostname super[46004]: Status: Scheduled installation reminder of 15 minutes prior to installation has passed.
Tue Oct 29 17:15:17 Hostname super[46004]: Status: Focus days deadline of 2024-11-05 (7 day(s) after 2024-10-29:09:32) not passed.
Tue Oct 29 17:15:17 Hostname super[46004]: Status: Soft days deadline of 2024-11-08 (10 day(s) after 2024-10-29:09:32) not passed.
Tue Oct 29 17:15:17 Hostname super[46004]: IBM Notifier: Scheduled installation warning dialog (this dialog has no timeout).
Tue Oct 29 17:15:17 Hostname super[46004]: Exit: super is scheduled to automatically relaunch at: 2024-10-29:18:15:00
Tue Oct 29 17:15:17 Hostname super[46004]: **** S.U.P.E.R.M.A.N. 5.0.0 - EXIT CLEAN ****

Super is saying that it'll automatically relaunch at 18.15 and not at 17.30. I encountered this issue on two different devices.

Let me know if you need additional information.

Thank you!

ofirgalcon commented 1 week ago

+1

Macjutsu commented 1 week ago

Yeah... sorry... I'd have to see a --verbose-mode log to figure out why super is not properly setting a relaunch time.

I-Wildcard commented 1 week ago

Hi,

I was able to replicate the issue on another Mac.

Scheduled date: 17.00 After dismissing the second reminder (15 minutes before the scheduled date), the next autolaunch date I see is set to 17.56 and not at 17.00 as expected.

Attached --verbose-mode logs: Super.log

rocketman8080 commented 4 days ago

Hi, I think I have a related issue where super does not auto-relaunch after deferral.

snippet of log is below, - the script does not re-launch at the specified time post deferral. How is the re-launch controlled? May be a dumb question, but is the script running as a daemon in the background, or is scheduled to run periodically via cron-like mechanism? thank you,

Sat Nov 09 13:28:15 MacMini super.sh[27440]: Exit: super is scheduled to automatically relaunch at: 2024-11-09:14:28:00
Sat Nov 09 13:28:15 MacMini super.sh[27440]: Verbose Mode: Function exit_clean: Line 4160: Local preference file at clean exit: /Library/Management/super/com.macjutsu.super:
{
    DeferralRestrictionsCache = 0;
    DeferralRestrictionsChecksum = 0;
    DisplayIconDarkFileCachedOrigin = DEFAULT;
    DisplayIconLightFileCachedOrigin = DEFAULT;
    MDMClientAvailableCache = 1;
    MDMClientListChecksum = e2081d00fcdc53395538128b68c959fb;
    MSUListChecksum = e867b323b5e81a152498b12be2e00e9d;
    MacLastStartup = "2024-11-07:11:58:29";
    MacOSBetaProgramCache = 0;
    MacOSMSULabelDownloaded = "macOS Sequoia 15.1-24B83";
    MacOSMSULastStartupDownloaded = "2024-11-07:11:58:29";
    NextAutoLaunch = "2024-11-09:14:28:00";
    ScheduleZeroDateAutomaticStart = "2024-11-07:11:52";
    SuperStatus = "Sat Nov 09 13:28:15: Pending: User chose to defer, setting a deferral of 60 minutes.";
    VerboseMode = 1;
    WorkflowTarget = "macOS Sequoia 15.1-24B83";
}
Sat Nov 09 13:28:15 MacMini super.sh[27440]: **** S.U.P.E.R.M.A.N. 5.0.0 - EXIT CLEAN ****