Puppetdb has not logged any new input in past 7 hours

71 views
Skip to first unread message

Bret Wortman

unread,
Aug 17, 2016, 4:37:12 PM8/17/16
to Puppet Users
My puppetdb instance is up and running but hasn't stored any updates of any kind in the past 7 hours, according to both Puppet Explorer and Puppetboard.

The process is running and so is postgres. Puppet configs haven't changed in that time. /var/log/puppetlabs/puppetdb/puppetdb.log shows plenty of updates coming in:

2016-08-17 16:31:48,887 INFO  [p.p.command] [-UUID-] [replace facts] branfile1.our.net
2016-08-17 16:31:59,136 INFO  [p.p.command] [-UUID-] [replace facts] zs311.our.net
2016-08-17 16:32:11,347 INFO  [p.p.command] [-UUID-] [replace facts] gs1205.our.net
2016-08-17 16:32:12,982 WARN  [p.p.q.engine] The event-counts entity is experimental and may be altered or removed in the future.
2016-08-17 16:32:15,237 INFO  [p.p.command] [-UUID-] [replace facts] fs1603.our.net

and so on.

There's nothing obviously wrong when Puppetdb starts up in the logfile, either. What should I be looking at to see why it's accepting these updates but (apparently) not storing them? Does anyone know postgres better than I do who could give me some way to directly query the database to see if one of the above updates (or any other, for that matter) exists?

Thanks!

Bret Wortman

unread,
Aug 17, 2016, 4:39:39 PM8/17/16
to Puppet Users
Versions:

# rpm -qa | grep puppet
puppetserver-2.4.0-1.el7.noarch
puppetdb-4.2.0-1.el7.noarch
puppetexplorer-2.0.0-1.noarch
puppetdb-termini-4.2.0-1.el7.noarch
puppet-agent-1.6.0-1.el7.x86_64
# rpm -qa | grep postgres
postgresql95-libs-9.5.4-1PGDG.rhel7.x86_64
postgresql95-9.5.4-IPGDG.rhel7.x86_64
postgresql95-server-9.5.4-IPGDG.rhel7.x86_64
postgresql95-contrib-9.5.4-IPGDG.rhel7.x86_64
#

Wyatt Alt

unread,
Aug 17, 2016, 5:50:58 PM8/17/16
to puppet...@googlegroups.com
I'd check the timestamps in the output of

curl -X GET http://localhost:8080/pdb/query/v4/nodes/fs1603.our.net

(with a real certname if that one is fake). These will tell you when the last report/facts/catalog for the node were stored.

Nothing about the log output you've posted indicates an issue storing data, so I'm wondering if the problem is with what puppet explorer/puppetboard are considering an "update". For example maybe reports got switched off and only reports are considered in that determination (I have no idea if this is true).

Wyatt

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8a76426c-1da9-4d24-9ffe-ffc9d8cae59b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Bret Wortman

unread,
Aug 17, 2016, 6:13:42 PM8/17/16
to Puppet Users
For a node I know has been updated, I get (just listing the timestamps):

"facts_timestamp" : "2016-08-17T17:52:33.899Z",
"report_timestamp" : "2016-08-16T21:15:22.376Z",
"catalog_timestamp" : "2016-08-16T21:14:24.444Z", 
 
So it seems that facts are being stored, but reports & catalogs aren't. The puppet.conf file on this (and all other clients) contains:

reports   = puppetdb

Is there something else I need to have set? I don't think we changed config this morning....


To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

Wyatt Alt

unread,
Aug 17, 2016, 6:37:31 PM8/17/16
to puppet...@googlegroups.com
Can you post a gist of your master's full puppet.conf?

Bret Wortman

unread,
Aug 17, 2016, 7:09:35 PM8/17/16
to Puppet Users

Wyatt Alt

unread,
Aug 18, 2016, 12:01:45 AM8/18/16
to puppet...@googlegroups.com, Bret Wortman
Hey Bret, sorry for the gap in communication. Try making these changes:

* to the [master] section,
storeconfigs=true
storeconfigs_backend=puppetdb
reports=puppetdb

* to the [agent] section for each node, change "reports=puppetdb" to
"report=true".

I think that should straighten it out.

Wyatt

Bret Wortman

unread,
Aug 18, 2016, 12:22:03 AM8/18/16
to puppet...@googlegroups.com, Wyatt Alt
I'd love to figure out how that changed on me, because your changes remind me that it USED to look like that!

Bret Wortman 

Bret Wortman

unread,
Aug 18, 2016, 11:20:03 AM8/18/16
to Puppet Users, wy...@puppet.com
BTW, that fixed it. Thanks!
Reply all
Reply to author
Forward
0 new messages