Skip to content

Instantly share code, notes, and snippets.

@kbarber kbarber/agent Secret
Last active Aug 29, 2015

Embed
What would you like to do?
# cat ~/.puppetlabs/etc/code/environments/production/manifests/site.pp
package { foo:
ensure => installed,
alias=>bar,
}
service{ baz:
ensure => running,
require => Package[bar]
}
# puppet agent -t --noop
Info: Retrieving pluginfacts
Error: /File[/Users/ken/.puppetlabs/opt/puppet/cache/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///pluginfacts
Info: Retrieving plugin
Error: /File[/Users/ken/.puppetlabs/opt/puppet/cache/lib]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///plugins
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid relationship: Service[baz] { require => Package[bar] }, because Package[bar] doesn't seem to be in the catalog
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
#
nfo: Caching catalog for kb.local
Error: Invalid relationship: Service[baz] { require => Package[bar] }, because Package[bar] doesn't seem to be in the catalog
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:326:in `block (5 levels) in synthesize_edges'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:281:in `each'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:281:in `block (4 levels) in synthesize_edges'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:279:in `each'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:279:in `block (3 levels) in synthesize_edges'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:262:in `each'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:262:in `block (2 levels) in synthesize_edges'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler.rb:51:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/util/puppetdb.rb:89:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:260:in `block in synthesize_edges'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler.rb:51:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/util/puppetdb.rb:89:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:248:in `synthesize_edges'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:48:in `block in munge_catalog'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler.rb:51:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/util/puppetdb.rb:89:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:36:in `munge_catalog'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:12:in `block in save'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler.rb:51:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/util/puppetdb.rb:89:in `profile'
/Users/ken/Development/puppetdb/puppet/lib/puppet/indirector/catalog/puppetdb.rb:11:in `save'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/indirector/store_configs.rb:24:in `save'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/indirector/indirection.rb:199:in `find'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/api/indirected_routes.rb:134:in `do_find'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/api/indirected_routes.rb:48:in `block in call'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/context.rb:64:in `override'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet.rb:223:in `override'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/api/indirected_routes.rb:47:in `call'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/route.rb:82:in `block in process'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/route.rb:81:in `each'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/route.rb:81:in `process'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/route.rb:87:in `process'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/route.rb:87:in `process'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/handler.rb:60:in `block in process'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/util/profiler.rb:51:in `profile'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/handler.rb:58:in `process'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/webrick/rest.rb:49:in `block in service'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/webrick/rest.rb:48:in `synchronize'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/webrick/rest.rb:48:in `service'
/Users/ken/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/ken/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/ken/.rvm/gems/ruby-2.0.0-p643@puppetdb/gems/puppet-4.1.0/lib/puppet/network/http/webrick.rb:33:in `block (2 levels) in listen'
/Users/ken/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/server.rb:295:in `call'
/Users/ken/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Debug: Routes Registered:
Debug: Route /^\/puppet\//
Debug: Route /^\/puppet-ca\//
Debug: Route /.*/
Debug: Evaluating match for Route /^\/puppet\//
Debug: Evaluating match for Route /v3/
Debug: Evaluating match for Route /^\/environments$/
Debug: Did not match path ("/report/kb.local")
Debug: Evaluating match for Route /.*/
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (cache ttl: 0)
Debug: Received report to process from kb.local
Debug: Processing report from kb.local with processor Puppet::Reports::Store
Debug: Processing report from kb.local with processor Puppet::Reports::Puppetdb
Debug: Creating new connection for https://puppet:8081
Info: 'store report' command for kb.local submitted to PuppetDB with UUID c6a255f4-8cab-4c90-9378-bc9dd94d9ae8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.