Never mind,I just commented out the 'require rack' in environments.rb. On May 10, 9:51 pm, Luke Baker <bake...@missouri.edu> wrote: > I'm having some issues running rake commands for puppet dashboard. > Here is one of the symptoms (see below). I'm a little new to setting > up rails/rack applications, so I may be making a common mistake. It > looks like gems are already packaged with dashboard, specifically > rack-1.01. Should that gem just work out of the box? > > Command: > rake RAILS_ENV=production reports:prune upto=1 unit=mon && rake > RAILS_ENV=production > > Output: > can't activate rack (~> 1.2.2) for [], already activated rack-1.0.1 > for [] > > Here is the trace: > > db:raw:optimize > (in /opt/puppet-dashboard) > ** Invoke reports:prune (first_time) > ** Invoke environment (first_time) > ** Execute environment > rake aborted! > can't activate rack (~> 1.2.2) for [], already activated rack-1.0.1 > for [] > /opt/puppet-dashboard/config/../vendor/rails/railties/lib/ > initializer.rb:271:in `require_frameworks' > /opt/puppet-dashboard/config/../vendor/rails/railties/lib/ > initializer.rb:134:in `process' > /opt/puppet-dashboard/config/../vendor/rails/railties/lib/ > initializer.rb:113:in `send' > /opt/puppet-dashboard/config/../vendor/rails/railties/lib/ > initializer.rb:113:in `run' > /opt/puppet-dashboard/config/environment.rb:14 > /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' > /opt/puppet-dashboard/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require' > /opt/puppet-dashboard/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:521:in `new_constants_in' > /opt/puppet-dashboard/vendor/rails/activesupport/lib/active_support/ > dependencies.rb:156:in `require' > /opt/puppet-dashboard/vendor/rails/railties/lib/tasks/misc.rake:4 > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in > `invoke_prerequisites' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in > `invoke_prerequisites' > /usr/lib64/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:242:in `synchronize' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in > `invoke_task' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `top_level' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `top_level' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in > `top_level' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' > /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load' > /usr/bin/rake:19 > > My set up: > > Puppet 2.6.8 > Ruby 1.8.7 > rack (1.2.2) > rails (3.0.5) > apache 2.2.15
-- 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.