--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
RGM-IT-L1:~ rgmadmin$ sudo /usr/local/munki/managedsoftwareupdate -vvvv --installonly
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Installing available Apple Software Updates...
ERROR: Missing local Software Update catalog at /tmp/munki_swupd_cache/content/catalogs/local_install.sucatalog
Finishing...
Getting info on currently installed applications...
Done.
Thanks everyone,
After looking through the logs, I was able to determine a few things:
- when i point the client back to the normal Apple SUS, the problem goes away.
- when pointing at our Reposado server, the log shows the following:RGM-IT-L1:~ rgmadmin$ sudo /usr/local/munki/managedsoftwareupdate -vvvv --installonly
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Installing available Apple Software Updates...
ERROR: Missing local Software Update catalog at /tmp/munki_swupd_cache/content/catalogs/local_install.sucatalog
Finishing...
Getting info on currently installed applications...
Done.
RGM-IT-L1:~ rgmadmin$ sudo /usr/local/munki/managedsoftwareupdate -vvvv
Password:
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Checking Apple Software Update catalog...
Caching CatalogURL https://swup1-aus.rgmadvisors.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1_update-testers.sucatalog
follow_redirects is True
HTTP/1.1 304 Not Modified
Date: Thu, 09 Jan 2014 19:24:16 GMT
Server: Apache
Connection: close
ETag: "4359be0-101ffa-4edbc54474c0b"
/tmp/munki_swupd_cache/mirror/apple.sucatalog already exists and is up-to-date.
Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '-v', '-l', '-f', '/tmp/munki_swupd_cache/ApplicableUpdates.plist']
ERROR: softwareupdate error: 100
The following Apple Software Updates are available to install:
+ Remote Desktop Client Update-3.7.1
+ iBooks Update-1.0.1
+ OS X Update-10.9.1
*Restart required
Run managedsoftwareupdate --installonly to install the downloaded updates.
Ok, here is the output from both of those... from a freshly updated machine that is pointed to our Reposado server.RGM-IT-L1:~ rgmadmin$ sudo /usr/local/munki/managedsoftwareupdate -vvvv
Password:
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Checking Apple Software Update catalog...
Caching CatalogURL https://swup1-aus.rgmadvisors.com/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1_update-testers.sucatalog
follow_redirects is True
HTTP/1.1 304 Not Modified
Date: Thu, 09 Jan 2014 19:24:16 GMT
Server: Apache
Connection: close
ETag: "4359be0-101ffa-4edbc54474c0b"
/tmp/munki_swupd_cache/mirror/apple.sucatalog already exists and is up-to-date.
Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '-v', '-l', '-f', '/tmp/munki_swupd_cache/ApplicableUpdates.plist']
ERROR: softwareupdate error: 100
The following Apple Software Updates are available to install:
+ Remote Desktop Client Update-3.7.1
+ iBooks Update-1.0.1
+ OS X Update-10.9.1
*Restart required
Run managedsoftwareupdate --installonly to install the downloaded updates.
Finishing...
Getting info on currently installed applications...
Done.
RGM-IT-L1:~ rgmadmin$ sudo /usr/local/munki/managedsoftwareupdate -vvvv --installonly
Managed Software Update Tool
Copyright 2010-2013 The Munki Project
http://code.google.com/p/munki
Starting...
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Installing available Apple Software Updates...
ERROR: Missing local Software Update catalog at /tmp/munki_swupd_cache/content/catalogs/local_install.sucatalog
managedsoftwareupdate -vvvv --applesuspkgsonly
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
https://github.com/munki/munki
Starting...
Performing preflight tasks...
preflight stdout: Munkireport: # Executing scripts in preflight_abort.d
Munkireport: etc. etc.
+++
NOTE: managedsoftwareupdate is configured to process Apple Software Updates only.
Checking Apple Software Update catalog...
Caching CatalogURL https://reposado.replaceddomain.cz/index_production.sucatalog
Options: {'logging_function': <function display_debug2 at 0x11263f6e0>, 'additional_headers': {u'User-Agent': u'managedsoftwareupdate/2.3.0.2519 Darwin/14.5.0 (x86_64) (MacBookAir6,2)'}, 'file': '/tmp/munki_swupd_cache/mirror/apple.sucatalog.download', 'cache_data': {
etag = "\"2c429a-51fa8f9e5c944\"";
"last-modified" = "Sun, 13 Sep 2015 23:04:51 GMT";
}, 'url': u'https://reposado.replaceddomain.cz/index_production.sucatalog', 'follow_redirects': True, 'download_only_if_changed': True, 'can_resume': True}
connection_willSendRequestForAuthenticationChallenge_
Authentication challenge for Host: reposado.domain.cz Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
Allowing OS to handle authentication request
Status: 304
Headers: {u'Date': u'Mon, 14 Sep 2015 00:14:39 GMT', u'Connection': u'Keep-Alive', u'Etag': u'"2c429a-51fa8f9e5c944"', u'Keep-Alive': u'timeout=5, max=100', u'Server': u'Apache/2.4.7 (Ubuntu)'}
Item is unchanged on the server.
/tmp/munki_swupd_cache/mirror/apple.sucatalog already exists and is up-to-date.
Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '-v', '-l', '-f', '/tmp/munki_swupd_cache/ApplicableUpdates.plist']
ERROR: softwareupdate error: 100
Finishing...
Getting info on currently installed applications...
Performing postflight tasks...
postflight stdout: Munkireport: # Executing scripts in postflight.d
Munkireport: etc. etc.
+++
Skipping Apple Software Update check because sucatalog is unchanged, installed Apple packages are unchanged and we recently did a full check.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>date</key>
<date>2015-09-14T10:10:30Z</date>
<key>phase</key>
<string>ERROR</string>
<key>phaseError</key>
<string>The operation couldn’t be completed. (NSURLErrorDomain error -1012.)</string>
<key>phaseStatus</key>
<string>INPROGRESS</string>
<key>pid</key>
<integer>8893</integer>
</dict>
</plist>
/tmp/munki_swupd_cache/mirror/apple.sucatalog already exists and is up-to-date.
Checking for available Apple Software Updates...
softwareupdate cmd: ['/usr/local/munki/ptyexec', '/usr/sbin/softwareupdate', '-v', '-l', '-f', '/tmp/munki_swupd_cache/ApplicableUpdates.plist']
ERROR: softwareupdate error: 100
Finishing...
Getting info on currently installed applications...
Performing postflight tasks...
postflight stdout: Munkireport: # Executing scripts in postflight.d
Munkireport: etc. etc.
+++I guess undocumented softwareupdate flags have following meaning: -v is for verbose and -f is for using file instead of downloading catalog from network server.
When I ran managedsoftwareupdate multiple times I got same error or this message:Skipping Apple Software Update check because sucatalog is unchanged, installed Apple packages are unchanged and we recently did a full check.This is state of files in /Library/Managed Installs/swupd/Library/Managed Installs/swupd/ApplicableUpdates.plist<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>date</key>
<date>2015-09-14T10:10:30Z</date>
<key>phase</key>
<string>ERROR</string>
<key>phaseError</key>
<string>The operation couldn’t be completed. (NSURLErrorDomain error -1012.)</string>
<key>phaseStatus</key>
<string>INPROGRESS</string>
<key>pid</key>
<integer>8893</integer>
</dict>
</plist>Only other files in swupd are:/Library/Managed Installs/swupd/content/catalogs/apple_index.sucatalog/Library/Managed Installs/swupd/mirror/apple.sucatalog
Both valid plist files (plutil -lint)Manual (temporary) fixI was able to install Apple software updates through managedsoftwareupdate after I run softwareupdate -lMost of the times I also had to delete /Library/Managed Installs/swupdPermament fix:Use HTTP. We haven't reproduced this issue when we reconfigured webserver and Reposado (repoutil --configure) and clients to use HTTP.Notes- running apple's softwareupdate from command line always worked- I wonder for exactly where NSURLErrorDomain error -1012 comes from- HTTPS configuration on server was set to allow TLS 1.1 and TLS 1.2 only, adding TLS 1.0 did not help- we replicated this issue with both EC 384b and RSA 4096b certificatesWild guess -> this is somehow related to our HTTPS setup and tricks munki is doing with Apple software update.We are going to replace self-signed certificate with certificates signed by our own CA soon. I will try to get back to this issue when is happends.I would gladly appreciate any tips how to investigate further.Perhaps I am missing something obvious?
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.