difficulty installing dashboard.

746 views
Skip to first unread message

Peter Berghold

unread,
Jan 23, 2012, 12:07:55 PM1/23/12
to puppet...@googlegroups.com
Using the instructions I found here: http://docs.puppetlabs.com/guides/installing_dashboard.html
I've run into a snag at the point where you run:

rake RAILS_ENV=production db:migrate

It fails with the following error:

puppet-dashboard]# rake RAILS_ENV=production db:migrate (in /root/puppet-dashboard)
rake aborted!
undefined method `requirement' for #<Rails::GemDependency:0x2b090eec7ab0>


so I ran it with the --trace option and got

puppet-dashboard]# rake --trace RAILS_ENV=production db:migrate
(in /root/puppet-dashboard)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `requirement' for #<Rails::GemDependency:0x2b607f4aa820>
/root/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:81:in `add_load_paths'
/root/puppet-dashboard/config/../vendor/rails/railties/lib/initializer.rb:301:in `add_gem_load_paths'
/root/puppet-dashboard/config/../vendor/rails/railties/lib/initializer.rb:301:in `each'
/root/puppet-dashboard/config/../vendor/rails/railties/lib/initializer.rb:301:in `add_gem_load_paths'
/root/puppet-dashboard/config/../vendor/rails/railties/lib/initializer.rb:132:in `process'
/root/puppet-dashboard/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/root/puppet-dashboard/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/root/puppet-dashboard/config/environment.rb:14
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/root/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/root/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
/root/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
/root/puppet-dashboard/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19


So... what do I do about this?


--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC

Michael Stahnke

unread,
Jan 23, 2012, 5:10:31 PM1/23/12
to puppet...@googlegroups.com
What version of rubygems do you have? I suspect there is some type of
mismatch somewhere, but I could be wrong.

More information would be great:

OS
ruby version
rubygems version
gem list


Thanks
stahnma

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> 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.

Peter Berghold

unread,
Jan 24, 2012, 9:32:16 AM1/24/12
to puppet...@googlegroups.com


On Mon, Jan 23, 2012 at 5:10 PM, Michael Stahnke <sta...@puppetlabs.com> wrote:

OS

CentOS release 5.7 (Final)

 
ruby version
ruby 1.8.5 (2006-08-25) [x86_64-linux]
 
rubygems version
1.3.1
 
gem list


*** LOCAL GEMS ***

actionmailer (2.1.1)
actionpack (2.1.1)
activerecord (2.1.1)
activeresource (2.1.1)
activesupport (2.1.1)
dashboard (0.0.0)
facter (1.6.3, 1.6.2, 1.6.1)
libdir (1.3.1)
puppet (2.7.9, 2.7.6, 2.7.4)
rails (2.1.1)
rake (0.8.7)
 

Michael Stahnke

unread,
Jan 24, 2012, 11:34:20 AM1/24/12
to puppet...@googlegroups.com
On Tue, Jan 24, 2012 at 6:32 AM, Peter Berghold <salty....@gmail.com> wrote:
>
>
> On Mon, Jan 23, 2012 at 5:10 PM, Michael Stahnke <sta...@puppetlabs.com>
> wrote:
>>
>>
>> OS
>
>
> CentOS release 5.7 (Final)
>
>
>>
>> ruby version
>
> ruby 1.8.5 (2006-08-25) [x86_64-linux]

Dashboard isn't supported (and doesn't really work) on Ruby 1.8.5.
1.8.7 is the minimum requirement. Can you try EL6?


>
>>
>> rubygems version
>
> 1.3.1
>
>>
>> gem list
>>
>>
> *** LOCAL GEMS ***
>
> actionmailer (2.1.1)
> actionpack (2.1.1)
> activerecord (2.1.1)
> activeresource (2.1.1)
> activesupport (2.1.1)
> dashboard (0.0.0)
> facter (1.6.3, 1.6.2, 1.6.1)
> libdir (1.3.1)
> puppet (2.7.9, 2.7.6, 2.7.4)
> rails (2.1.1)
> rake (0.8.7)
>
>
>
> --
> Peter L. Berghold
> Owner, Shark River Technical Solutions LLC
>

Peter Berghold

unread,
Jan 24, 2012, 11:42:08 AM1/24/12
to puppet...@googlegroups.com


On Tue, Jan 24, 2012 at 11:34 AM, Michael Stahnke <sta...@puppetlabs.com> wrote:


Dashboard isn't supported (and doesn't really work) on Ruby 1.8.5.
1.8.7 is the minimum requirement.  Can you try EL6?


Oh man...

Here is what the installation docs say:
Ruby or Ruby Enterprise Edition programming language interpreter, version 1.8.4 to 1.8.7, but not 1.9.x

so... I gotta get 1.8.7 on the box?   EL6 is not an option at this point as this is not a new box and does more than just puppet...

Michael Stahnke

unread,
Jan 24, 2012, 11:46:26 AM1/24/12
to puppet...@googlegroups.com
On Tue, Jan 24, 2012 at 8:42 AM, Peter Berghold <salty....@gmail.com> wrote:
>
>
> On Tue, Jan 24, 2012 at 11:34 AM, Michael Stahnke <sta...@puppetlabs.com>
> wrote:
>>
>>
>>
>> Dashboard isn't supported (and doesn't really work) on Ruby 1.8.5.
>> 1.8.7 is the minimum requirement.  Can you try EL6?
>>
>
> Oh man...
>
> Here is what the installation docs say:
> Ruby or Ruby Enterprise Edition programming language interpreter, version
> 1.8.4 to 1.8.7, but not 1.9.x

Which docs? I swear we've had this updated. 1.8.7 will work. You
can use REE or something from http://centos.karan.org/el5/ruby187/.

http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#installing-puppet-dashboard
that says 1.8.7.


>
> so... I gotta get 1.8.7 on the box?   EL6 is not an option at this point as
> this is not a new box and does more than just puppet...
>
>
>
> --
> Peter L. Berghold
> Owner, Shark River Technical Solutions LLC
>

Randall Hansen

unread,
Jan 24, 2012, 11:52:15 AM1/24/12
to puppet...@googlegroups.com
On Tue, Jan 24, 2012 at 8:46 AM, Michael Stahnke <sta...@puppetlabs.com> wrote:

> Which docs?  I swear we've had this updated.

These, Mike: http://docs.puppetlabs.com/guides/installing_dashboard.html.
I've pinged Nick Fagerlund about a fix.

Apologies for the bother, Peter. We have this documented in too many places.

r

Stefan Heijmans

unread,
Jan 24, 2012, 12:23:56 PM1/24/12
to puppet...@googlegroups.com, pe...@berghold.net

Op dinsdag 24 januari 2012 17:42:08 UTC+1 schreef Salty Old Cowdawg het volgende:
so... I gotta get 1.8.7 on the box?   EL6 is not an option at this point as this is not a new box and does more than just puppet...

 
Or you can compile Ruby Enterprise Edition 1.8.7 yourself on that host.
 
So there are some options you could go for.
 
Stefan
 
 

Peter Berghold

unread,
Jan 24, 2012, 1:56:20 PM1/24/12
to puppet...@googlegroups.com


I think I'm gonna give up on dashboard.  Now that I have ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]
installed there are new messages being spewed:

 rake --trace RAILS_ENV=production reports:migrate
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /root/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 /root/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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_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/site_ruby/1.8/rubygems/source_index.rb:91.
rake aborted!
no such file to load -- rdoc/task
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/root/puppet-dashboard/Rakefile:9
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33

/usr/bin/rake:19:in `load'
/usr/bin/rake:19

