Ask Your Question

replace a puppetdb server

asked 2015-11-13 13:12:20 -0600

lclegg gravatar image

My environment: Oracle Linux 6.7 PuppetServer V2.1.2 Puppet Agent V2.7.26 Puppetdb V3.2.0 I used the puppetlabs/puppetdb module from the Forge to install/configure. It worked great.

The PuppetDB is on a different node than the Puppet Server. Everything has been running a-ok without issue.

But now I lost my PuppetDB server - it was accidentally deleted from VMware. No backups available. I rebuilt the node using the same name/IP, etc.

Now when I try to re-apply the manifest to setup Puppetdb I get this message:

[root] puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Could not retrieve facts for Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/' on any of the following 'server_urls': https://gfmpuppetdlps.hsi.hughessuppl... Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to execute '/pdb/cmd/v1?checksum=d00436d087dde0250915838c355046d7595138c5' on any of the following 'server_urls': https://gfmpuppetdlps.hsi.hughessuppl... Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Now none of my nodes are able to apply anything using Puppet. They all generate a similar message.

I'm not sure what I need to do with the Puppet Server to (temporarily) disable using PuppetDB as the fact repository.


edit retag flag offensive close merge delete


This usually means that puppetdb is not accessible from master. Check if puppet master can access puppetdb

Cristian Falcas gravatar imageCristian Falcas ( 2015-11-16 08:23:20 -0600 )edit

Yes...the puppetdb was lost and now I'm trying to re-create it. But it is failing as the puppet master attempts to communicate with the now dead former puppetdb. I've not been successful in figuring out how to stop puppet master from doing that.

lclegg gravatar imagelclegg ( 2015-11-16 11:14:42 -0600 )edit

You should try to reinstall a puppetdb somewhere

Cristian Falcas gravatar imageCristian Falcas ( 2015-11-17 01:47:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-30 17:18:28 -0600

lclegg gravatar image

I ended up rebuilding both my puppet master and my puppet db servers from scratch. This exercise uncovered some issues with my OS baseline which was a facter in the problems I was having. Good thing this was a lab environment!

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



Asked: 2015-11-13 13:12:20 -0600

Seen: 1,380 times

Last updated: Nov 30 '15