Installing puppet-dashboard on ubuntu precise

830 views
Skip to first unread message

Sam Morrison

unread,
Aug 15, 2012, 1:17:38 AM8/15/12
to puppet...@googlegroups.com
Hi,

I'm trying to install dashboard on precise and I get the below error.
I'm using the latest version that is available in the puppet apt repository. The package rdoc is installed (it's just a virtual package pointing to ruby)

Are there some other missing dependencies that the package doesn't specify?
I don't know ruby that well so finding it hard to debug.

Also it's well after 2011-11-01 is that a problem too?

Thanks,
Sam



root@admin:/usr/share/puppet-dashboard# 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/config/../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/config/../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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/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/vendor_ruby/1.8/rubygems/source_index.rb:91.
rake aborted!
no such file to load -- rdoc/task
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/usr/share/puppet-dashboard/Rakefile:9
/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 `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 `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

Ashish

unread,
Aug 15, 2012, 2:45:20 AM8/15/12
to puppet...@googlegroups.com, Sam Morrison
Hi,

I just ran into the same problem few days back,

see whether you have installed rack 1.1.0 you can check by "gem list"

and if possible uninstall the existing rack which ever version it is
and then install it with this command gem install rack -v=1.1.0

<snip>
server:/usr/share/puppet-dashboard/script# gem list

*** LOCAL GEMS ***

daemon_controller (1.0.0)
fastthread (1.0.7)
passenger (3.0.15)
rack (1.1.2, 1.1.0)
rake (0.9.2.2)
</snip>

Regards,
System Admin
Ashish Jaiswal
> --
> 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/-/bDFUtw_6gnMJ.
> 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.

Sam Morrison

unread,
Aug 16, 2012, 2:43:44 AM8/16/12
to puppet...@googlegroups.com, Sam Morrison
Thanks Ashish,

I was hoping to not have to install any "gems", it comes as a debian package so I was expecting that it would work with the packages available.
Precise comes with rack 1.3.5 so wondering if I can get it to work with that somehow. How comes it says rdoc though?
Is there any way to find out the real requirements for puppet-dashboard? Is there some kind of checking I can disable?

I would be nice if these specific dependencies were put in the debian package as I always find it a struggle to install anything that involves ruby.
The puppet and puppetmaster packages work great so it would be good to get the puppet-dashboard package up to the same standard.


Has anyone got this working without installing "gems"? Any debs for the required versions around?

Cheers,
Sam

Daniele Sluijters

unread,
Aug 16, 2012, 9:09:20 AM8/16/12
to puppet...@googlegroups.com
Hi,

The issue is probably that the Puppet package is requiring librack-ruby. In the case of Debian Squeeze this neatly resolves to 1.1.0 and there are no issues.

Dashboard should be fixed to work with more recent versions of Rack though as Wheezy ships with 1.4.1 so the issue will be more prominent.

What you can try for now is to uninstall the Ubuntu package and grab the Debian librack-ruby and install that through dpkg. It's probably going to want to upgrade librack-ruby the next time you run apt-get upgrade so you might have to hold the package if you go down this road.

The issues are caused by endor/rails/railties/lib/rails/gem_depedency.rb and vendor_gem_source_index.rb that use deprecated functions. The fix should be fairly simple but someone actually has to get up and do it.

The issue is being tracked in http://projects.puppetlabs.com/issues/9296 so I suggest you update that ticket.

-- 
Daniele Sluijters

Sam Morrison

unread,
Aug 16, 2012, 7:58:06 PM8/16/12
to puppet...@googlegroups.com
Hi Daniele,

Thanks a lot for the info, I'll follow the bug and give your workaround a go.

Cheers,
Sam

Sam Morrison

unread,
Aug 17, 2012, 12:49:08 AM8/17/12
to puppet...@googlegroups.com
OK so I tried the debian package way but that got too hard with package conflicts.

There is librack-ruby which seems to be the same as ruby-rack but not sure, ruby-rack depends on passenger so I don't want to go down that path.


So next step was to try via installing the gem, I did:

gem install rack -v=1.1.0

But I still get exactly the same error:

root@admin:/usr/share/puppet-dashboard# gem list

*** LOCAL GEMS ***

rack (1.1.0)

Something else I'm missing?

Thanks,
Sam

Daniele Sluijters

unread,
Aug 17, 2012, 3:41:49 AM8/17/12
to puppet...@googlegroups.com
Hi,

Are you sure there's no rack 1.3.5 somewhere around your system? If there is it is probably found in the $RUBYLIBDIR path before the one installed from gem so you're still seeing the error.

If not, then it's getting interesting...

-- 
Daniele Sluijters

On Wednesday, 15 August 2012 07:17:38 UTC+2, Sam Morrison wrote:

Sam Morrison

unread,
Aug 19, 2012, 9:33:54 PM8/19/12
to puppet...@googlegroups.com
Hi Daniele,

Yeah you are probably right. I can't uninstall the other one as it is a dependance on mod-passenger.
I'm not really familiar with ruby, Is there a way I can override the search path?

I don't have RUBYLIBDIR set in my environment.

Cheers,
Sam

Ashish

unread,
Aug 19, 2012, 9:43:11 PM8/19/12
to puppet...@googlegroups.com, Sam Morrison
Hi Sam,

I would rather suggest uninstalling mod-passenger and then do a fresh
install, rather going into all this mess..

Regards,
System Admin
Ashish Jaiswal

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

Sam Morrison

unread,
Aug 19, 2012, 11:32:31 PM8/19/12
to puppet...@googlegroups.com, Sam Morrison
I'd rather not do that as mod-passenger is needed by something else (puppetmaster)

Is there no way I can make dashboard use the gem version as opposed to the standard one?
Is that what RUBYLIBDIR is for?


Cheers,
Sam
Reply all
Reply to author
Forward
0 new messages