Could not retrieve primary manifest

669 views
Skip to first unread message

ksm...@bigelow.org

unread,
Apr 11, 2018, 2:42:27 PM4/11/18
to munki-discuss
Hi,

I'm new to munki and am hitting a road  block during testing. I set up the software on my Mac running High Sierra following the instructions found here: https://github.com/munki/munki/wiki/Demonstration-Setup. When attempting to run the munki client from the CLI I get the following message:

"Managed Software Update Tool
Copyright 2010-2018 The Munki Project

Starting...
Checking for available updates...
ERROR: Could not retrieve managed install primary manifest.
Finishing...
Done."

When I check the logs, the error message says this: 

"-0400 ERROR: Could not retrieve managed install primary manifest."


I don't have any more info and double checked the file permissions. Everything looks fine. Group and Others have read access to the files.

I'm not sure what I'm missing.

Can anyone shed any light on this please?

Thanks.

Mr. Alan Siu

unread,
Apr 11, 2018, 2:47:27 PM4/11/18
to munki-...@googlegroups.com
Can you try this command from the client machine and then post the output back here?
sudo managedsoftwareupdate -vvv



Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

--
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-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/fdc285be-097c-4201-b34b-b7bcbfbecdba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Smith

unread,
Apr 11, 2018, 2:50:26 PM4/11/18
to munki-...@googlegroups.com
Yes, I did that and received the same error message.

Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




Gregory Neagle

unread,
Apr 11, 2018, 2:51:54 PM4/11/18
to munki-...@googlegroups.com
But with more _detail_, which is what is needed to help you.

-Greg

To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.

To post to this group, send email to munki-...@googlegroups.com.

Kevin Smith

unread,
Apr 11, 2018, 2:55:58 PM4/11/18
to munki-...@googlegroups.com
Hi Greg,

Sorry, I missed the -vvv in your suggestion. Here you go:

Last login: Wed Apr 11 14:07:43 on ttys000
helpdesk-lp-osx:~ ksmith$ sudo /usr/local/munki/managedsoftwareupdate -vvv
Password:
Managed Software Update Tool
Copyright 2010-2018 The Munki Project

Starting...
    No CA cert info provided, so nothing to add to System keychain.
    No client cert info provided, so no client keychain will be created.
Checking for available updates...
    No client id specified. Requesting helpdesk-lp-osx.local...
    Manifest base URL is: http://localhost/munki_repo/manifests/
    Getting manifest helpdesk-lp-osx.local...
    Options: {'logging_function': <function display_debug2 at 0x10d7f4a28>, 'ignore_system_proxy': False, 'additional_headers': {'User-Agent': u'managedsoftwareupdate/3.2.1.3498 Darwin/17.3.0'}, 'file': u'/Library/Managed Installs/manifests/helpdesk-lp-osx.local.download', 'cache_data': None, 'url': u'http://localhost/munki_repo/manifests/helpdesk-lp-osx.local', 'follow_redirects': u'none', 'download_only_if_changed': False, 'can_resume': False}
    Download error -1003: A server with the specified hostname could not be found.
    Headers: None
ERROR: Could not retrieve managed install primary manifest.
Finishing...
    Getting info on currently installed applications...
Done.
helpdesk-lp-osx:~ ksmith$
Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




--
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-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.

David Nelson

unread,
Apr 11, 2018, 2:57:35 PM4/11/18
to munki-...@googlegroups.com
I think this is the relevant bit:
Download error -1003: A server with the specified hostname could not be found.

Mr. Alan Siu

unread,
Apr 11, 2018, 2:58:56 PM4/11/18
to munki-...@googlegroups.com
It says A server with the specified hostname could not be found

What happens when you visit http://localhost/munki_repo/manifests/helpdesk-lp-osx.local in a web browser?


Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

Kevin Smith

unread,
Apr 11, 2018, 2:59:58 PM4/11/18
to munki-...@googlegroups.com
404 not found error

Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




