Issue when checking managed installs config and entering sudo command

550 views
Skip to first unread message

Amanda Vasquez

unread,
Dec 7, 2015, 3:16:26 PM12/7/15
to munki-discuss

When entering the following sudo command to check for updates and see if my configuration has worked. This happens..

sudo /usr/local/munki/managedsoftwareupdate -vv
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
https://github.com/munki/munki

Starting...
No client cert info provided, so no client keychain will be created.
Checking for available updates...
Getting manifest bootstrap...
Retrieving list of software for this machine...
Bytes received: 291
Status: 404
Headers: {u'Content-Length': u'291', u'Keep-Alive': u'timeout=5, max=100', u'Server': u'Apache', u'Connection': u'Keep-Alive', u'Date': u'Mon, 07 Dec 2015 20:02:32 GMT', u'Content-Type': u'text/html; charset=iso-8859-1'}
ERROR: Could not retrieve manifest bootstrap from the server: HTTP result 404: not found
ERROR: Could not retrieve managed install primary manifest.
Checking Apple Software Update catalog...
Caching CatalogURL https://swscan.apple.com/content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
Status: 304
Headers: {u'Expires': u'Tue, 08 Dec 2015 00:02:33 GMT', u'Keep-Alive': u'timeout=15, max=306', u'Server': u'Apache', u'Connection': u'Keep-Alive', u'Etag': u'"448359-5261a5fb11800"', u'Cache-Control': u'max-age=14400', u'Date': u'Mon, 07 Dec 2015 20:02:33 GMT'}
Item is unchanged on the server.
/tmp/munki_swupd_cache/mirror/apple.sucatalog already exists and is up-to-date.
Skipping Apple Software Update check because sucatalog is unchanged, installed Apple packages are unchanged and we recently did a full check.
ERROR: Could not read plist: /Library/Managed Installs/manifests/client_manifest.plist
ERROR: plist does not exist.
The following Apple Software Updates are available to install:
+ Security Update 2015-004-1.0
*Restart required

Run managedsoftwareupdate --installonly to install the downloaded updates.
Finishing...
Getting info on currently installed applications...
Done.

Can someone please help and tell me why these two error are coming up:
ERROR: Could not retrieve manifest bootstrap from the server: HTTP result 404: not found
ERROR: Could not retrieve managed install primary manifest.

When entering the following sudo command: sudo defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://IP ADDRESS/munki_repo"

Is that format correct for the software repo URL?

Nick McSpadden

unread,
Dec 7, 2015, 3:17:11 PM12/7/15
to munki-...@googlegroups.com
What happens if you try to curl that address?
curl http://<ip address>/munki_repo

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/1e168f11-0e8c-428e-a0c9-13b8e5ff973b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--
Nick McSpadden
nmcsp...@gmail.com
Message has been deleted
Message has been deleted

Nick McSpadden

unread,
Dec 7, 2015, 3:22:26 PM12/7/15
to munki-...@googlegroups.com
Simpler question:
What happens if you copy and paste that URL into a browser?  

Does it work if you open it in Safari?

On Mon, Dec 7, 2015 at 12:21 PM, Amanda Vasquez <avasqu...@gmail.com> wrote:
I am sorry but how exactly would I curl that address? would i do it using the sudo command again?

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Mr. Alan Siu

unread,
Dec 7, 2015, 3:23:35 PM12/7/15
to munki-...@googlegroups.com
No, it would be the command Nick gave you:

curl http://<ip address>/munki_repo

except, instead of <ip address>, you'd substitute in your actual IP address. For example, if your IP address is 192.168.1.105, then the command you'd put in would be curl http://192.168.1.105/munki_repo


Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

On Mon, Dec 7, 2015 at 12:21 PM, Amanda Vasquez <avasqu...@gmail.com> wrote:
I am sorry but how exactly would I curl that address? would i do it using the sudo command again?

On Monday, December 7, 2015 at 3:17:11 PM UTC-5, Nick McSpadden wrote:

Gregory Neagle

unread,
Dec 7, 2015, 3:24:01 PM12/7/15
to munki-...@googlegroups.com
http://<ip address>/munki_repo/manifests/bootstrap

…would seem to be the URL for the intended manifest…

-Greg

Amanda Vasquez

unread,
Dec 7, 2015, 3:25:29 PM12/7/15
to munki-discuss
I get the following error:

Not Found

The requested URL /munki_repo was not found on this server.


Apache Server at IP ADDRESS Port 80



Amanda Vasquez

