Connecting Client to Server Issue 10.8.5

61 views
Skip to first unread message

Will S

unread,
Sep 17, 2013, 1:17:31 AM9/17/13
to munkise...@googlegroups.com
I created a step-by-step guide from my notes to help save others few headaches.  I think the guide is correct until running Makefile script. 


I've never used rails or ruby until I started tinker with munkiserver.  I setup development munkiserver several months ago and had no issue.  My OSX client was on VMware and Server setup was Ubuntu Vagrant.  This morning I tried setting up production server at my home Office with Mac-mini Server running 10.8.5 - Server 2.2.1 and Client on Mac Pro running 10.8.5.  I'm not able to get the client to connect to server using Makefile Scripts or by entering Manageninstall.plist manually.

* I notice when I use preflight script, it corrupts Manageninstall.plist

* But postflight script still generates  system_profiler_###.plist


* I notice  post by Greg and tweak preflight script to following and ManagedInstalls.plist is no longer corrupt.

#/bin/sh

MAC=`ifconfig en0 | awk '/ether/ {print $2}'`

/usr/bin/defaults write /Library/Preferences/ManagedInstalls ClientIdentfier "${MAC}.plist"


* I added info from Client Pref manually and then run postflight manually which will generate a system_profiler_###.plist.

Any Method I've tried I cannot get CLIENT connected to Server !!!!  

Any help would be appreciated!!! Take a look a my Notes/guide incase issue is in setup.

Thanks in Advance!!!

W


Ricky Chilcott

unread,
Sep 17, 2013, 8:06:06 AM9/17/13
to munkise...@googlegroups.com
Hi W,

This is a good guide.  Thanks!  

A few things:

1) You should be using the latest version of Ruby 1.9.3p448 (not p0), there have been hundreds of patches, speed increases and security fixes.
2) I noticed on the last line that you start the server with `rails s -e production` when you've already setup passenger, apache, etc.  No need, just hit the host at port 80 or whatever you have configured.  To restart the server after production changes, you can do a sudo apachectl restart.

As for your client not connecting, can you confirm that SoftwareRepoURL and ManifestURL are both set to http://your_server_dns_here.com ?


Also, you might get more insight about what is happening with the client by running `sudo /usr/local/munki/managedsoftwareupdate auto -vvv`

Ricky Chilcott



--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkiserver-d...@googlegroups.com.
To post to this group, send email to munkise...@googlegroups.com.
Visit this group at http://groups.google.com/group/munkiserver-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Will S

unread,
Sep 17, 2013, 11:09:59 AM9/17/13
to munkise...@googlegroups.com
Thanks Ricky,

I updated guide, but I still need to test it when i get home later today.  I will let you know how it goes.

Will

Will S

unread,
Sep 17, 2013, 2:06:23 PM9/17/13
to munkise...@googlegroups.com
Having issue with passenger!!!  I tried making edit to httpd's.conf in "/Library/Server/Web/Config/apache2/sites" and "/private/etc/apache"  Neither seems to be working.

When i run $ trigger passenger-install-apache2-module i get error: "message trigger: command not found"

any suggestions?


Riley Shott

unread,
Sep 17, 2013, 2:09:15 PM9/17/13
to munkise...@googlegroups.com
I don't recall using trigger. Have you tried calling passenger-install-apache2-module without it?

`passenger-install-apache2-module`

-Riley

----- Original Message -----
> From: "Will S" <wb...@icloud.com>
> To: munkise...@googlegroups.com
> Sent: Tuesday, 17 September, 2013 11:06:23
> Subject: Re: [munkiserver-dev] Connecting Client to Server Issue 10.8.5
>
>
> Having issue with passenger !!! I tried making edit to httpd's.conf
Message has been deleted

Riley Shott

unread,
Sep 17, 2013, 6:52:53 PM9/17/13
to munkise...@googlegroups.com
It looks like you're trying to use the Web service in Server Admin. In my opinion it's easier _not_ to use this.

I would turn it off the Web service in Server Admin and configure Apache manually. Or in other words, just use the httpd.conf in the following folder:

/etc/apache2

Alternatively, you can try using my munkiserver Puppet module, which should* automatically provision a munkiserver for you. May be best to test it on a VM running Mac OS X Server first.

http://rileyshott.wordpress.com/2013/03/24/mac-munkiserver-puppet-module/

*No guarantees, aim away from face.

-Riley

----- Original Message -----
> From: "Will S" <wb...@icloud.com>
> To: munkise...@googlegroups.com
> Sent: Tuesday, 17 September, 2013 15:00:35
> Subject: Re: [munkiserver-dev] Connecting Client to Server Issue 10.8.5
>
>
> hmm… I guess I miss read this guys post. I'm still not able to get it
> to work. I've tried it ever way I can think of. I tried using
> default, then added alias and creating munkiserver site. Im tweaking
> httpd.conf in /library/server/web/config. I can tell Passenger is
> installed and running...
>
>
>
>
>
> Apache/2.2.24 (Unix) Phusion_Passenger/4.0.17 mod_ssl/2.2.24
> OpenSSL/0.9.8y DAV/2 PHP/5.3.26 mod_wsgi/3.3 Python/2.7.2 Server at
> server……….
Message has been deleted

Will S

unread,
Sep 17, 2013, 10:10:08 PM9/17/13
to munkise...@googlegroups.com
@ Riley, I miss read this guys post. Solved passenger issue!!!!  Edit the /Library/Server/Web/Config/apache2/sites/0000_server.Network-Name_.conf only with MtnLion Server!!!!

When you edit /Library/Server/Web/Config/apache2/sites/virtual_host_global.conf, it reverts back to default.

Here what my  "0000_server.munkiserver.com_.conf" looks like.   And I updated Guide.  I will test InstallESD.dmg bootstrap to munkiserver out tomorrow.

Thanks guys for help.

 
<VirtualHost *:80>
ServerName server.munkiserver.com
DocumentRoot "/usr/local/munkiserver/public"
DirectoryIndex default.html index.html index.php /wiki/
CustomLog "/var/log/apache2/access_log" combinedvhost
ErrorLog "/var/log/apache2/error_log"
<IfModule mod_ssl.c>
SSLEngine Off
SSLCipherSuite "ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
SSLProtocol -ALL +SSLv3 +TLSv1
SSLProxyEngine On
SSLProxyProtocol -ALL +SSLv3 +TLSv1
</IfModule>
<Directory "/usr/local/munkiserver/public">
Order allow,deny
     Allow from all
  </Directory>
</VirtualHost>

LoadModule xsendfile_module   /usr/libexec/apache2/mod_xsendfile.so
RequestHeader Set X-Sendfile-Type X-Sendfile
ProxyPassReverse / http://localhost:8001/
XSendFile on
XSendFilePath /usr/local/munkiserver/packages

LoadModule passenger_module /Users/admin/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/passenger-4.0.17/buildout/apache2/mod_passenger.so
PassengerRoot /Users/admin/.rvm/gems/ruby-1.9.3-p448@munkiserver/gems/passenger-4.0.17
PassengerDefaultRuby /Users/admin/.rvm/wrappers/ruby-1.9.3-p448@munkiserver/ruby

Reply all
Reply to author
Forward
0 new messages