Kevin Smith

unread,
Apr 11, 2018, 3:00:57 PM4/11/18
to munki-...@googlegroups.com
I think I need to redo my munki config and specify my computer's hostname

Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




Gregory Neagle

unread,
Apr 11, 2018, 3:03:07 PM4/11/18
to munki-...@googlegroups.com
"localhost" will only work on the machine that is the Munki server.

The demonstration setup is using ONE machine that is both the Munki server and client.

Once you move to multiple machiness, or a (normal) setup, you'd use the DNS name of the actual Munki server in the SoftwareRepoURL on each client.

-Greg

To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.

To post to this group, send email to munki-...@googlegroups.com.

Kevin Smith

unread,
Apr 11, 2018, 3:05:42 PM4/11/18
to munki-...@googlegroups.com
Yes, that's what I was trying to do, just for testing purposes.

Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




--
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-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.

Mr. Alan Siu

unread,
Apr 11, 2018, 3:25:54 PM4/11/18
to munki-...@googlegroups.com
Perhaps you skipped the step of activating Apache?


Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

Kevin Smith

unread,
Apr 11, 2018, 3:29:27 PM4/11/18
to munki-...@googlegroups.com
No, I made sure that Apache was running. I changed the hostname in my configuration and now I'm getting a totally different error. It says error 61 connection refused.


Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




Kevin Smith

unread,
Apr 13, 2018, 4:20:06 PM4/13/18
to munki-...@googlegroups.com
Update: So I was able to get munki up and running by using the IP address of my host and the smb protocol. I also needed to ensure that file sharing was enabled and that the manifest folder and pkgs folder was accessible. After that I installed munkitools on the client, set the path to the host repo, and then opened Managed Software Center. Once I did that, it automatically scanned for any missing packages and when I clicked "Update" it installed them immediately! I'm pretty psyched that this works so well!

Kevin Smith
Desktop Support Technician
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive; PO Box 380
East Boothbay, Maine 04544




rashad...@scdhhs.gov

unread,
Jun 20, 2018, 10:28:26 AM6/20/18
to munki-discuss
I believe my issue is very similar. I have 2 MacBooks and I followed the Demo setup. One acting as the server and the other as the client. My output of the error on the client is below. The apache service is already loaded. When I navigate to localhost/munki_repo/manifests/site_default. Any other attempts to navigate to other URLs display a forbidden error. Please help as I'd like to get this working!

OIA-Admins-MacBook-Pro:munki oia-admin$ sudo ./managedsoftwareupdate 

Password:

Managed Software Update Tool

Copyright 2010-2018 The Munki Project

https://github.com/munki/munki

 

Starting...

Checking for available updates...

ERROR: Could not retrieve managed install primary manifest.

Finishing...

Done.


OIA-Admins-MacBook-Pro:munki oia-admin$ sudo managedsoftwareupdate -vvv

Password:

Managed Software Update Tool

Copyright 2010-2018 The Munki Project

https://github.com/munki/munki

 

Starting...

    No CA cert info provided, so nothing to add to System keychain.

    No client cert info provided, so no client keychain will be created.

Checking for available updates...

    No client id specified. Requesting OIA-Admins-MacBook-Pro.local...

    Manifest base URL is: http://localhost/munki_repo/manifests/

    Getting manifest OIA-Admins-MacBook-Pro.local...

    Options: {'logging_function': <function display_debug2 at 0x11c70cc08>, 'ignore_system_proxy': False, 'additional_headers': {'User-Agent': u'managedsoftwareupdate/3.3.0.3515 Darwin/16.7.0'}, 'file': u'/Library/Managed Installs/manifests/OIA-Admins-MacBook-Pro.local.download', 'cache_data': None, 'url': u'http://localhost/munki_repo/manifests/OIA-Admins-MacBook-Pro.local', 'follow_redirects': u'none', 'download_only_if_changed': False, 'can_resume': False}

    Download error -1004: Could not connect to the server.