unread,
Dec 7, 2015, 3:27:56 PM12/7/15
to munki-discuss
when i try to curl the ip address i get:

admin$ curl http://<ip address>/munki_repo

-bash: ip address: No such file or directory 

Mr. Alan Siu

unread,
Dec 7, 2015, 3:28:06 PM12/7/15
to munki-...@googlegroups.com
I think that would indicate there's something wrong with your Apache server setup (i.e., the munki_repo folder is not where you think it is or the Apache service isn't actually running).

When I visit my repo page, I get this:

Forbidden

You don't have permission to access /munki_repo/ on this server.



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

Mr. Alan Siu

unread,
Dec 7, 2015, 3:31:05 PM12/7/15
to munki-...@googlegroups.com
Are you substituting in your actual IP address for <ip address>?

<ip address> is only a placeholder. It's not exactly what you should type.

It's sort like saying "Write Dear so-and-so" where you put in the actual person's name ("Dear Chloe" or "Dear Jane").

In this case, you need to substitute in the actual IP address (series of four numbers, separated by periods). So if the IP address is 192.168.0.2 then you'd do curl http://192.168.0.2/munki_repo and not curl http://<ip address>/munki_repo

Does that make sense?


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

Amanda Vasquez

unread,
Dec 7, 2015, 3:52:04 PM12/7/15
to munki-...@googlegroups.com
Yes that is what i did. I entered in the correct IP Address which was indicated in the network section of system preferences.

Even after enabling Apache 2  and typing in the url in a browser i am still receiving the same error :

Not Found

The requested URL /munki_repo was not found on this server.


Apache Server at IP ADDRESS Port 80


Also when trying to see if Apache 2 can read and traverse all of the munki repo directories the following error comes up 

nyc-yosemitemini:~ admin$ chmod -R a+rX munki_repo

chmod: munki_repo: No such file or directory


clearly i can see my munki _repo folder in my User/Shared/  folder

and file sharing is enabled in the server.app

Mr. Alan Siu

unread,
Dec 7, 2015, 3:58:28 PM12/7/15
to munki-...@googlegroups.com
Okay. On the Munki server itself, can you do the following?

1. Start up Apache manually:
sudo apachectl start

2. Go to a web browser and go to http://localhost
See what error it gives you, if any.

See what error it gives you, if any.


Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

On Mon, Dec 7, 2015 at 12:52 PM, Amanda Vasquez <avasqu...@gmail.com> wrote:
Yes that is what i did. I entered in the correct IP Address which was indicated in the network section of system preferences.

Even after enabling Apache 2  and typing in the url in a browser i am still receiving the same error :

Not Found

The requested URL /munki_repo was not found on this server.


Apache Server at IP ADDRESS Port 80

--
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.

Amanda Vasquez

unread,
Dec 7, 2015, 4:12:02 PM12/7/15
to munki-discuss
The following happens:
1. Start up Apache manually:
sudo apachectl start

Everything good! 

2. Go to a web browser and go to http://localhost

The browser shows the webpage that says "Welcome to OSX Server" 

Not Found

The requested URL /munki_repo was not found on this server.


Apache Server at ip address Port 80 

Amanda Vasquez

unread,
Dec 7, 2015, 4:15:15 PM12/7/15
to munki-...@googlegroups.com
when entering the curl command in terminal the following happens:


nyc-yosemitemini:~ admin$ curl http://IP ADDRESS/munki_repo

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>404 Not Found</title>

</head><body>

<h1>Not Found</h1>

<p>The requested URL /munki_repo was not found on this server.</p>

<hr>

<address>Apache Server at IP ADDRESS Port 80</address>

</body></html>



How is it that when entering the url that folder cannot be found if it is there?

Gregory Neagle

unread,
Dec 7, 2015, 4:18:38 PM12/7/15
to munki-...@googlegroups.com
Sounds like maybe you are following this: https://github.com/munki/munki/wiki/Demonstration-Setup

sudo ln -s /Users/Shared/munki_repo /Library/WebServer/Documents/

Without that, Apache won’t be serving up your Munki repo as a web directory.

-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.

Amanda Vasquez

unread,
Dec 8, 2015, 5:15:22 PM12/8/15
to munki-discuss

After
entering in the following command in terminal: sudo ln -s /Users/Shared/munki_repo /Library/WebServer/Documents/

 and creating a symlink inside of the /Library/Webserver/Documents/ that pointed to my munki_repo directory i was finally able to access my repository via the web.

Thank you everyone so very much for all of your help. I appreciate it!
Reply all
Reply to author
Forward
0 new messages