Re: puppet-dashboard - rake API not working

1,654 views
Skip to first unread message

Stefan Heijmans

unread,
Nov 19, 2012, 1:37:43 PM11/19/12
to puppet...@googlegroups.com
Yes, I noticed it in 1.2.13 (https://groups.google.com/d/msg/puppet-users/-s07XIymxCo/Yp3DpRU4t6EJ) but not in 1.2.14.
Fixed it by running  the mentioned 'rake gems:refresh_specs' 

Stefan


On Monday, November 19, 2012 10:11:35 AM UTC+1, Jacob wrote:
Hello all,

I am quite new to the puppet arena, but I am really impressed with puppet as a tool and the possibilities it gives you with regards to managing many systems.

I am running dashboard 1.2.14 and am trying to query via the rake API: http://docs.puppetlabs.com/dashboard/manual/1.2/rake_api.html

when I do, I get the following error:

<snip>

# sudo -u puppet-dashboard rake -f /usr/share/puppet-dashboard/Rakefile 'node:list'
(in /var/log)
config.gem: Unpacked gem daemons-1.0.10 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rack-1.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-1.3.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rdoc-3.6.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-rails-1.3.4 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem thoughtbot-shoulda-2.10.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem mocha-0.9.7 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem will_paginate-2.3.15 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem json_pure-1.5.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem haml-3.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem sass-3.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem factory_girl-1.3.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks are deprecated. Use lib/tasks instead. (called from /usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:10)



</snip>



...I fail to find any info on this online ... has anyone else seen this?

Thanks,

//Jacob.

Jacob

unread,
Nov 20, 2012, 2:36:17 AM11/20/12
to puppet...@googlegroups.com
Thanks :)

Now I get


<snip>

# sudo -u puppet-dashboard rake -f /usr/share/puppet-dashboard/Rakefile 'node:list'
(in /usr/share/puppet-dashboard)

DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks are deprecated. Use lib/tasks instead. (called from /usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:10)

</snip>



Bruno Léon

unread,
Nov 20, 2012, 12:37:38 PM11/20/12
to puppet...@googlegroups.com

Does it fail or only warn ?

I can only see dprecation warnings in your message.

 

--

Bruno

--
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/-/Q-XcVfScapMJ.
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.



Jacob

unread,
Nov 21, 2012, 2:12:48 AM11/21/12
to puppet...@googlegroups.com
I don't get the expected output... (a list of my nodes)..

only the deprecation warning.

Stefan Heijmans

unread,
Nov 21, 2012, 3:04:29 AM11/21/12
to puppet...@googlegroups.com
And when you provide the RAILS_ENV you are using? For example;
 
sudo -u puppet-dashboard  rake -f /usr/share/puppet-dashboard/Rakefile RAILS_ENV=production  'node:list'
 
 

Op woensdag 21 november 2012 08:12:48 UTC+1 schreef Jacob het volgende:

Jacob

unread,
Nov 21, 2012, 3:07:57 AM11/21/12
to puppet...@googlegroups.com
:-) Thank you - that did it!
Reply all
Reply to author
Forward
0 new messages