Nick McSpadden

unread,
Jun 20, 2018, 10:40:02 AM6/20/18
to munki-...@googlegroups.com
Does  http://localhost/munki_repo/manifests/OIA-Admins-MacBook-Pro.local work for you? That's the URL it's trying to retrieve. It's telling you it can't connect to that URL, likely because your webserver is not started or is not configured correctly. You'll need to resolve that first.

--
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 post to this group, send email to munki-...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
--
Nick McSpadden
nmcsp...@gmail.com

rashad...@scdhhs.gov

unread,
Jun 20, 2018, 12:01:06 PM6/20/18
to munki-discuss
I'm not able to get there. Regarding apache. I started the process and it says its already loaded. when I do a sudo apachectl status it tells me mod_status should be enabled. Not saying thats the root cause but apache is running. Should the Demo setup be completed on 1 Mac?

Gregory Neagle

unread,
Jun 20, 2018, 12:06:04 PM6/20/18
to munki-...@googlegroups.com
On Jun 20, 2018, at 6:53 AM, rashad.ishmal via munki-discuss <munki-...@googlegroups.com> wrote:

I believe my issue is very similar. I have 2 MacBooks and I followed the Demo setup. One acting as the server and the other as the client. My output of the error on the client is below. The apache service is already loaded. When I navigate to localhost/munki_repo/manifests/site_default. Any other attempts to navigate to other URLs display a forbidden error. Please help as I'd like to get this working!

I hate to be too obvious, but you say you have two machines. You've deviated from the Demo Setup, which uses ONE machine. It's OK to deviate, but you need to understand the consequences of your changes.  You have your client Mac asking for a manifest from "localhost":

That means it's asking for a manifest FROM ITSELF. Since the Demo Setup uses a single Mac, the client and server are the SAME machine and asking for a manifest from localhost makes sense (and works). But you are using TWO machines, and the client needs to ask for the manifest from the server machine, not itself.

You'll need to configure your client to ask for the manifest from the Mac you've set up as a server. It will have its own DNS name, or in a pinch you can use its IP address.

-Greg

--
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 post to this group, send email to munki-...@googlegroups.com.

rashad...@scdhhs.gov

unread,
Jun 20, 2018, 12:25:42 PM6/20/18
to munki-discuss
Great! I've made the changes and received the output below. Progress! I guess its time to add more software. I'm trying to use Munki along with JAMF Now as an alternate method to imaging and I think I'm almost done. Thanks guys!

OIA-Admins-MacBook-Pro:munki oia-admin$ sudo ./managedsoftwareupdate 

Managed Software Update Tool

Copyright 2010-2018 The Munki Project

https://github.com/munki/munki

 

Starting...

Checking for available updates...

    Retrieving list of software for this machine...

    Retrieving list of software for this machine...

    Retrieving list of software for this machine...

    Retrieving list of software for this machine...

0..20..40..60..80..100

    Retrieving catalog "testing"...

0..20..40..60..80..100

    Downloading VMware-Horizon-Client-4.7.0-7395166-4.7.0.dmg...

0..20..40..60..80..100

    Verifying package integrity...

    Getting list of available icons...

0..20..40..60..80..100

    Getting icon VMware Horizon Client.png for VMware Horizon Client...

0..20..40..60..80..100

    Getting client resources...

    Getting client resources...

    

    The following items will be installed or upgraded:

        + VMware Horizon Client-4.7.0

            VMware Client

 

Run managedsoftwareupdate --installonly to install the downloaded updates.

Finishing...

Done.


Ahmed Saher Manna

unread,
Jun 22, 2018, 7:47:52 AM6/22/18
to munki-discuss
Hi there,

I had your problem with my first time.

you need to tell your macOS server where is your repo!
then please try to test your client.

Best regards.
Reply all
Reply to author
Forward
0 new messages