Hi all,

I'm having an issue on the master I'm using in my staging
environment with getting storeconfigs to work with puppetdb.

I should say up front that my staging environment is probably a little
uncommon. I'm running OpenIndiana which is a distribution of the open
source fork of OpenSolaris.

I installed puppet (3.0), facter and hiera using `gem` on this system
and have gotten the master working, servicing some test clients without
too much trouble but I'm having some real trouble getting puppetdb 
integrated with my master.

Puppetdb is running on the puppet master and I can access the dashboard
on the default port of 8080 without issue,

I've followed all the instructions at
http://docs.puppetlabs.com/puppetdb/1/connect_puppet_master.html quite
closely but if I have storeconfigs set to true and puppetdb as my
backend I get the following output from a puppet agent --test:


Info: Retrieving plugin
Info: Loading facts in /var/puppet/lib/facter/last_run.rb
Info: Loading facts in /var/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/puppet/lib/facter/puppi_projects.rb
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: invalid encoding ("UTF-8//IGNORE", "UTF-8") Warning: Not using
cache on failed catalog Error: Could not retrieve catalog; skipping run

I've tried Googling but haven't turned up anyone else reporting the
same exact issue. I checked out puppetdb using git and got *most* of
the way through building with Rake (it stopped while building some of
the Debian-specific stuff) -- I got the jar file I'm using from there
and I copied the files I believe I was supposed to from puppetdb's 
puppet/lib/puppet into
"/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/" on this system.
Verbose output from the copy command follows...

root@atropos:~/puppetdb/puppet/lib# cp -Rav
puppet/ /var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/ `puppet/'
-> `/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet'  
`puppet/indirector' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector'
`puppet/indirector/catalog' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/catalog'
`puppet/indirector/catalog/puppetdb.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/catalog/puppetdb.rb'
`puppet/indirector/facts' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/facts'
`puppet/indirector/facts/puppetdb.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/facts/puppetdb.rb'
`puppet/indirector/node' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/node'
`puppet/indirector/node/puppetdb.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/node/puppetdb.rb'
`puppet/indirector/resource' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/resource'
`puppet/indirector/resource/puppetdb.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/indirector/resource/puppetdb.rb'
`puppet/util' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/util'
`puppet/util/puppetdb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/util/puppetdb'
`puppet/util/puppetdb/char_encoding.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/util/puppetdb/char_encoding.rb'
`puppet/util/puppetdb/report_helper.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/util/puppetdb/report_helper.rb'
`puppet/util/puppetdb.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/util/puppetdb.rb'
`puppet/face' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/face'
`puppet/face/node' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/face/node'
`puppet/face/node/status.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/face/node/status.rb'
`puppet/face/node/deactivate.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/face/node/deactivate.rb'
`puppet/reports' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/reports'
`puppet/reports/puppetdb.rb' ->
`/var/ruby/1.8/gem_home/gems/puppet-3.0.1/lib/puppet/puppet/reports/puppetdb.rb'

I dropped all the relevant config file contents into 
http://pastebin.com/SfLEv5zM because it'd be pretty long inline. 

Thanks in advance,
Ryan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/MDBRcAV_zQEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to