Hi,
I have a Munki setup that I'm using for managing around 200 Macs. Munki runs on Yosemite Server and it's been working great but as usually is, there are still some issues that need attention.
My basic deployment workflow for new Macs starts in DeployStudio that I'm using to drop thin base-image (10.10.5), MunkiTools and settings for Munki (munki_repo and manifest).
After DS has finalized installation, I log in and launch Managed Software Center. Most of my manifests include some mandatory apps like munkireport, inventory client and profile for setting up certs and network as Managed Installs. These install as expected and everything seems to work fine.
Next step is usually Optional Installs and this is when something unexpected happens. When I select app and hit Install, MSC shows error message:
“Update check failed
There is a configuration problem with the managed software installer. Could not start the process. Contact your systems administrator.”
MSC quit and relaunch doesn't fix this. However restarting Mac does and error doesn't reappear. Optional Installs work as expected after restart as well as Managed Installs. Also this happens only on workflows that has Managed Installs.
As the error message states, it looks like Managed Installs somehow 'knocks out' launchd for Optional Installs.
I've done some troubleshooting and also browsed previous threads of similar issues but couldn't find exact solution.
So far this is what I got:
MunkiTools 2.3.1.2535
DeployStudio Server 1.6.16
MunkiAdmin 1.3.0
Before launching MSC for the first time, launchd's are like this:
sudo launchctl list | grep munki
- 0 com.googlecode.munki.logouthelper
- 0 com.googlecode.munki.managedsoftwareupdate-check
- 0 com.googlecode.munki.managedsoftwareupdate-manualcheck
- 0 com.googlecode.munki.managedsoftwareupdate-install
After Managed Installs are done and at least one Optional Install has been selected for installation...
sudo launchctl list | grep munki
- 0 com.googlecode.munki.logouthelper
- 0 com.googlecode.munki.managedsoftwareupdate-check
- 1 com.googlecode.munki.managedsoftwareupdate-manualcheck
- 0 com.googlecode.munki.managedsoftwareupdate-install
After MSC GUI failed to install Firefox (or any other optional install) I ran the command below.
/usr/local/munki/managedsoftwareupdate -vvv —installonly
Sep 16 2015 09:42:45 -0700 **Processing self-serve choices**
Sep 16 2015 09:42:45 -0700 Need to install Firefox
Sep 16 2015 09:42:45 -0700 Downloading Firefox-40.0.3.dmg from apps/firefox/fi/Firefox-40.0.3.dmg
Sep 16 2015 09:42:45 -0700 Downloading Firefox-40.0.3.dmg from apps/firefox/fi/Firefox-40.0.3.dmg
Sep 16 2015 09:42:45 -0700 Downloading Firefox-40.0.3.dmg...
Sep 16 2015 09:42:47 -0700 Verifying package integrity...
Sep 16 2015 09:42:47 -0700 Firefox-40.0.3.dmg downloaded at 75335 KB/s
Sep 16 2015 09:42:47 -0700 ### End managed software check ###
Sep 16 2015 09:42:47 -0700
Sep 16 2015 09:42:47 -0700 The following items will be installed or upgraded:
Sep 16 2015 09:42:47 -0700 + Firefox-40.0.3
Sep 16 2015 09:42:47 -0700 Mozilla Firefox is a free and open source web browser.
Sep 16 2015 09:42:47 -0700 Finishing...
This is where the log's Firefox-related entries usually end. For some reason, usually after waiting some time, installation will success and Firefox disappears from the pending updates list of MSC GUI. GUI however still gives the exact same error if I hit Check again button.
Sep 16 2015 09:43:56 -0700 ### Beginning managed installer session ###
Sep 16 2015 09:43:56 -0700 Processing installs
Sep 16 2015 09:43:56 -0700 Installing Mozilla Firefox Finnish (1 of 1)
Sep 16 2015 09:43:56 -0700 Mounting disk image Firefox-40.0.3.dmg
Sep 16 2015 09:44:06 -0700 Copying Firefox.app to /Applications/Firefox.app
Sep 16 2015 09:44:15 -0700 Setting owner for '/Applications/Firefox.app' to 'root'
Sep 16 2015 09:44:15 -0700 Setting group for '/Applications/Firefox.app' to 'admin'
Sep 16 2015 09:44:15 -0700 Setting mode for '/Applications/Firefox.app' to 'o-w'
Sep 16 2015 09:44:15 -0700 The software was successfully installed.
Sep 16 2015 09:44:15 -0700 ### End managed installer session ###
This is not a show stopper as one failed install and restarting Mac resolves this issue. Still would be nice to know if this is some configuration problem or expected behaviour.
Thanks in advance.
Mikko