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

Super trying to run when lid is closed, and no logged on user. (Intel Device) #199

Open
dansutt opened this issue Feb 23, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@dansutt
Copy link

dansutt commented Feb 23, 2024

I know this issue was mentioned in a previous post as well and it was stated that Launch Daemons are not supposed to run with the lid closed. Posting this as awareness as I am seeing the same thing, or if there is a bug somewhere that needs to be investigated with super?

May have been through of before but maybe something can be used with "AppleClamshellState" to defer the super process for X amount of time, or check for sleep state before running again.

This command will return if the lid is closed or not. Tested on Sonoma 14.3
ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1

I am seeing an issue when super is trying to launch when the lid is closed. I have the Super Status EA set up in Jamf and have this report from one a machine we are testing on. This device is an intel machine.

Super status: Wed Feb 21 22:53:07: Inactive: Full super workflow complete! Automatic relaunch is disabled.

Scenario:
Super was installed early morning on Wed Feb 21 at 08:21:36, it continued to run through its processes deferring for 30 minutes due to no user input. This user was not at work until ~13:00. which then he deferred for 4 hours. He stated he rebooted manually around 15:04 due to an issue (he did not run updates). He then left at 17:00 for the day where super ran shortly after. The lid was closed the entire time prior to him getting to work, then he closed it when he left for the day.

Jamf shows the system rebooted again around 17:43 (not from what), after then super had some issues downloading the update probably due to no network connectivity or logged in user, then eventually stated there was no update available, again probably because there was not network connection where it then shows it completed successfully and stopped the relaunch. I have the relaunch disabled after its successfully runs as we only patch on specific days of the week. I have a jamf policy set up to start super again on those days.

I have attached the logs from the last time super ran unattended prior to the employee getting to work until the last time super ran and disabled the process. This machine was never updated during this entire process and still shows a pending update from Apple in system preferences.

