Hello Ramin. Thanks for your reply. I didn't install rvm, I'm only using 
system ruby.  Regarding the use of gems vs puppet repositories, well, I 
installed Puppet from the official apt repos but I wasn't aware that 
passenger can be installed from there as well. If that's the case, why is 
the documentation <http://docs.puppetlabs.com/guides/passenger.html>so out 
of date? 

I removed all my gems, installed puppetmaster-passenger & ruby-rack from 
apt, and get this output (Grrrr):

Setting up ruby-rack (1.3.5-1) ...
Setting up librack-ruby (1.3.5-1) ...
Setting up libapache2-mod-passenger (2.2.11debian-2) ...
Setting up puppetmaster-passenger (3.1.1-1puppetlabs1) ...
Module ssl already enabled
Module headers already enabled
Enabling site puppetmaster.
To activate the new configuration, you need to run:
  service apache2 reload
Syntax error on line 3 of /etc/apache2/sites-enabled/puppetmaster:
Invalid command 'PassengerHighPerformance', perhaps misspelled or defined 
by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!
invoke-rc.d: initscript apache2, action "restart" failed.
dpkg: error processing puppetmaster-passenger (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 puppetmaster-passenger

*
What is the recommended way to configure Puppet 3.1.1 with Apache!!?*

On Monday, March 25, 2013 11:05:14 PM UTC-4, Ramin K wrote:
>
> On 3/25/2013 7:04 PM, thinkwell wrote: 
> > My puppet master server got torched so I'm rebuilding - ubuntu 12.04.2 
> LTS. 
> > 
> > After fiddling / tweaking / reading docs 
> > <http://docs.puppetlabs.com/guides/passenger.html> for hours now and I 
> > am reduced to hair-pulling frustration. 
> > 
> > I'm endeavoring to install 3.1.1 (3.0.2 on the old server) and I'm 
> > getting "Ruby (Rack) application could not be started 
> > <http://thinkwelldesigns.com/errors2.html>" errors. I updated my 
> > config.ru <http://thinkwelldesigns.com/config.txt> file with the 3.1 
> > source 
> > <
> https://github.com/puppetlabs/puppet/blob/master/ext/rack/files/config.ru>. 
>
> > 
> > 1. I'm not getting errors in the /var/log/apache2/errors.log as the 
> > error message hints I should. 
> > 2. I tried my certs from my backup. 
> > 3. I tried recreating server certs, but no change. 
> > 
> > I don't manage my puppet master with puppet, so I came on this discovery 
> > very late. For whatever it's worth. 
> > 
> > 1. Installed puppet agent on the puppet master. 
> > 2. Ran puppet agent -t to generate an agent certificate 
> > 3. Get this error: 
> > 
> > Error: Could not request certificate: Error 500 on SERVER: <!DOCTYPE 
> > HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
> > <html><head> 
> > <title>500 Internal Server Error</title> 
> > </head><body> 
> > <h1>Internal Server Error</h1> 
> > <p>The server encountered an internal error or 
> > misconfiguration and was unable to complete 
> > your request.</p> 
> > <p>Please contact the server administrator, 
> >   [no address given] and inform them of the time the error occurred, 
> > and anything you might have done that may have 
> > caused the error.</p> 
> > <p>More information about this error may be available 
> > in the server error log.</p> 
> > <hr> 
> > <address>Apache/2.2.22 (Ubuntu) Server at puppet Port 8140</address> 
> > </body></html> 
> > 
> > 
> > here is my gem list which shows rack is installed. 
> > *** LOCAL GEMS *** 
> > 
> > activemodel (3.2.13) 
> > activerecord (3.2.13) 
> > activesupport (3.2.13) 
> > arel (3.0.2) 
> > builder (3.0.4) 
> > daemon_controller (1.1.2) 
> > fastthread (1.0.7) 
> > i18n (0.6.1) 
> > multi_json (1.7.2) 
> > passenger (3.0.19) 
> > rack (1.5.2) 
> > rake (10.0.4) 
> > tzinfo (0.3.37) 
> > 
> > Many thanks for your assistance. I'm about maxed out. :-( 
>
> Your gem listing makes me thing you've installed Ruby inside rvm, is 
> that the case? If so, you'll need to install Puppet within the same Ruby 
> as the one the passenger.so resides in and is configured in 
> /etc/apache2/mod-enabled/passenger.{conf,load} 
>
> fwiw, you may find it simpler to use the distro packages though I would 
> pull in the official Passenger 3.x repo from apt.brightbox.net as well 
> as apt.puppetlabs.com 
>
> Ramin 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to