inventory service in Puppet-dashboard

327 views
Skip to first unread message

Sans

unread,
Jun 14, 2012, 6:47:23 AM6/14/12
to puppet...@googlegroups.com
Hi there,

I installed puppet-dashboard, which works just fine, and trying to activate inventory-services but get this error on the agent:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Please install the mysql adapter: `gem install activerecord-mysql-adapter` (Could not find RubyGem mysql (~> 2.8.1)


on the master, these are the packages I got installed:

 [root@sdas puppet-dashboard]# rpm -qa | sort | egrep 'gem|mysql'
mysql-5.1.61-1.el6_2.1.x86_64
mysql-libs-5.1.61-1.el6_2.1.x86_64
mysql-server-5.1.61-1.el6_2.1.x86_64
rubygem-daemon_controller-0.2.6-1.el6.noarch
rubygem-fastthread-1.0.7-2.el6.x86_64
rubygem-passenger-3.0.12-1.el6.x86_64
rubygem-passenger-native-3.0.12-1.el6.x86_64
rubygem-passenger-native-libs-3.0.12-1.el6_1.8.7.352.x86_64
rubygem-rack-1.1.0-2.el6.noarch
rubygem-rake-0.8.7-2.1.el6.noarch
rubygems-1.3.7-1.el6.noarch
ruby-mysql-2.8.2-1.el6.x86_64

and the number of installed GEMS:

[root@sdas puppet-dashboard]# gem list

*** LOCAL GEMS ***

activemodel (3.2.6)
activerecord (3.2.6)
activesupport (3.2.6)
arel (3.0.2)
builder (3.0.0)
daemon_controller (0.2.6)
fastthread (1.0.7)
i18n (0.6.0)
multi_json (1.3.6)
passenger (3.0.12)
rack (1.1.0)
rake (0.8.7)
tzinfo (0.3.33)

 anything obvious am I still missing? what's might be the problem(s)?

cheers,
San

Matthew Burgess

unread,
Jun 14, 2012, 7:01:33 AM6/14/12
to puppet...@googlegroups.com
On Thu, Jun 14, 2012 at 11:47 AM, Sans <r.sant...@gmail.com> wrote:

>> [root@sdas puppet-dashboard]# gem list
>>
>> *** LOCAL GEMS ***
>>
>> activemodel (3.2.6)
>> activerecord (3.2.6)
>> activesupport (3.2.6)
>> arel (3.0.2)
>> builder (3.0.0)
>> daemon_controller (0.2.6)
>> fastthread (1.0.7)
>> i18n (0.6.0)
>> multi_json (1.3.6)
>> passenger (3.0.12)
>> rack (1.1.0)
>> rake (0.8.7)
>> tzinfo (0.3.33)
>
>
>  anything obvious am I still missing? what's might be the problem(s)?

You're missing the mysql rubygem.

Regards,

Matt.
>
> cheers,
> San
>
> --
> 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/-/xgcCHRHVfNYJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

Sans

unread,
Jun 14, 2012, 8:10:45 AM6/14/12
to puppet...@googlegroups.com
thanks Matt!
I got ruby-mysql-2.8.2-1.el6.x86_64 installed - so. it's not the same thing?
Do I have to install that manually to make it work? Cheers!!

Matthew Burgess

unread,
Jun 14, 2012, 8:37:31 AM6/14/12
to puppet...@googlegroups.com
On Thu, Jun 14, 2012 at 1:10 PM, Sans <r.sant...@gmail.com> wrote:
> thanks Matt!
> I got ruby-mysql-2.8.2-1.el6.x86_64 installed - so. it's not the same thing?
> Do I have to install that manually to make it work? Cheers!!

Yeah, they're different things, I think.

Try doing a 'gem install mysql' assuming you're on an internet connected
host. If not, get hold of the rubygem from
http://rubygems.org/gems/mysql and install it via 'gem install --local
mysql' - you'll need the mysql-devel package installed. Or you could
try to find a ready made rubygem-mysql RPM somewhere, but it doesn't
look like EPEL has it yet.

Regards,

Matt.

Sans

unread,
Jun 14, 2012, 4:16:02 PM6/14/12
to puppet...@googlegroups.com

I finally managed to do gem install mysql and it's now installed. Although I don't any error(s) on the agent, but, I get:

Could not retrieve facts from inventory service: 403 "Forbidden"

error on the browser. I already have this in my auth.conf:

path /facts
method find
auth any
allow *

as someone suggested in another forum but I don't see any inventory data at all. Any idea how do I go around this issue?

Cheers,
San

Sans

unread,
Jun 14, 2012, 4:57:28 PM6/14/12
to puppet...@googlegroups.com
Forgot to mention that I'm also seeing these in the syslog:

puppet-master[7035]: Denying access: Forbidden request: dashboard(xx.xxx.xx.xx) access to /facts/xxxx.cloud.com [find] authenticated  at line 99
puppet-master[7035]: Forbidden request: dashboard(xx.xxx.xx.xx) access to /facts/xxxx.cloud.com [find] authenticated  at line 99


Any help would be greatly appreciated. Cheers!!

Sans

unread,
Jun 15, 2012, 8:30:03 AM6/15/12
to puppet...@googlegroups.com
Hi guys,

Just wondering, if any one can tell me it it's a "certificate" related issue. Still can't find any thing obvious. Cheers!!

Stefan Heijmans

unread,
Jun 15, 2012, 8:42:03 AM6/15/12
to puppet...@googlegroups.com

Op vrijdag 15 juni 2012 14:30:03 UTC+2 schreef Sans het volgende:
Hi guys,

Just wondering, if any one can tell me it it's a "certificate" related issue. Still can't find any thing obvious. Cheers!
 
did you check/follow this page?
 
 

Sans

unread,
Jun 15, 2012, 12:03:30 PM6/15/12
to puppet...@googlegroups.com
Yes! That's the page I followed in the first place. still can't  understand what possibly going wrong. Cheers!!
Reply all
Reply to author
Forward
0 new messages