Ask Your Question
0

Failed to find facts from PuppetDB at puppet:8140

asked 2017-09-02 05:11:07 -0600

andrew1054 gravatar image

updated 2017-09-04 07:33:48 -0600

I can't understand why this is failing, given puppet was working before installing puppetdb. Note: I'm using ports 9090 and 9091 for puppetdb as opposed to the default 8080 and 8081 as another application is using ports 8080/8081. Can someone point me in the correct direction:

$ sudo /opt/puppetlabs/puppet/bin/puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 500 on SERVER: Server Error: Could not retrieve facts for domain.com: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/domain.com/facts' on at least 1 of the following 'server_urls': https://domain.com:9091
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=a98e521480c22b1b246dd8027089701f121a989f&version=5&certname=domain.com&command=replace_facts&producer-timestamp=1504346199' on at least 1 of the following 'server_urls': https://domain.com:9091
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Running puppet agent in debug mode:

$/opt/puppetlabs/puppet/bin/puppet agent --debug --test
Debug: Using cached connection for https://domain.com:8140
Debug: Caching connection for https://domain.com:8140
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=f144c5057f316ba2e87dca7213eb3457303aa590&version=5&certname=domain.com&command=replace_facts&producer-timestamp=1504381434' on at least 1 of the following 'server_urls': https://domain.com:9091
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Debug: Dynamically-bound server lookup failed, falling back to report_server setting
Debug: Dynamically-bound port lookup failed; falling back to report_port setting
Debug: Failed to load library 'msgpack' for feature 'msgpack': cannot load such file -- msgpack
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: report supports formats: json pson yaml
Debug: Failed to load library 'msgpack' for feature 'msgpack': cannot load such file -- msgpack
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: report supports formats: json pson yaml
Debug: Failed to load library 'msgpack' for feature 'msgpack': cannot load such file -- msgpack
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: report supports formats: json pson yaml
Debug: Using cached connection for https://domain.com:8140
Debug: Caching connection for https://domain.com:8140
Debug: Closing connection for https://domain.com:8140

and the error as reported in puppetserver.log:

2017-09-04 13:26:49,532 ERROR [qtp1991876679-2506] [puppetserver] Puppet Report processor failed: Failed to execute '/pdb/cmd/v1?checksum=b6dbc5034776f7c735cfdfc7d33fadd3f2ae3921&version=8&certname=hp-650.com&command=store_report&producer-timestamp=1504528009' on at least 1 of the following 'server_urls': https://example.com:9091
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/puppetdb/command.rb:98:in `submit'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/puppetdb.rb:62:in `submit_command'
/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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-04 03:20:58 -0600

greynolds gravatar image

Are you running SELinux?

edit flag offensive delete link more

Comments

Running Ubuntu Server 16.04

andrew1054 gravatar imageandrew1054 ( 2017-09-04 04:07:35 -0600 )edit

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: 2017-09-02 05:11:07 -0600

Seen: 168 times

Last updated: Sep 04