Ask Your Question
0

Package[curl] doesn't seem to be in the catalog

asked 2017-09-11 20:49:22 -0500

windkisser gravatar image

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Invalid relationship: Exec[download-oracle-jdbc] { require => Package[curl] }, because Package[curl] doesn't seem to be in the catalog

/opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/indirector/rest.rb:269:in is_http_200?' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:167:infind' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/indirector/indirection.rb:194:in find' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:434:inblock in retrievenewcatalog' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/util.rb:386:in block in thinmark' /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:inrealtime' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/util.rb:385:in thinmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:433:inretrievenewcatalog' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/configurer.rb:78:in retrieve_catalog' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:147:inprepareandretrievecatalog' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/configurer.rb:309:in run_internal' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:221:inblock in run' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/context.rb:65:in override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:241:inoverride' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/configurer.rb:195:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:inblock (4 levels) in run' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/agent/locker.rb:21:in lock' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:45:inblock (3 levels) in run' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/agent.rb:98:in with_client' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:42:inblock (2 levels) in run' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/agent.rb:65:in run_in_fork' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:41:inblock in run' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/application.rb:179:in call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:incontrolledrun' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/agent.rb:39:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:353:inonetime' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/application/agent.rb:331:in run_command' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:inblock in run' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/util.rb:540:in exit_on_fail' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:inrun' /opt/puppetlabs/puppet/lib/ruby/vendorruby/puppet/util/command_line.rb:132:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:inexecute' /opt/puppetlabs/puppet/bin/puppet:5:in `<main>' Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run [root@eft-cer-ipp-bh ~]#

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-14 01:36:41 -0500

stivesso gravatar image

It seems like you have not declare a Package Resource (for curl).You declared a relationship (with require), but you didn't declare the resource you are referring to on that dependency.
Add the following to your code and check again (you might also need to share a bit more of that code so that we understand the context).

package { 'curl':
  ensure => present,
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-09-11 20:49:22 -0500

Seen: 37 times

Last updated: Sep 14