Figured out the error. I made some mistake in foreman.yaml file.
On Thursday, November 10, 2016 at 5:22:25 PM UTC+1, Akash Kaveti wrote:
>
> Hi,
>
> i am facing this issue, when ever I run puppet in agent.
>
> Error: Could not retrieve catalog from remote server: Error 500 on SERVER:
> {"message":"Server Error: Could not find node 'host.mydomain.com'; cannot
> compile","issue_kind":"RUNTIME_ERROR","stacktrace":["/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:336:in
>
> `node_from_request'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:50:in
>
> `find'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:194:in
>
> `find'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:121:in
>
> `do_find'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:48:in
>
> `call'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in
> `override'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:241:in
> `override'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:47:in
>
> `call'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in
>
> `process'","org/jruby/RubyArray.java:1613:in
> `each'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81:in
>
> `process'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:in
>
> `process'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:in
>
> `process'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:60:in
>
> `process'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
>
> `profile'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in
>
> `profile'","/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:58:in
>
> `process'","file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppetserver-lib/puppet/server/master.rb:42:in
>
> `handleRequest'","Puppet$$Server$$Master_1033412677.gen:13:in
> `handleRequest'","request_handler_core.clj:273:in
> `invoke'","jruby_request.clj:46:in `invoke'","jruby_request.clj:31:in
> `invoke'","request_handler_service.clj:34:in
> `handle_request'","request_handler.clj:3:in
> `invoke'","request_handler.clj:3:in `invoke'","core.clj:2493:in
> `invoke'","master_core.clj:428:in `invoke'","ring.clj:21:in
> `invoke'","ring.clj:12:in `invoke'","comidi.clj:249:in
> `invoke'","ring_middleware.clj:284:in `invoke'","core.clj:168:in
> `invoke'","core.clj:211:in `invoke'","core.clj:45:in
> `invoke'","core.clj:343:in `invoke'","core.clj:51:in
> `invoke'","ringutils.clj:86:in `invoke'","legacy_routes_core.clj:114:in
> `invoke'","legacy_routes_core.clj:94:in
> `invoke'","legacy_routes_core.clj:184:in
> `invoke'","legacy_routes_core.clj:151:in `invoke'","ring.clj:21:in
> `invoke'","ring.clj:12:in `invoke'","comidi.clj:249:in
> `invoke'","jetty9_core.clj:424:in
> `invoke'","normalized_uri_helpers.clj:80:in `invoke'"]}
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
>
> my production log, while running puppet agent is,
>
> 2016-11-10T07:15:34 [app] [I] Started POST "/api/hosts/facts" for
> 192.168.119.44 at 2016-11-10 07:15:34 +0100
> 2016-11-10T07:15:34 [app] [I] Processing by Api::V2::HostsController#facts
> as JSON
> 2016-11-10T07:15:34 [app] [I] Parameters: {"facts"=>"[FILTERED]",
> "name"=>"host.mydomain.com", "certname"=>"host.mydomain.com",
> "apiv"=>"v2", :host=>{"name"=>"host.mydomain.com", "certname"=>"
> host.mydomain.com"}}
> 2016-11-10T07:15:34 [app] [I] Import facts for 'host.mydomain.com'
> completed. Added: 0, Updated: 5, Deleted 0 facts
> 2016-11-10T07:15:34 [app] [I] Completed 201 Created in 96ms (Views: 1.6ms
> | ActiveRecord: 45.4ms)
> 2016-11-10T07:15:34 [app] [I] Started GET "/node/
> host.mydomain.com?format=yml" for 192.168.119.44 at 2016-11-10 07:15:34
> +0100
> 2016-11-10T07:15:34 [app] [I] Processing by HostsController#externalNodes
> as YML
> 2016-11-10T07:15:34 [app] [I] Parameters: {"name"=>"host.mydomain.com"}
> 2016-11-10T07:15:34 [app] [I] Rendered text template (0.0ms)
> 2016-11-10T07:15:34 [app] [I] Completed 200 OK in 68ms (Views: 0.2ms |
> ActiveRecord: 4.5ms)
>
> THANKS
>
>
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.