Re: [Puppet Users] Puppet Dashboard installation on Debian Wheezy

2,524 views
Skip to first unread message

Juan Sierra Pons

unread,
Aug 8, 2012, 12:53:30 PM8/8/12
to puppet...@googlegroups.com

Hi

Yesterday I had the same problem. I solved it using this link:

http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#installing-dependencies

Install the RubyGems package system with the script provided.

Hope it helps.

Best regards

On Aug 8, 2012 5:59 PM, "Deimos Fr" <deim...@gmail.com> wrote:
Hi,

I've got an issue on installing Puppet Dashboard on Debian wheezy. When I launch the db:migrate, I've got an error :
> rake RAILS_ENV=production db:migrate --trace             
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/puppet-dashboard/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/share/puppet-dashboard/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/1.9.1/rubygems/source_index.rb:91.
rake aborted!
cannot load such file -- ftools
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/usr/share/puppet-dashboard/lib/tasks/plugins.rake:2:in `<top (required)>'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in `load'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in `block in load_with_new_constant_marking'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in `load_with_new_constant_marking'
/usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:14:in `block in <top (required)>'
/usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:14:in `each'
/usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:14:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/share/puppet-dashboard/Rakefile:11:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load'
/usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:501:in `raw_load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:82:in `block in load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:81:in `load_rakefile'
/usr/lib/ruby/vendor_ruby/rake/application.rb:65:in `block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27:in `<main>'

It looks like a ruby version problem. On version 1.8 ftools exists, but not on 1.9.1 (the standard on Debian wheezy). Does someone has an idea ? I've searched on the web, but didn't find something relevant.

Thanks in advance

--
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/-/UjclRqRVMCcJ.
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.

Deimos Fr

unread,
Aug 13, 2012, 5:37:51 AM8/13/12
to puppet...@googlegroups.com
Hi,

Thanks for the answer, but still searching as I've got this error now :

ruby setup.rb
/usr/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method `find_by_path' for Gem::Specification:Class (NoMethodError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /tmp/install_rubygems.wX4fqo5x78/rubygems-1.3.7/lib/rubygems/config_file.rb:50:in `<class:ConfigFile>'
    from /tmp/install_rubygems.wX4fqo5x78/rubygems-1.3.7/lib/rubygems/config_file.rb:28:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /tmp/install_rubygems.wX4fqo5x78/rubygems-1.3.7/lib/rubygems/gem_runner.rb:8:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from setup.rb:25:in `<main>'

Juan Sierra Pons

unread,
Aug 13, 2012, 5:44:05 AM8/13/12
to puppet...@googlegroups.com
2012/8/13 Deimos Fr <deim...@gmail.com>:
> https://groups.google.com/d/msg/puppet-users/-/S0dIFMCurekJ.
>
> 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.

Hi

Did you update the alternatives? as stated in point number 3 [1]

update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.8 1

It seems you are still using the 1.9.1 ruby version instead of the
1.8.1 recently installed

[1] http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#installing-dependencies

Best regards

--------------------------------------------------------------------------------------
Juan Sierra Pons ju...@elsotanillo.net
Linux User Registered: #257202 http://www.elsotanillo.net
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE
--------------------------------------------------------------------------------------

Deimos Fr

unread,
Aug 13, 2012, 5:56:04 AM8/13/12
to puppet...@googlegroups.com
I did as well. But I'm still blocked to the rubygem compilation :


> update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.8 1
> ruby setup.rb                                                   
/usr/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method `find_by_path' for Gem::Specification:Class (NoMethodError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /tmp/install_rubygems.wX4fqo5x78/rubygems-1.3.7/lib/rubygems/config_file.rb:50:in `<class:ConfigFile>'
    from /tmp/install_rubygems.wX4fqo5x78/rubygems-1.3.7/lib/rubygems/config_file.rb:28:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /tmp/install_rubygems.wX4fqo5x78/rubygems-1.3.7/lib/rubygems/gem_runner.rb:8:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from setup.rb:25:in `<main>'

And of course, I've installed all required packages.

Deimos Fr

unread,
Aug 13, 2012, 6:07:26 AM8/13/12
to puppet...@googlegroups.com
Ok, works now. I has to did a sad thing. For unknow reasons, this doesn't work at all :
> update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.8 1
> update-alternatives --remove ruby /usr/bin/ruby

So what I did is :
> rm /etc/alternatives/ruby
> ln -s /usr/bin/ruby1.8 /etc/alternatives/ruby

Now it works :-) Using gems with the appropriate Ruby version is better :-)

Thanks again

Ghaith

unread,
May 25, 2014, 6:44:23 AM5/25/14
to puppet...@googlegroups.com
Hi ,

After installing the script and while starting the service i obtain the error message bellow

/etc/init.d/puppet-dashboard start
[....] Starting Puppet Dashboard:/usr/bin/ruby: No such file or directory -- /usr/share/puppet-dashboard/script/server (LoadError)
[FAIL] Puppet Dashboard is not running ... failed!
 failed!


Any idea please.
Thanks

Felix Frank

unread,
May 26, 2014, 12:43:55 PM5/26/14
to puppet...@googlegroups.com
On 05/25/2014 12:44 PM, Ghaith wrote:
> Hi ,
>
> After installing the script and while starting the service i obtain the
> error message bellow
>
> /etc/init.d/puppet-dashboard start
> [....] Starting Puppet Dashboard:/usr/bin/ruby: No such file or
> directory -- /usr/share/puppet-dashboard/script/server (LoadError)
> [FAIL] Puppet Dashboard is not running ... failed!
> failed!
>
>
> Any idea please.
> Thanks

Hi,

you may want to find out why /usr/share/puppet-dashboard/script/server
is missing, or why it is erroneously being looked up.

Also, check your logs for potential prior errors.

HTH,
Felix

Walter Heck

unread,
May 27, 2014, 4:34:03 AM5/27/14
to puppet...@googlegroups.com
I realise it's slightly off-topic, but please be aware the puppet dashboard is deprecated and won't be developed further. In case you are just starting now, it might be better to look for something else. I have created an overview here: http://www.olindata.com/blog/2014/01/puppet-management-gui-comparison


just FYI :)

cheers,

Walter
Reply all
Reply to author
Forward
0 new messages