[Puppet Users] Rack issue with puppet-dashboard

2011-07-07 Thread Haitao Jiang
I was following the instructions and was having trouble running

sudo apt-get install puppet-dashboard

I think it tries to start up the dashboard in the end but failed - any
idea how to get it going?

PS: I did try to install rack manually
wget http://rubyforge.org/frs/download.php/71197/rack-1.2.0.tar.gz
tar zxf rack-1.2.0.tar.gz
gem install rack

still the same error

Thanks a lot

Haitao
=error=

Gem::SourceIndex#add_spec called from
/usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:91.
/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs':
Could not find rack (~ 1.0.1) amongst [facter-1.5.9, facter-1.5.7,
puppet-2.6.8, rack-1.3.0] (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:256:in
`to_spec'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1182:in `gem'
from 
/usr/share/puppet-dashboard/vendor/rails/actionpack/lib/action_controller.rb:34
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from 
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
`require'
from 
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from 
/usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
`require'
from 
/usr/share/puppet-dashboard/vendor/rails/railties/lib/commands/server.rb:2
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from /usr/share/puppet-dashboard/script/server:3
 * Puppet Dashboard is not running
   ...fail!
invoke-rc.d: initscript puppet-dashboard, action start failed.
dpkg: error processing puppet-dashboard (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 puppet-dashboard
E: Sub-process /usr/bin/dpkg returned an error code (1)

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Rack issue with puppet-dashboard

2011-07-07 Thread Jacob Helwig
On Thu, 07 Jul 2011 16:05:03 -0700, Haitao Jiang wrote:
 
 I was following the instructions and was having trouble running
 
 sudo apt-get install puppet-dashboard
 
 I think it tries to start up the dashboard in the end but failed - any
 idea how to get it going?
 
 PS: I did try to install rack manually
 wget http://rubyforge.org/frs/download.php/71197/rack-1.2.0.tar.gz
 tar zxf rack-1.2.0.tar.gz
 gem install rack
 
 still the same error
 
 Thanks a lot
 
 Haitao
 =error=
 
 Gem::SourceIndex#add_spec called from
 /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:91.
 /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs':
 Could not find rack (~ 1.0.1) amongst [facter-1.5.9, facter-1.5.7,
 puppet-2.6.8, rack-1.3.0] (Gem::LoadError)
 from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:256:in
 `to_spec'
 from /usr/local/lib/site_ruby/1.8/rubygems.rb:1182:in `gem'
 from 
 /usr/share/puppet-dashboard/vendor/rails/actionpack/lib/action_controller.rb:34
 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
 `gem_original_require'
 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
 `require'
 from 
 /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
 `require'
 from 
 /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
 `new_constants_in'
 from 
 /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in
 `require'
 from 
 /usr/share/puppet-dashboard/vendor/rails/railties/lib/commands/server.rb:2
 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
 `gem_original_require'
 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in
 `require'
 from /usr/share/puppet-dashboard/script/server:3
  * Puppet Dashboard is not running
...fail!
 invoke-rc.d: initscript puppet-dashboard, action start failed.
 dpkg: error processing puppet-dashboard (--configure):
  subprocess installed post-installation script returned error exit status 1
 Errors were encountered while processing:
  puppet-dashboard
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 

Looks like you've got the wrong version of rack installed.

It's looking for rack (~ 1.0.1), which means it can use anything =
1.0.1 and  1.1.0.

~ is explained in more detail on the Ruby Gems site[1] under
Pessimistic Version Constraint.

[1] http://docs.rubygems.org/read/chapter/16

-- 
Jacob Helwig


signature.asc
Description: Digital signature