Hi Has anyone seen this error message type before and know how to resolve it? I came across this message when trying to access puppet over its web interface. And when I try to run ''rake db:migrate'' I get the following: # rake db:migrate rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2376:in `raw_load_rakefile'' (See full trace by running task with --trace) # rake db:migrate --trace rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2376:in `raw_load_rakefile'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2015:in `load_rakefile'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1999:in `run'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/puppet/bin/rake:19:in `load'' /opt/puppet/bin/rake:19 ------------------------------------------------------------------------------- Ruby on Rails application could not be started The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found below. To solve this problem, please follow any instructions in the error message. Error message:Database isn''t the current migration version: expected 20120112195235, got 0 You must either run ''rake db:migrate'' or set environmental variable NO_MIGRATION_CHECK Application root: /opt/puppet/share/puppet-dashboard Backtrace: # File Line Location 0 /opt/puppet/share/puppet-dashboard/config/initializers/check_migration_version.rb 13 in `abort'' 1 /opt/puppet/share/puppet-dashboard/config/initializers/check_migration_version.rb 13 2 /opt/puppet/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb 173 in `load_without_new_constant_marking'' 3 /opt/puppet/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb 173 in `load'' 4 /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb 622 in `load_application_initializers'' 5 /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb 621 in `each'' 6 /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb 621 in `load_application_initializers'' 7 /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb 176 in `process'' 8 /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb 113 in `send'' 9 /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb 113 in `run'' 10 /opt/puppet/share/puppet-dashboard/config/environment.rb 14 11 /opt/puppet/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'' 12 /opt/puppet/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'' 13 /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 303 in `preload_application'' 14 /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 252 in `initialize_server'' 15 /opt/puppet/lib/ruby/1.8/phusion_passenger/utils.rb 255 in `report_app_init_status'' 16 /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 237 in `initialize_server'' 17 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 194 in `start_synchronously'' 18 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 163 in `start'' 19 /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb 213 in `start'' 20 /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 262 in `spawn_rails_application'' 21 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add'' 22 /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 256 in `spawn_rails_application'' 23 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 80 in `synchronize'' 24 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'' 25 /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 255 in `spawn_rails_application'' 26 /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 154 in `spawn_application'' 27 /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 287 in `handle_spawn_application'' 28 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in `__send__'' 29 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in `main_loop'' 30 /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 196 in `start_synchronously'' 31 /opt/puppet/lib/phusion_passenger/passenger-spawn-server 61 -- 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/-/JRukFmNJzcoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Yuri Medvinsky
2012-Jul-16 13:45 UTC
[Puppet Users] Re: puppet configuration/startup problems
Looks like I figured out what was wrong. The mysqld was not running. Once it was started up this message went away. On Friday, July 13, 2012 3:03:02 PM UTC-4, Yuri Medvinsky wrote:> > Hi > > Has anyone seen this error message type before and know how to resolve it? > I came across this message when trying to access puppet over its web > interface. And when I try to run ''rake db:migrate'' I get the following: > > # rake db:migrate > rake aborted! > No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, > Rakefile.rb) > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2376:in > `raw_load_rakefile'' > (See full trace by running task with --trace) > > # rake db:migrate --trace > rake aborted! > No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, > Rakefile.rb) > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2376:in > `raw_load_rakefile'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in > `load_rakefile'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2015:in > `load_rakefile'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1999:in `run'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in > `standard_exception_handling'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'' > /opt/puppet/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > /opt/puppet/bin/rake:19:in `load'' > /opt/puppet/bin/rake:19 > > > > > ------------------------------------------------------------------------------- > Ruby on Rails application could not be started The application has exited > during startup (i.e. during the evaluation of config/environment.rb). The > error message can be found below. To solve this problem, please follow any > instructions in the error message. Error message:Database isn''t the > current migration version: expected 20120112195235, got 0 You must either > run ''rake db:migrate'' or set environmental variable NO_MIGRATION_CHECK Application > root: /opt/puppet/share/puppet-dashboard Backtrace: # File Line Location > 0 > /opt/puppet/share/puppet-dashboard/config/initializers/check_migration_version.rb > 13 in `abort'' 1 > /opt/puppet/share/puppet-dashboard/config/initializers/check_migration_version.rb > 13 > 2 > /opt/puppet/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb > 173 in `load_without_new_constant_marking'' 3 > /opt/puppet/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb > 173 in `load'' 4 > /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb > 622 in `load_application_initializers'' 5 > /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb > 621 in `each'' 6 > /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb > 621 in `load_application_initializers'' 7 > /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb > 176 in `process'' 8 > /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb > 113 in `send'' 9 > /opt/puppet/share/puppet-dashboard/vendor/rails/railties/lib/initializer.rb > 113 in `run'' 10 /opt/puppet/share/puppet-dashboard/config/environment.rb > 14 > 11 /opt/puppet/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in > `gem_original_require'' 12 > /opt/puppet/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in > `require'' 13 > /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb > 303 in `preload_application'' 14 > /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb > 252 in `initialize_server'' 15 > /opt/puppet/lib/ruby/1.8/phusion_passenger/utils.rb 255 in > `report_app_init_status'' 16 > /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb > 237 in `initialize_server'' 17 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 194 in > `start_synchronously'' 18 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 163 in > `start'' 19 > /opt/puppet/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb > 213 in `start'' 20 > /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 262 in > `spawn_rails_application'' 21 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb > 126 in `lookup_or_add'' 22 > /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 256 in > `spawn_rails_application'' 23 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb > 80 in `synchronize'' 24 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb > 79 in `synchronize'' 25 > /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 255 in > `spawn_rails_application'' 26 > /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 154 in > `spawn_application'' 27 > /opt/puppet/lib/ruby/1.8/phusion_passenger/spawn_manager.rb 287 in > `handle_spawn_application'' 28 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in > `__send__'' 29 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 352 in > `main_loop'' 30 > /opt/puppet/lib/ruby/1.8/phusion_passenger/abstract_server.rb 196 in > `start_synchronously'' 31 > /opt/puppet/lib/phusion_passenger/passenger-spawn-server 61 >-- 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/-/8nnH5GY_I_IJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.