vioilly
2012-Dec-11 16:15 UTC
[Puppet Users] "GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-"
Hi, I have puppet 3.0.1 installed with passenger and the clients are unables to request a certificate. I get a httpd error. 10.1.1.9 - - [11/Dec/2012:16:09:44 +0000] "GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-" When I run puppet master without passenger, I am able to request and sign certificates. I see this in http error logs [ pid=1682 thr=18899200 file=utils.rb:176 time=2012-12-11 16:14:41.230 ]: *** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (cannot load such file -- puppet/util/command_line) (process 1682, thread #<Thread:0x0000000240c200>): from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' from config.ru:32:in `block in <main>'' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'' from /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'' from config.ru:1:in `new'' from config.ru:1:in `<main>'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:225:in `eval'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:225:in `load_rack_app'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:157:in `block in initialize_server'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/utils.rb:563:in `report_app_init_status'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:154:in `initialize_server'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:204:in `start_synchronously'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:180:in `start'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'' from <internal:prelude>:10:in `synchronize'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'' from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/helper-scripts/passenger-spawn-server:99:in `<main>'' Any ideas what is going on? Cheers, Oli -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/6uBtIsgwwPcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
vioilly
2012-Dec-12 10:22 UTC
[Puppet Users] Re: "GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-"
I reinstalled everything again and manage to get this working. Not sure what the problem was but this is how I install puppet master with passenger: install puppet master with passenger 1 - install centos 6.3 minimal 2 - configure IP address and hostname - do not set a fqdn hostname. vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" BOOTPROTO="static" HWADDR="<mac>" ONBOOT="yes" TYPE="Ethernet" UUID="<uuid>" IPADDR="10.1.1.10" NETMASK="255.255.255.0" GATEWAY="10.1.1.1" vi /etc/resolv.conf nameserver 10.1.1.100 domain domain.net search domain.net 3 - run yum update -y 4 - install vmware tools rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub cat <<EOT > /etc/yum.repos.d/vmware-tools.repo [vmware-tools] name=VMware Tools #baseurl=http://packages.vmware.com/tools/esx/5.0u1/rhel5/\$basearch baseurl=http://packages.vmware.com/tools/esx/5.0u1/rhel6/\$basearch enabled=1 gpgcheck=1 EOT yum -y install vmware-tools-esx-nox 5 - set iptables (modify where applicable) iptables -I INPUT 5 -s 10.1.1.0/24 -m tcp -p tcp --dport 80 -j ACCEPT iptables -I INPUT 6 -s 10.1.1.0/24 -m tcp -p tcp --dport 8140 -j ACCEPT service iptables save iptables -L 6 - Install EPEL and puppet repos rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-6.noarch.rpm 7 - install required packages yum -y install httpd httpd-devel ruby-devel rubygems mod_ssl make gcc gcc-c++ curl-devel openssl-devel zlib-devel make wget 8 - install ruby 1.9.3 cd /opt wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz tar xzvf ruby-1.9.3-p0.tar.gz cd ruby-1.9.3-p0 ./configure --enable-shared --disable-pthread make make install 9 - install puppet master and puppet agent yum install puppet-server puppet -y 10 - create a puppet ca cert puppet master --no-daemonize --verbose (note - ctrl+c to break out of puppet master deamon 11 - install rack using gem gem install rack 12 - install passenger using gem gem install passenger 13 - Set up passenger passenger-install-apache2-module 14 - Config rack.conf cp /usr/share/puppet/ext/rack/files/apache2.conf /etc/httpd/conf.d/rack.conf update the rack.conf with the puppet 3.0.1 SSL directory path (var/llis/puppet/ssl) and change hostname for certs. 15 - create rack directories mkdir -p /etc/puppet/rack/public/ 16 - copy config.ru rack file to rack web directory cp /usr/share/puppet/ext/rack/files/config.ru /etc/puppet/rack/ 17 - change ownership of config.ru rack file to puppet chown puppet:puppet /etc/puppet/rack/config.ru 18 - set httpd to start on boot and puppetmaster to not start chkconfig httpd on chkconfig puppetmaster off 19 - set certname in puppet master puppet.conf vi /etc/puppet/puppet.conf [master] certname = puppet-server1.tcl-oob.net 20 Turn of selinux setenforce 0 21 start apache service httpd start -- sign certificate on from puppet client install puppet client 1 - rpm -ivh http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-6.noarch.rpm 2 - yum install puppet 3 - puppet agent --test 4 - puppet agent --waitforcert 30 --server puppet-server1.tcl-oob.net sign cert on puppet server 1 - puppet cert --list 2 - puppet cert sign <puppet client> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/FRwz6M4xZQEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reasonably Related Threads
- Problem: Puppet under Passenger.
- active admin undefined method `' for nil:NilClass
- dashboard 1.1.1 with filebucket doesn't show contents of the new file
- Facing probme with image upload rails 2.3.4, ruby 1.9.2 with papaerclip
- Errno::ENETUNREACH (Network is unreachable - connect(2)):