Skip to content

Instantly share code, notes, and snippets.

@hby
Created August 7, 2014 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hby/9cd99c798cea9e10f325 to your computer and use it in GitHub Desktop.
Save hby/9cd99c798cea9e10f325 to your computer and use it in GitHub Desktop.
rails server error
[ hby@Guardian ~/dev/MetaBahn/gits/cwb-rails-2 (git::dgm-works-with-frontend) ] bundle exec rails s
=> Booting Thin
=> Rails 4.1.2 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/application/configuration.rb:105:in `database_configuration': Cannot load `Rails.application.database_configuration`: (RuntimeError)
Could not load database configuration. No such file -
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.2/lib/active_record/railtie.rb:128:in `block (2 levels) in <class:Railtie>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.2/lib/active_record/base.rb:326:in `<module:ActiveRecord>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.2/lib/active_record/base.rb:23:in `<top (required)>'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/app/models/cwb/account.rb:4:in `<module:CWB>'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/app/models/cwb/account.rb:3:in `<top (required)>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:443:in `load'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:443:in `block in load_file'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:633:in `new_constants_in'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:442:in `load_file'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:342:in `require_or_load'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:480:in `load_missing_constant'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:180:in `const_missing'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/spec/factories/accounts.rb:2:in `block in <top (required)>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `instance_eval'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:49:in `run'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/syntax/default.rb:7:in `define'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/spec/factories/accounts.rb:1:in `<top (required)>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:241:in `load'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:241:in `block in load'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/dependencies.rb:241:in `load'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:20:in `block (2 levels) in find_definitions'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:19:in `each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:19:in `block in find_definitions'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:15:in `each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl-4.4.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/factory_girl_rails-4.4.1/lib/factory_girl_rails/railtie.rb:21:in `block in <class:Railtie>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:36:in `call'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:44:in `each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.2/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/application/finisher.rb:64:in `block in <module:Finisher>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/initializable.rb:30:in `run'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/application.rb:300:in `initialize!'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/config/environment.rb:5:in `<top (required)>'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/config.ru:3:in `require'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/config.ru:3:in `block in <main>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/config.ru:in `new'
from /Users/hby/dev/MetaBahn/gits/cwb-rails-2/config.ru:in `<main>'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/server.rb:50:in `app'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/server.rb:67:in `start'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/hby/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/railties-4.1.2/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'
[ hby@Guardian ~/dev/MetaBahn/gits/cwb-rails-2 (git::dgm-works-with-frontend) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment