Ask Your Question
0

Could not retrieve facts 503 Service Unavailable error

asked 2014-04-24 10:08:41 -0500

Could not retrieve facts 503 Service Unavailable

Thoughts?

I've seen this thread and the remedies suggested there did not work. Specifically, I re-ran the puppetdb-ssl-setup -f.

I'm on PE 3.1.0 for agent and master. Java version "1.7.0_19-icedtea", OpenJDK Runtime Environment (PE Java 1.7.0.19), OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

I can get the node facts if I run the following using curl with the insecure setting :

curl -X GET -insecure -L http://locqca3pupmas01:8080/v2/nodes/locqca3maxaohee/facts

That indicates that the DB is available, and that Jetty may be the problem.

If I run :

curl -X GET -L https://locqca3pupmas01:8081/v2/nodes/locqca3maxaohee/facts

I get :

curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

If I run puppet agent -t.

I get:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Could not retrieve facts for locqca3wla-ujqd: Failed to find facts from PuppetDB at locqca3pupmas01:8081: 503 "Service Unavailable"
Info: Retrieving plugin
get_orainst_loc: /etc/oraInst.loc
get_orainst_products with path: NotFound
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/postgres_default_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/gemhome.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/tiaa_facts.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppetdb_server_status.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/orawls.rb
get_orainst_loc: /etc/oraInst.loc
get_orainst_products with path: NotFound
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/windows.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command ...
(more)
edit retag flag offensive close merge delete

Comments

Did you verify that the pe-puppetdb service (command ==> service pe-puppetdb status) is running?

vishwanathj gravatar imagevishwanathj ( 2014-04-24 11:37:46 -0500 )edit

I have verified the service is running. I was able to connect using psql and the curl command I found on this page http://docs.puppetlabs.com/puppetdb/1.6/api/query/curl.html

skibum55 gravatar imageskibum55 ( 2014-04-25 11:29:07 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-25 11:30:59 -0500

It turns out it was a proxy redirect problem. I removed my environment proxy settings, and the ones in puppet.conf and it was working again. The 503 came from the proxy. The Puppet Labs team let me know that no 503 error exists in PuppetDB.

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: 2014-04-24 10:08:41 -0500

Seen: 1,163 times

Last updated: Apr 25 '14