Douglas Garstang
2010-Aug-20 21:18 UTC
[Puppet Users] Debugging errors with external nodes
How do I debug errors with external nodes? When my client connects, the following appears on the puppetmaster when running in debug mode. It''s not feasible to always be running the pupeptmaster in debug mode. debug: importing ''/etc/puppet/modules/yum/manifests/client.pp'' in environment production info: Automatically imported yum::client from yum/client into production /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:217:in `evaluate_ast_node'' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:102:in `compile'' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `compile'' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:175:in `benchmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:174:in `benchmark'' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile'' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'' /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:101:in `do_find'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `send'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `process'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick/rest.rb:23:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in `listen'' /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `listen'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `initialize'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `new'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `listen'' /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'' /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `listen'' /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'' /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'' /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:125:in `start'' /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in `main'' /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in `run_command'' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'' /usr/sbin/puppetmasterd:4 err: Could not find default node or by name with ''app01.pax.livegamer.com, app01.pax.livegamer, app01.pax, app01'' on node app01.pax.livegamer.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
Christopher Johnston
2010-Aug-20 23:09 UTC
Re: [Puppet Users] Debugging errors with external nodes
Do you have a defaut node in nodes.pp? Sent from my iPhone On Aug 20, 2010, at 5:18 PM, Douglas Garstang <doug.garstang@gmail.com> wrote:> How do I debug errors with external nodes? When my client connects, > the following appears on the puppetmaster when running in debug mode. > It''s not feasible to always be running the pupeptmaster in debug mode. > > debug: importing ''/etc/puppet/modules/yum/manifests/client.pp'' in > environment production > info: Automatically imported yum::client from yum/client into production > /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:217:in `evaluate_ast_node'' > /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:102:in `compile'' > /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `compile'' > /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in > `compile'' > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:175:in `benchmark'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:174:in `benchmark'' > /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in > `compile'' > /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'' > /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'' > /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:101:in `do_find'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `send'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `process'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick/rest.rb:23:in `service'' > /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in `listen'' > /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'' > /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'' > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'' > /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `listen'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `initialize'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `new'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `listen'' > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `listen'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'' > /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'' > /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:125:in `start'' > /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in `main'' > /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in `run_command'' > /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'' > /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'' > /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'' > /usr/sbin/puppetmasterd:4 > err: Could not find default node or by name with > ''app01.pax.livegamer.com, app01.pax.livegamer, app01.pax, app01'' on > node app01.pax.livegamer.com > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > 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. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
Douglas Garstang
2010-Aug-21 00:06 UTC
Re: [Puppet Users] Debugging errors with external nodes
On Fri, Aug 20, 2010 at 4:09 PM, Christopher Johnston <chjohnst@gmail.com> wrote:> Do you have a defaut node in nodes.pp? > > Sent from my iPhone > > On Aug 20, 2010, at 5:18 PM, Douglas Garstang <doug.garstang@gmail.com> wrote: > >> How do I debug errors with external nodes? When my client connects, >> the following appears on the puppetmaster when running in debug mode. >> It''s not feasible to always be running the pupeptmaster in debug mode. >> >> debug: importing ''/etc/puppet/modules/yum/manifests/client.pp'' in >> environment production >> info: Automatically imported yum::client from yum/client into production >> /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:217:in `evaluate_ast_node'' >> /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:102:in `compile'' >> /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `compile'' >> /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in >> `compile'' >> /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:175:in `benchmark'' >> /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' >> /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' >> /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:174:in `benchmark'' >> /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in >> `compile'' >> /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'' >> /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'' >> /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:101:in `do_find'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `send'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `process'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick/rest.rb:23:in `service'' >> /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' >> /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in `listen'' >> /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'' >> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' >> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'' >> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' >> /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'' >> /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'' >> /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'' >> /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'' >> /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `listen'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `initialize'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `new'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `listen'' >> /usr/lib/ruby/1.8/thread.rb:135:in `synchronize'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `listen'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'' >> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'' >> /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:125:in `start'' >> /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in `main'' >> /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in `run_command'' >> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'' >> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'' >> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'' >> /usr/sbin/puppetmasterd:4 >> err: Could not find default node or by name with >> ''app01.pax.livegamer.com, app01.pax.livegamer, app01.pax, app01'' on >> node app01.pax.livegamer.com >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> 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. >> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > 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. > >When I create a default node, the client logs: Aug 21 00:04:09 app01 puppet-agent[5975]: Starting Puppet client version 2.6.0 Aug 21 00:04:10 app01 puppet-agent[5975]: Finished catalog run in 0.01 seconds .... which doesn''t really help. Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
On Aug 20, 2010, at 5:06 PM, Douglas Garstang <doug.garstang@gmail.com> wrote:> > When I create a default node, the client logs: > > Aug 21 00:04:09 app01 puppet-agent[5975]: Starting Puppet client version 2.6.0 > Aug 21 00:04:10 app01 puppet-agent[5975]: Finished catalog run in 0.01 seconds > > .... which doesn''t really help. > > Doug.Please copy and paste your default node stanza. -Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
Douglas Garstang
2010-Aug-21 22:59 UTC
Re: [Puppet Users] Debugging errors with external nodes
My site.pp: # /etc/puppet/manifests/site.pp import "definitions/*.pp" import "modules/*.pp" import "nodes/pax/*.pp" #import "nodes/den/*.pp" # The filebucket option allows for file backups to the server filebucket { main: server => ''puppet'' } # Set global defaults - including backing up all files to the main filebucket and adds a global path File { backup => main } Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } Package { provider => yum, require => $operatingsystem ? { default => Class[''yum::client''] } } node default { } Doug. On Fri, Aug 20, 2010 at 7:17 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Aug 20, 2010, at 5:06 PM, Douglas Garstang <doug.garstang@gmail.com> wrote: >> >> When I create a default node, the client logs: >> >> Aug 21 00:04:09 app01 puppet-agent[5975]: Starting Puppet client version 2.6.0 >> Aug 21 00:04:10 app01 puppet-agent[5975]: Finished catalog run in 0.01 seconds >> >> .... which doesn''t really help. >> >> Doug. > > Please copy and paste your default node stanza. > > -Jeff > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > 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. > >-- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garstang@gmail.com Cell: +1-805-340-5627 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
On Sat, Aug 21, 2010 at 3:59 PM, Douglas Garstang <doug.garstang@gmail.com> wrote:> My site.pp: > > node default { > }Your empty node classification is entirely consistent with the terse agent output you pasted. On Fri, Aug 20, 2010 at 5:06 PM, Douglas Garstang <doug.garstang@gmail.com> wrote:> Aug 21 00:04:09 app01 puppet-agent[5975]: Starting Puppet client version 2.6.0 > Aug 21 00:04:10 app01 puppet-agent[5975]: Finished catalog run in 0.01 seconds-Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
Douglas Garstang
2010-Aug-22 05:08 UTC
Re: [Puppet Users] Debugging errors with external nodes
On Sat, Aug 21, 2010 at 4:19 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Sat, Aug 21, 2010 at 3:59 PM, Douglas Garstang > <doug.garstang@gmail.com> wrote: >> My site.pp: >> >> node default { >> } > > Your empty node classification is entirely consistent with the terse > agent output you pasted.That''s not what is happening. It is finding the app01 node, and then webrick barfs and dumps a backtrace. The puppetmaster then complains it can''t find a catalog for app01, and the client ends up doing nothing. Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.
Seemingly Similar Threads
- First Foray into Parameterized Classes.... not so good
- assistance needed - err: Could not retrieve catalog from remote server: execution expired
- Could not request certificate: Neither PUB key nor PRIV key
- header too long (OpenSSL::X509::CRLError) ?
- Foreman barfs on startup.