Wed Feb 21 08:21:36 super[42886]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER INSTALLATION WORKFLOW ****
Wed Feb 21 08:21:36 super[42886]: Installation: Copying super to: /Library/Management/super/super
Wed Feb 21 08:21:36 super[42886]: Installation: Creating super search path link: /usr/local/bin/super
Wed Feb 21 08:21:36 super[42886]: Installation: Creating super LaunchDaemon helper: /Library/Management/super/super-starter
Wed Feb 21 08:21:36 super[42886]: Installation: Creating super LaunchDaemon: /Library/LaunchDaemons/com.macjutsu.super.plist.
Wed Feb 21 08:21:36 super[42886]: Installation: Setting permissions for installed super items.
Wed Feb 21 08:21:37 super[42886]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 08:21:37 super[42886]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 08:21:37 super[42886]: Status: Last macOS startup was: 2024-02-07:17:04:00
Wed Feb 21 08:21:37 super[42886]: Status: Current active GUI user is: (Removed for Privacy) (502)
Wed Feb 21 08:21:39 super[42886]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://.jamfcloud.com/
Wed Feb 21 08:21:39 super[42886]: Status: Attempting to download requested display icon from:
Wed Feb 21 08:21:40 super[42886]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 08:21:40 super[42886]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 08:21:40 super[42886]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 08:21:40 super[42886]: Status: Attempting to download and install IBM Notifier.app...
Wed Feb 21 08:21:41 super[42886]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 08:21:41 super[42886]: Status: Found that Jamf is installing or is the parent process, restarting via super LaunchDaemon...
Wed Feb 21 08:21:41 super[42886]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****
Wed Feb 21 08:21:46 super-starter[43438]: **** S.U.P.E.R.M.A.N. 4.0.3 - LAUNCHDAEMON ****
Wed Feb 21 08:21:46 super[43451]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 08:21:47 super[43451]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 08:21:47 super[43451]: Status: Last macOS startup was: 2024-02-07:17:04:00
Wed Feb 21 08:21:47 super[43451]: Status: Current active GUI user is: (Removed for Privacy) (502)
Wed Feb 21 08:21:49 super[43451]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://
.jamfcloud.com/
Wed Feb 21 08:21:49 super[43451]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 08:21:49 super[43451]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 08:21:49 super[43451]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 08:21:49 super[43451]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 08:21:49 super[43451]: **** S.U.P.E.R.M.A.N. 4.0.3 - CHECK SOFTWARE UPDATES/UPGRADE ****
Wed Feb 21 08:21:49 super[43451]: Status: No macOS beta program status cache, full update/upgrade check required.
Wed Feb 21 08:22:00 super[43451]: Status: Starting full check for all available system software...
Wed Feb 21 08:22:00 super[43451]: softwareupdate: Waiting for available Apple software updates...
Wed Feb 21 08:22:14 super[43451]: Status: A macOS minor update is available: macOS 14.3.1-23D60
Wed Feb 21 08:22:14 super[43451]: Status: No available non-system Apple software updates or they may be deferred via configuration profile.
Wed Feb 21 08:22:14 super[43451]: mdmclient: Waiting for available macOS major upgrades...
Wed Feb 21 08:22:18 super[43451]: Status: No available macOS major upgrades or they may be deferred via configuration profile.
Wed Feb 21 08:22:18 super[43451]: **** S.U.P.E.R.M.A.N. 4.0.3 - MACOS 14.3.1 MINOR UPDATE ****
Wed Feb 21 08:22:18 super[43451]: softwareupdate: Starting macOS 14.3.1 download workflow, check /Library/Management/super/logs/asu-workflow.log for more detail.
Wed Feb 21 08:22:35 super[43451]: softwareupdate: macOS 14.3.1 is downloading...
Wed Feb 21 08:22:35 super[43451]: softwareupdate: macOS 14.3.1 download and preparation complete.
Wed Feb 21 08:22:35 super[43451]: Status: Setting new automatic zero date of: 2024-02-21:08:22.
Wed Feb 21 08:22:36 super[43451]: Status: Restarting all deadline counters.
Wed Feb 21 08:22:36 super[43451]: Status: Soft days deadline of 2024-02-28:08:22 (7 day(s) after 2024-02-21:08:22) NOT passed.
Wed Feb 21 08:22:36 super[43451]: IBM Notifier: Restart or defer dialog with a 5400 second timeout.
Wed Feb 21 09:52:37 super[43451]: Status: Display timeout automatically chose to defer update for 30 minutes.
Wed Feb 21 09:52:37 super[43451]: Exit: super is scheduled to automatically relaunch at: 2024-02-21:10:22:00
Wed Feb 21 09:52:37 super[43451]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****
Wed Feb 21 10:22:54 super-starter[50076]: **** S.U.P.E.R.M.A.N. 4.0.3 - LAUNCHDAEMON ****
Wed Feb 21 10:22:54 super[50089]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 10:22:54 super[50089]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 10:22:54 super[50089]: Status: Last macOS startup was: 2024-02-07:17:04:00
Wed Feb 21 10:22:55 super[50089]: Status: Current active GUI user is: (Removed for Privacy) (502)
Wed Feb 21 10:22:57 super[50089]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://.jamfcloud.com/
Wed Feb 21 10:22:57 super[50089]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 10:22:57 super[50089]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 10:22:57 super[50089]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 10:22:57 super[50089]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 10:22:57 super[50089]: **** S.U.P.E.R.M.A.N. 4.0.3 - CHECK SOFTWARE UPDATES/UPGRADE ****
Wed Feb 21 10:22:57 super[50089]: Status: A macOS minor update is available: macOS 14.3.1-23D60
Wed Feb 21 10:22:57 super[50089]: Status: No available non-system Apple software updates or they may be deferred via configuration profile.
Wed Feb 21 10:22:57 super[50089]: Status: No available macOS major upgrades or they may be deferred via configuration profile.
Wed Feb 21 10:22:57 super[50089]: **** S.U.P.E.R.M.A.N. 4.0.3 - MACOS 14.3.1 MINOR UPDATE ****
Wed Feb 21 10:22:57 super[50089]: Status: Previously downloaded macOS minor update is prepared: macOS 14.3.1-23D60
Wed Feb 21 10:22:57 super[50089]: Status: Using previously set automatic zero date of: 2024-02-21:08:22.
Wed Feb 21 10:22:58 super[50089]: Status: Soft days deadline of 2024-02-28:08:22 (7 day(s) after 2024-02-21:08:22) NOT passed.
Wed Feb 21 10:22:58 super[50089]: IBM Notifier: Restart or defer dialog with a 5400 second timeout.
Wed Feb 21 11:52:59 super[50089]: Status: Display timeout automatically chose to defer update for 30 minutes.
Wed Feb 21 11:52:59 super[50089]: Exit: super is scheduled to automatically relaunch at: 2024-02-21:12:22:00
Wed Feb 21 11:52:59 super[50089]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****
Wed Feb 21 12:22:01 super-starter[54764]: **** S.U.P.E.R.M.A.N. 4.0.3 - LAUNCHDAEMON ****
Wed Feb 21 12:22:01 super[54777]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 12:22:02 super[54777]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 12:22:02 super[54777]: Status: Last macOS startup was: 2024-02-07:17:04:00
Wed Feb 21 12:22:02 super[54777]: Status: Current active GUI user is: (Removed for Privacy) (502)
Wed Feb 21 12:22:04 super[54777]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://
.jamfcloud.com/
Wed Feb 21 12:22:04 super[54777]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 12:22:04 super[54777]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 12:22:04 super[54777]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 12:22:05 super[54777]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 12:22:05 super[54777]: **** S.U.P.E.R.M.A.N. 4.0.3 - CHECK SOFTWARE UPDATES/UPGRADE ****
Wed Feb 21 12:22:05 super[54777]: Status: A macOS minor update is available: macOS 14.3.1-23D60
Wed Feb 21 12:22:05 super[54777]: Status: No available non-system Apple software updates or they may be deferred via configuration profile.
Wed Feb 21 12:22:05 super[54777]: Status: No available macOS major upgrades or they may be deferred via configuration profile.
Wed Feb 21 12:22:05 super[54777]: **** S.U.P.E.R.M.A.N. 4.0.3 - MACOS 14.3.1 MINOR UPDATE ****
Wed Feb 21 12:22:05 super[54777]: Status: Previously downloaded macOS minor update is prepared: macOS 14.3.1-23D60
Wed Feb 21 12:22:05 super[54777]: Status: Using previously set automatic zero date of: 2024-02-21:08:22.
Wed Feb 21 12:22:05 super[54777]: Status: Soft days deadline of 2024-02-28:08:22 (7 day(s) after 2024-02-21:08:22) NOT passed.
Wed Feb 21 12:22:05 super[54777]: IBM Notifier: Restart or defer dialog with a 5400 second timeout.
Wed Feb 21 13:00:55 super[54777]: Status: User chose to defer update for 240 minutes.
Wed Feb 21 13:00:55 super[54777]: Exit: super is scheduled to automatically relaunch at: 2024-02-21:17:00:00
Wed Feb 21 13:00:55 super[54777]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****
Wed Feb 21 17:00:55 super-starter[5046]: **** S.U.P.E.R.M.A.N. 4.0.3 - LAUNCHDAEMON ****
Wed Feb 21 17:00:55 super[5065]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 17:00:55 super[5065]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 17:00:56 super[5065]: Status: Last macOS startup was: 2024-02-21:15:04:00
Wed Feb 21 17:00:56 super[5065]: Status: Current active GUI user is: (Removed for Privacy) (502)
Wed Feb 21 17:00:58 super[5065]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://.jamfcloud.com/
Wed Feb 21 17:00:58 super[5065]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 17:00:58 super[5065]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 17:00:58 super[5065]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 17:00:58 super[5065]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 17:00:58 super[5065]: **** S.U.P.E.R.M.A.N. 4.0.3 - CHECK SOFTWARE UPDATES/UPGRADE ****
Wed Feb 21 17:00:59 super[5065]: Status: A macOS minor update is available: macOS 14.3.1-23D60
Wed Feb 21 17:00:59 super[5065]: Status: No available non-system Apple software updates or they may be deferred via configuration profile.
Wed Feb 21 17:00:59 super[5065]: Status: No available macOS major upgrades or they may be deferred via configuration profile.
Wed Feb 21 17:00:59 super[5065]: Warning: The system has been restarted without applying the previously downloaded macOS update/upgrade, download workflow needs to run again.
Wed Feb 21 17:00:59 super[5065]: **** S.U.P.E.R.M.A.N. 4.0.3 - MACOS 14.3.1 MINOR UPDATE ****
Wed Feb 21 17:00:59 super[5065]: softwareupdate: Starting macOS 14.3.1 download workflow, check /Library/Management/super/logs/asu-workflow.log for more detail.
Wed Feb 21 17:01:09 super[5065]: Error: Unable to find requested macOS update/upgrade via softwareupdate.
Wed Feb 21 17:01:10 super[5065]: Status: Restarting various softwareupdate daemon processes...
Wed Feb 21 17:01:15 super[5065]: Error: Download macOS update/upgrade workflow failed, trying again in 60 minutes.
Wed Feb 21 17:01:15 super[5065]: Exit: super is scheduled to automatically relaunch at: 2024-02-21:18:01:00
Wed Feb 21 17:01:15 super[5065]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****
Wed Feb 21 19:03:21 super-starter[1375]: **** S.U.P.E.R.M.A.N. 4.0.3 - LAUNCHDAEMON ****
Wed Feb 21 19:03:22 super[1388]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 19:03:25 super[1388]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 19:03:25 super[1388]: Status: Last macOS startup was: 2024-02-21:17:43:00
Wed Feb 21 19:03:25 super[1388]: Status: No GUI user currently logged in.
Wed Feb 21 19:03:37 super[1388]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://
.jamfcloud.com/
Wed Feb 21 19:03:38 super[1388]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 19:03:38 super[1388]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 19:03:39 super[1388]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 19:03:40 super[1388]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 19:03:40 super[1388]: **** S.U.P.E.R.M.A.N. 4.0.3 - CHECK SOFTWARE UPDATES/UPGRADE ****
Wed Feb 21 19:03:41 super[1388]: Status: A macOS minor update is available: macOS 14.3.1-23D60
Wed Feb 21 19:03:41 super[1388]: Status: No available non-system Apple software updates or they may be deferred via configuration profile.
Wed Feb 21 19:03:42 super[1388]: Status: No available macOS major upgrades or they may be deferred via configuration profile.
Wed Feb 21 19:03:43 super[1388]: **** S.U.P.E.R.M.A.N. 4.0.3 - MACOS 14.3.1 MINOR UPDATE ****
Wed Feb 21 19:03:56 super[1388]: softwareupdate: Starting macOS 14.3.1-23D60 download and update workflow, check /Library/Management/super/logs/asu-workflow.log for more detail.
Wed Feb 21 19:19:33 super[1388]: Error: The softwareupdate process was unable to reach Apple software update servers or find the requested macOS update/upgrade.
Wed Feb 21 19:19:33 super[1388]: Status: Restarting various softwareupdate daemon processes...
Wed Feb 21 19:19:38 super[1388]: Error: Installation of macOS update/upgrade via softwareupdate failed, trying again in 60 minutes.
Wed Feb 21 19:19:38 super[1388]: Exit: super is scheduled to automatically relaunch at: 2024-02-21:20:19:00
Wed Feb 21 19:19:38 super[1388]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****
Wed Feb 21 22:53:03 super-starter[2221]: **** S.U.P.E.R.M.A.N. 4.0.3 - LAUNCHDAEMON ****
Wed Feb 21 22:53:04 super[2234]: **** S.U.P.E.R.M.A.N. 4.0.3 - SUPER STARTUP WORKFLOW ****
Wed Feb 21 22:53:04 super[2234]: Status: Mac computer with Intel running: macOS Sonoma 14.3-23D56
Wed Feb 21 22:53:04 super[2234]: Status: Last macOS startup was: 2024-02-21:17:43:00
Wed Feb 21 22:53:04 super[2234]: Status: No GUI user currently logged in.
Wed Feb 21 22:53:06 super[2234]: Status: System is managed by Jamf Pro 11.3.0 hosted at: https://************.jamfcloud.com/
Wed Feb 21 22:53:07 super[2234]: Warning: The --auth-ask-user-to-save-password option is ignored on Mac computers with Intel.
Wed Feb 21 22:53:07 super[2234]: Warning: The --auth-credential-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 22:53:07 super[2234]: Warning: The --auth-mdm-failover-to-user option is ignored on Mac computers with Intel.
Wed Feb 21 22:53:07 super[2234]: Status: macOS update/upgrade workflows automatically authenticated via system account (root).
Wed Feb 21 22:53:07 super[2234]: **** S.U.P.E.R.M.A.N. 4.0.3 - CHECK SOFTWARE UPDATES/UPGRADE ****
Wed Feb 21 22:53:07 super[2234]: Status: No available Apple software updates or they may be deferred via configuration profile.
Wed Feb 21 22:53:07 super[2234]: Status: No available macOS major upgrades or they may be deferred via configuration profile.
Wed Feb 21 22:53:07 super[2234]: Status: Restarting workflow automatic zero date.
Wed Feb 21 22:53:07 super[2234]: Status: Restarting all deadline counters.
Wed Feb 21 22:53:07 super[2234]: Status: Full super workflow complete! Automatic relaunch is disabled.
Wed Feb 21 22:53:07 super[2234]: **** S.U.P.E.R.M.A.N. 4.0.3 - CLEAN EXIT ****

@dansutt dansutt changed the title Super trying to run when lid is closed and no logged in user. (Intel Device) Super trying to run when lid is closed. (Intel Device) Feb 29, 2024
@dansutt dansutt changed the title Super trying to run when lid is closed. (Intel Device) Super trying to run when lid is closed, and no logged on user. (Intel Device) Feb 29, 2024
@Macjutsu Macjutsu added bug Something isn't working enhancement New feature or request labels May 17, 2024
@Macjutsu
Copy link
Owner

While this may manifest as a bug... it's really a feature request as there is currently no sleep/lid closed detection in super... but it is something to think about adding. Thinking through this though... some folks use the lid closed very often, so it would need to check for lid closed and inactive user.

@Macjutsu Macjutsu added this to the v5.0.0 milestone Aug 8, 2024
@Macjutsu Macjutsu modified the milestones: v5.0.0, v5.x.x Sep 10, 2024
@Macjutsu Macjutsu removed the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants