managedsoftwareupdate exiting with error code 2

42 views
Skip to first unread message

Saverio Castelli

unread,
Jan 15, 2024, 9:45:00 PMJan 15
to munki-discuss
Hi all,
I am an end user that just received a new Mac that whose software is being centrally managed through Munki.
I am having some trouble getting it to run, and while I wait for IT to get back to me (which might be slow with today being a statutory holiday and all of that), I figured I could try and solve this.

The first symptom I noticed was seeing "Update check failed - There is a configuration problem ..." error. As recommended in the FAQ, I restarted the system but that didn't solve the problem.

I then went ahead and tried running managedsoftwareupdate from the command line, and noticed it crash immediately after start without prompting anything on screen (same story with the very verbose setting on).

I checked the ManagedInstalls plist thorugh

defaults read /Library/Preferences/ManagedInstalls 

and that seems to return a valid configuration, but the log file it points to through the LogFile field doesn't exist, I assume because managedsoftwareupdate never properly runs.

Finally, running  sudo launchctl list | grep munki  returns

- 0 com.googlecode.munki.logouthelper
- 0 com.googlecode.munki.managedsoftwareupdate-check
- 78 com.googlecode.munki.managedsoftwareupdate-manualcheck
- 0 com.googlecode.munki.authstartd
- 0 com.googlecode.munki.appusaged
- 0 com.googlecode.munki.managedsoftwareupdate-install

which seems to suggest that the LaunchDaemons are correctly running.
At this point I am kind of at a loss - am I missing something obvious here? For what is worth, in the install.log I see that the version being used is 6.4.0.4627.

Thanks! 

Alan

unread,
Jan 15, 2024, 10:14:58 PMJan 15
to munki-...@googlegroups.com
Managed Software Center is the graphicl frontend for Munki, but are the background runs able to run okay?

You can run

sudo managedsoftwareupdate -vvv --checkonly

to see if your Mac is able to properly communicate with your org's repo.

You can run

sudo managedsoftwareupdate --auto

to simulate a background run. If the log isn't configured, I believe it will default to /Library/Managed Installs/Logs/ManagedSoftwareUpdate.log, but you can verify by running

sudo managedsoftwareupdate --show-config | grep LogFile

--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/8b718552-e0df-41f8-83f2-270384998153n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages