Failed when searching for node

482 views
Skip to first unread message

Jason Hatman

unread,
May 2, 2014, 12:17:01 PM5/2/14
to puppet...@googlegroups.com
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

...



Jason Hatman

unread,
May 2, 2014, 5:13:04 PM5/2/14
to puppet...@googlegroups.com
My error log shows something else.

[Thu May 01 12:54:58 2014] [error] [client 10.3.32.16] File does not exist: /usr/share/puppet-dashboard/public/favicon.ico
[Thu May 01 12:55:04 2014] [error] [client 10.3.32.16] Directory index forbidden by Options directive: /usr/share/puppet-dashboard/public/
[Fri May 02 16:08:34 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/puppet-dashboard/public/nodes
[Fri May 02 16:08:40 2014] [error] [client 127.0.0.1] File does not exist: /usr/share/puppet-dashboard/public/nodes
[Fri May 02 16:08:40 2014] [error] [client 10.2.33.127] File does not exist: /usr/share/puppet-dashboard/public/reports

Jason Hatman

unread,
May 3, 2014, 5:04:47 PM5/3/14
to puppet...@googlegroups.com
For this setup I used the puppetmaster-passenger install. Then I installed dashboard using passenger. Nodes fail to talk to dashboard using passenger.

I started over and used the puppetmaster install. I then installed passenger manually. Then when I installed dashboard and configured it to use passenger as well, everything worked.

There is probably an issue with the puppetmaster-passenger package and my Ubuntu server setting or something. I don't have the know how to fix it so using the other package works for me.

liu.cy

unread,
May 4, 2014, 9:23:15 AM5/4/14
to puppet...@googlegroups.com
first, you configured enc to get node classes from dashboard.
after configuring apache to serve dashboard, enc script can't get node classes successfully, so puppet agent failed.

the command enc get node classes from dashboard is "/usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 /usr/share/puppet-dashboard/bin/external_node munkitest1ml.local', you can just run it in terminal, then can see what's wrong with it.

then, your pasted apache configuration shows passenger_modules section is commented, is it configured in other place? what's dashboard's status, can you open it?

Jason Hatman

unread,
May 4, 2014, 12:54:21 PM5/4/14
to puppet...@googlegroups.com
Dashboard opens fine. I have the module line commented because puppetmaster also uses passenger and it's already loaded. I'll try the enc line in terminal when I get a chance. 

Sent from Mailbox for iPhone

Jason Hatman
270-790-1139


--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/EC4ln8GzBRQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fd64a946-3022-43de-81e2-fd3707b22a7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages