David Gordon
2013-Apr-20 17:15 UTC
[Puppet Users] PuppetDB / inventory service configuration problem
Hi, I''ve just been configuring my new Puppet 3.1.1 / Dashboard setup with Passenger to use PuppetDB for the inventory service. I configured it via the puppetdb forge module, and it all seems to be configured correctly as far as the docs describe. When I look at a node in the dashboard, under the inventory section, I just see: Could not retrieve facts from inventory service: 404 "Could not find facts myhost.domain.com " I''ve quoted the log excerpts from puppetdb.log and masterhttp.log below. It sounds ssl-related, or that it''s using http instead of https - but don''t really know how to work out what''s wrong. Anyone got any pointers for trying to debug this? Thanks, Dave ------- /var/log/puppetdb/puppetdb log: 2013-04-20 18:11:32,909 WARN [qtp1655388819-40] [io.nio] javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? 2013-04-20 18:11:55,089 WARN [qtp1655388819-39] [http.server] Use of unversioned APIs is deprecated; please use /v1/metrics/mbean/java.lang:type=Memory 2013-04-20 18:35:43,518 INFO [command-proc-45] [puppetdb.command] [db173bb5-a2ea-486e-8dd2-46abf737f975] [replace facts] puppetmaster.domain.com 2013-04-20 18:35:48,999 INFO [command-proc-45] [puppetdb.command] [b8cc3c17-7812-45f1-b833-452ff7bf9cf5] [replace catalog] puppetmaster.domain.com 2013-04-20 18:35:53,944 WARN [qtp1655388819-39] [http.server] Use of unversioned APIs is deprecated; please use /v1/metrics/mbean/java.lang:type=Memory /var/log/puppet/masterhttp.log [2013-04-20 18:54:52] puppetmaster.domain.com - - [20/Apr/2013:18:54:51 MEST] "GET /production/facts/myhost.domain.com? HTTP/1.1" 404 51 [2013-04-20 18:54:52] - -> /production/facts/myhost.domain.com? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ken Barber
2013-Apr-22 14:26 UTC
Re: [Puppet Users] PuppetDB / inventory service configuration problem
Lets take a look at the following files on your puppetmaster: /etc/puppet/puppet.conf /etc/puppet/puppetdb.conf /etc/puppet/routes.yaml /etc/puppet/auth.conf On the dashboard: /usr/share/puppet-dashboard/config/settings.yml (at least thats the normal path for our package on RHEL 6) And on your puppetdb server show me the contents of: /etc/puppetdb/conf.d/jetty.ini You can probably paste this into gist or pastie. Also you if you can provide the version of puppetdb & puppetdb-terminus that might be useful. Usually I would recommend running version 1.2.0 of both puppetdb & puppetdb-terminus and its important to try and keep the version in-sync for both packages. As far as your log: 2013-04-20 18:11:32,909 WARN [qtp1655388819-40] [io.nio] javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? Does this occur at the same time as when you click the link inventory services link on Puppet Dashboard? ken. On Sat, Apr 20, 2013 at 6:15 PM, David Gordon <dcgordon911@gmail.com> wrote:> Hi, > > I''ve just been configuring my new Puppet 3.1.1 / Dashboard setup with > Passenger to use PuppetDB for the inventory service. I configured it via > the puppetdb forge module, and it all seems to be configured correctly as > far as the docs describe. > > When I look at a node in the dashboard, under the inventory section, I just > see: > > Could not retrieve facts from inventory service: 404 "Could not find facts > myhost.domain.com " > > > I''ve quoted the log excerpts from puppetdb.log and masterhttp.log below. It > sounds ssl-related, or that it''s using http instead of https - but don''t > really know how to work out what''s wrong. Anyone got any pointers for trying > to debug this? > > Thanks, > Dave > > ------- > > /var/log/puppetdb/puppetdb log: > > 2013-04-20 18:11:32,909 WARN [qtp1655388819-40] [io.nio] > javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? > > 2013-04-20 18:11:55,089 WARN [qtp1655388819-39] [http.server] Use of > unversioned APIs is deprecated; please use > /v1/metrics/mbean/java.lang:type=Memory > > 2013-04-20 18:35:43,518 INFO [command-proc-45] [puppetdb.command] > [db173bb5-a2ea-486e-8dd2-46abf737f975] [replace facts] > puppetmaster.domain.com > > 2013-04-20 18:35:48,999 INFO [command-proc-45] [puppetdb.command] > [b8cc3c17-7812-45f1-b833-452ff7bf9cf5] [replace catalog] > puppetmaster.domain.com > > 2013-04-20 18:35:53,944 WARN [qtp1655388819-39] [http.server] Use of > unversioned APIs is deprecated; please use > /v1/metrics/mbean/java.lang:type=Memory > > > > /var/log/puppet/masterhttp.log > > [2013-04-20 18:54:52] puppetmaster.domain.com - - [20/Apr/2013:18:54:51 > MEST] "GET /production/facts/myhost.domain.com? HTTP/1.1" 404 51 > > [2013-04-20 18:54:52] - -> /production/facts/myhost.domain.com? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.