[Puppet Users] Failed when searching for node

Jason Hatman
Fri, 02 May 2014 16:17:01 -0000

I've configured a new puppetmaster server.  I've installed Dashboard.
 Everything works fine using webrick. As soon as I start using apache2 to
serve dashboard, the nodes stop working. I can't quite pin down where the
problem is.

ERROR MESSAGE

Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed when searching for node munkitest1ml.local: Failed to find
munkitest1ml.local via exec: Execution of '/usr/bin/env
PUPPET_DASHBOARD_URL=http://localhost:3000
/usr/share/puppet-dashboard/bin/external_node munkitest1ml.local' returned
1:

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

PUPPET MASTER PUPPET.CONF

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
certname=pmastertest.orchard.fruit.com
dns_alt_names=pmastertest.orchard.fruit.com,pmastertest
modulepath=/etc/puppet/modules
server=pmastertest.orchard.fruit.com
user=puppet
group=puppet
runinterval=1800
splaylimit=1800
splay=true

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
ca_name='Puppet CA: pmastertest.orchard.fruit.com'
reports=store,http
reporturl=http://pmastertest.orchard.fruit.com:3000/reports/upload
node_terminus = exec
external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000
/usr/share/puppet-dashboard/bin/external_node

PUPPET-DASHBOARD VHOST FILE

# UPDATE THESE PATHS TO SUIT YOUR ENVIRONMENT
#LoadModule passenger_module
/var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
#PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.11
#PassengerRuby /usr/bin/ruby

PassengerHighPerformance on
PassengerMaxPoolSize 12
PassengerPoolIdleTime 1500
# PassengerMaxRequests 1000
PassengerStatThrottleRate 120
#RailsAutoDetect On

Listen 3000
<VirtualHost *:3000>
RailsBaseURI /
ServerName pmastertest.orchard.fruit.com
DocumentRoot /usr/share/puppet-dashboard/public/
<Directory /usr/share/puppet-dashboard/public/>
Options None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/pmastertest.orchard.fruit.com_error.log
LogLevel warn
CustomLog /var/log/apache2/pmastertest.orchard.fruit.com_access.log
combined
ServerSignature On

...



--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/db9637d9-bf64-489a-90de-a3904fa14e19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.