Randall Hansen

unread,
Jan 24, 2012, 1:59:12 PM1/24/12
to puppet...@googlegroups.com
On Tue, Jan 24, 2012 at 10:56 AM, Peter Berghold
<salty....@gmail.com> wrote:

> rake aborted!
> no such file to load -- rdoc/task

You may have other issues (aside from the mass of deprecation warnings
... ew), but this makes it look like you're missing the rdoc gem.

r

Peter Berghold

unread,
Jan 24, 2012, 2:06:28 PM1/24/12
to puppet...@googlegroups.com
On Tue, Jan 24, 2012 at 1:59 PM, Randall Hansen <ran...@puppetlabs.com> wrote:

You may have other issues (aside from the mass of deprecation warnings
... ew), but this makes it look like you're missing the rdoc gem.


 puppet-dashboard]# gem list


*** LOCAL GEMS ***

actionmailer (2.1.1)
actionpack (2.1.1)
activerecord (2.1.1)
activeresource (2.1.1)
activesupport (2.1.1)
dashboard (0.0.0)
facter (1.6.3, 1.6.2, 1.6.1)
json (1.6.5)

libdir (1.3.1)
puppet (2.7.9, 2.7.6, 2.7.4)
rails (2.1.1)
rake (0.9.2.2, 0.8.7)
rdoc (3.12)

It's there.  Now it complains it doesn't know how to build task 'reports:migrate'
 

Jo Rhett

unread,
Jan 24, 2012, 3:47:25 PM1/24/12
to puppet...@googlegroups.com
Just FYI I went through the struggle of getting 1.8.7 on a CentOS 5.7 system and documented it here:

Puppet dashboard is up and running fine on CentOS 5.7 using the steps documented here.  And I know these steps work because I have multiple environments to deploy so I used this document to build out in the new environments ;-)

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
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.

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source and other randomness

Jo Rhett

unread,
Jan 24, 2012, 3:53:29 PM1/24/12
to puppet...@googlegroups.com
Install the rdoc gem.  You'll always get the deprecation warnings, those are reported in bug 
    https://projects.puppetlabs.com/issues/11669

Michael agreed its a bug, but there's no evidence it's fixed in dashboard 1.2.5 afaict.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
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.
Reply all
Reply to author
Forward
0 new messages