Re: [Puppet Users] Dashboard not retrieving inventory

Khoury Brazil
Sat, 23 Jul 2011 23:41:46 -0000

On Fri, Jul 22, 2011 at 10:44 PM, Nick Lewis <nick@puppetlabs.com>
wrote:
> On Fri, Jul 22, 2011 at 10:27 PM, Khoury Brazil
<khoury.brazil@gmail.com> wrote:
>> Hi All,
>>
>> Puppet-dashboard appears to be having some trouble. Under inventory, it
says:
>> "Could not retrieve facts from inventory service: Permission
denied -
>> certs/dashboard.private_key.pem"
>>
>> When I run:
>> curl -k -H "Accept: yaml"
https://puppet:8140/production/facts/host.domain
>> I get the expected dump of facts.
>>
>> Versions:
>> puppet-dashboard is 1.1.0 (using passenger)
>> puppet-master is 2.7.1
>>
>> Went with an extremely loose config on test:
>> Puppet Master:
>> auth.conf:
>> path /facts
>> method find, search
>> auth any
>> allow *
>>
>> puppet.conf:
>> # Reporting
>> reporturl = http://puppetdashboard.domain/reports/upload
>> # Testing, to be changed to DB for prod
>> facts_terminus = yaml
>>
>>
>> Puppet Dashboard:
>> settings.yml:
>> # The "inventory service" allows you to connect to a puppet
master to
>> retrieve and node facts
>> enable_inventory_service: true
>> # Hostname of the inventory server.
>> inventory_server: ''puppet''
>> # Port for the inventory server.
>> inventory_port: 8140
>>
>> Any ideas? I''m stumped at this point. It almost seems like the
>> dashboard isn''t asking for inventory at all. I''ve
restarted all
>> services with no change, on both the master and dashboard hosts.
>>
>
> From the "Permission denied - certs/dashboard.private_key.pem"
> message, it looks like the user as which Dashboard is running is
> unable to read its certs directory. Did you maybe run the cert-related
> rake tasks as root, when Dashboard runs as another user? Make sure
> that directory is readable by the appropriate user.
>

That''s exactly what I did. That did the trick. Thanks!