ERROR: Could not retrieve manifest client_manifest from the server.

4,400 views
Skip to first unread message

Tomasz Kolator

unread,
Aug 11, 2011, 4:33:17 PM8/11/11
to munki-dev
Hey guys. I did a fresh install on a client and doing some tests but
getting this error message.

ERROR: Could not retrieve manifest client_manifest from the server.
ERROR: Error 22: The requested URL returned error: 401
ERROR: Could not retrieve managed install primary manifest.
No changes to managed software are available.

Everything looks good on the client side and server side. The manifest
does exist on the server in the appropriate spot. the URL is also
correct because I can type it in the client in a web browser and be
able to view the munki documents. I checked the logs and they just say
the same error messages as above.

Any ideas?

Nate

unread,
Aug 11, 2011, 4:35:30 PM8/11/11
to munk...@googlegroups.com
Error 401 is an auth failure it would seem.  Also, I ran into this the other day...run plutil -lint /path/to/manifest to make sure the xml is valid.

Nate

Justin McWilliams

unread,
Aug 11, 2011, 4:35:33 PM8/11/11
to munk...@googlegroups.com
HTTP 401 Unauthorized
Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided.[2] The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource. See Basic access authentication and Digest access authentication.

This is almost assuredly an access issue. Check your web server configs.

On Thu, Aug 11, 2011 at 4:33 PM, Tomasz Kolator <kolator...@gmail.com> wrote:

Tomasz Kolator

unread,
Aug 12, 2011, 11:45:15 AM8/12/11
to munki-dev
deleted munki from both the client and server and started all over and
now I get this error message. Found in the group with someone with the
exact error and it turned out to be a bad manifest. I ran plutil on
mine and it said it was OK. I have no idea what the issue is now.

Managed Software Update Tool
Copyright 2010 The Munki Project
http://code.google.com/p/munki

Getting manifest client_manifest...
Retreiving list of software for this machine...
Download error: http://site url here/munki/manifests/temp. Failed (22)
with: The requested URL returned error: 401
ERROR: Could not retrieve manifest client_manifest from the server.
ERROR: Error 22: The requested URL returned error: 401
ERROR: Could not retrieve managed install primary manifest.
ERROR: Unexpected error in updatecheck:
ERROR: Traceback (most recent call last):
File "/usr/local/munki/managedsoftwareupdate", line 568, in main
updatecheckresult = updatecheck.check(client_id=options.id)
File "/usr/local/munki/munkilib/updatecheck.py", line 2971, in check
for item in installinfo['managed_installs']:
KeyError: 'managed_installs'

************Manifest************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>managed_installs</key>
<array>
<string>Chrome</string>
</array>
<key>managed_uninstalls</key>
<array>
</array>
</dict>
</plist>


************Catalog************

<?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">
<array>
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>installer_item_hash</key>

<string>4143bcf883381eb13a3649422e4e9290bdd6458d178399be4050c954f3e68e72</
string>
<key>installer_item_location</key>
<string>googlechrome.dmg</string>
<key>installer_item_size</key>
<integer>43114</integer>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>installs</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.google.Chrome</string>
<key>CFBundleName</key>
<string>Chrome</string>
<key>CFBundleShortVersionString</key>
<string>13.0.782.112</string>
<key>minosversion</key>
<string>10.5.0</string>
<key>path</key>
<string>/Applications/Google Chrome.app</string>
<key>type</key>
<string>application</string>
</dict>
</array>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/Applications</string>
<key>source_item</key>
<string>Google Chrome.app</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>name</key>
<string>Chrome</string>
<key>uninstall_method</key>
<string>remove_copied_items</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>13.0.782.112</string>
</dict>
</array>
</plist>

************Chrome pkginfo file************

<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>installer_item_hash</key>

<string>4143bcf883381eb13a3649422e4e9290bdd6458d178399be4050c954f3e68e72</
string>
<key>installer_item_location</key>
<string>googlechrome.dmg</string>
<key>installer_item_size</key>
<integer>43114</integer>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>installs</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.google.Chrome</string>
<key>CFBundleName</key>
<string>Chrome</string>
<key>CFBundleShortVersionString</key>
<string>13.0.782.112</string>
<key>minosversion</key>
<string>10.5.0</string>
<key>path</key>
<string>/Applications/Google Chrome.app</string>
<key>type</key>
<string>application</string>
</dict>
</array>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/Applications</string>
<key>source_item</key>
<string>Google Chrome.app</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>name</key>
<string>Chrome</string>
<key>uninstall_method</key>
<string>remove_copied_items</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>13.0.782.112</string>
</dict>
</plist>

Justin McWilliams

unread,
Aug 12, 2011, 11:50:44 AM8/12/11
to munk...@googlegroups.com
""" Download error: http://site url here/munki/manifests/temp. Failed
(22) with: The requested URL returned error: 401 """

        munkicommon.display_detail('Download error: %s. Failed (%s) with: %s'
                                    % (url,retcode,curlerr))
        raise CurlError(retcode, curlerr)

This is definitely a failed download of the manifest, not a corrupt
manifest/catalog/etc.

What does ManagedInstalls.plist look like?  Or do you have MCX settings?

It looks like your SoftwareRepoURL starts with "http://site url here",
which probably not what you want?

Greg Neagle

unread,
Aug 12, 2011, 11:53:27 AM8/12/11
to munk...@googlegroups.com
The fundamental issue has nothing to with munki, and everything to do with your webserver.

When trying to retrieve the primary manifest, the client is getting an HTTP 401 error.

See this line:


Download error: http://site url here/munki/manifests/temp.

Try downloading that URL with your web browser.

managedsoftwareupdate isn't handling this error very gracefully, but you are running munki 0.7.1 or earlier, and I think managedsoftwareupdate behaves better now in this situation, but that means only the error report is prettier -- the fundamental problem is the same -- munki can't successfully download its manifest.

-greg

Tomasz Kolator

unread,
Aug 12, 2011, 3:54:45 PM8/12/11
to munki-dev
OK. Got it to work. It was the server and not munki.

cedric...@gmail.com

unread,
Jul 31, 2014, 12:49:05 PM7/31/14
to munk...@googlegroups.com
Hi,

Can you share how you resolved your issue, I'm getting the same error.
I have renewed my SSL certificate recently but it all looks good.

Any thoughts? How can I troubleshoot this?
Could not retrieve manifest client_manifest from the server.
Error 22: The requested URL returned error: 401 Authorization Required

Could not retrieve managed install primary manifest.


Running putil on the manifests results are OK

Caribou

Michael Ellis

unread,
Aug 26, 2014, 5:51:03 PM8/26/14
to munk...@googlegroups.com
Tomasz,

What did you change to fix it?
Thanks,

Michael
Reply all
Reply to author
Forward
0 new messages