Ask Your Question
0

Error 400 on SERVER: Failed to find puppet.company.domain.com via exec: Execution of '/etc/puppet/node.rb

asked 2016-01-19 10:50:29 -0500

Anahaym gravatar image

Hi, i installed puppet 3.7.2 on Debian 8.2 x64. then i installed foreman-installer 1.10. Now i'm testing agent and get an error:

puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find puppet.company.domain.com via exec: Execution of '/etc/puppet/node.rb puppet.company.domain.com' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node puppet.company.domain.com: Failed to find puppet.company.domain.com via exec: Execution of '/etc/puppet/node.rb puppet.company.domain.com' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

/var/log/foreman/production.log show me:

2016-01-19T16:19:46 [app] [I] Started GET "/node/puppet.company.domain.com?format=yml" for 127.0.0.1 at 2016-01-19 16:19:46 +0100
2016-01-19T16:19:46 [app] [I] Processing by HostsController#externalNodes as YML
2016-01-19T16:19:46 [app] [I]   Parameters: {"name"=>"puppet.company.domain.com"}
2016-01-19T16:19:46 [app] [W] No smart proxy server found on ["puppet.company.domain.com"] and is not in trusted_puppetmaster_hosts
2016-01-19T16:19:46 [app] [I] Redirected to https://puppet.company.domain.com/users/login
2016-01-19T16:19:46 [app] [I] Filter chain halted as #<Proc:0x00000008062270@/usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb:14> rendered or redirected
2016-01-19T16:19:46 [app] [I] Completed 403 Forbidden in 10.0ms (ActiveRecord: 1.0ms)
2016-01-19T16:19:47 [app] [I] Started POST "/api/hosts/facts" for 127.0.0.1 at 2016-01-19 16:19:47 +0100
2016-01-19T16:19:47 [app] [I] Processing by Api::V2::HostsController#facts as JSON
2016-01-19T16:19:47 [app] [I]   Parameters: {"facts"=>"[FILTERED]", "name"=>"puppet.company.domain.com", "certname"=>"puppet.company.domain.com", "apiv"=>"v2", :host=>{"name"=>"puppet.company.domain.com", "certname"=>"puppet.company.domain.com"}}
2016-01-19T16:19:47 [app] [W] No smart proxy server found on ["puppet.company.domain.com"] and is not in trusted_puppetmaster_hosts
2016-01-19T16:19:47 [app] [I]   Rendered api/v2/errors/access_denied.json.rabl within api/v2/layouts/error_layout (0.7ms)
2016-01-19T16:19:47 [app] [I] Filter chain halted as #<Proc:0x00000007fd9c40@/usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb:14> rendered or redirected
2016-01-19T16:19:47 [app] [I] Completed 403 Forbidden in 10.6ms (Views: 2.1ms | ActiveRecord: 1.0ms)
2016-01-19T16:19:48 [app] [I] Started GET "/node/puppet.company.domain.com?format=yml" for 127.0.0.1 at 2016-01-19 16:19:48 +0100
2016-01-19T16:19:48 [app] [I] Processing by HostsController#externalNodes as YML
2016-01-19T16:19:48 [app] [I]   Parameters: {"name"=>"puppet.company.domain.com"}
2016-01-19T16:19:48 [app] [W] No smart proxy server found on ["puppet.company.domain.com"] and is not in trusted_puppetmaster_hosts
2016-01-19T16:19:48 [app] [I] Redirected to https://puppet.company.domain.com/users/login
2016-01-19T16:19:48 [app] [I] Filter chain halted as #<Proc:0x00000008062270@/usr/share/foreman/app ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-20 03:49:26 -0500

Anahaym gravatar image

updated 2016-01-20 03:50:42 -0500

during installation foreman i forgot add plugin repository:

echo "deb http://deb.theforeman.org/ plugins 1.10" >> /etc/apt/sources.list.d/foreman.list

after correct reinstalling all works good:

puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for puppet.domain.company.com
Info: Applying configuration version '1453283127'
Notice: Finished catalog run in 0.32 seconds

no errors with service puppet status. service puppetmaster status show me that it is disabled.

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

1 follower

Stats

Asked: 2016-01-19 10:50:29 -0500

Seen: 1,493 times

Last updated: Jan 20 '16