Failed to start rails server via 'rails s' as 'email_sender' hasn't been presented by default #10

Closed
rse43 opened this Issue Jan 6, 2013 · 0 comments

Projects

None yet

2 participants

@rse43
rse43 commented Jan 6, 2013

For some reason the 'email_sender' field has not been included in the config/config.yml by default thus causing the exception while trying to start the server. I have to manually set the field and then it works fine. Stacktrace attached below.

=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/settingslogic-2.0.9/lib/settingslogic.rb:189:in `missing_key': Missing setting 'email_sender' in /Users/shuo/workspace/readio.es/config/config.yml (Settingslogic::MissingSetting)
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/settingslogic-2.0.9/lib/settingslogic.rb:117:in `method_missing'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/settingslogic-2.0.9/lib/settingslogic.rb:66:in `method_missing'
    from /Users/shuo/workspace/readio.es/config/initializers/devise.rb:7:in `block in <top (required)>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/devise-2.1.2/lib/devise.rb:247:in `setup'
    from /Users/shuo/workspace/readio.es/config/initializers/devise.rb:3:in `<top (required)>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/engine.rb:587:in `each'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/engine.rb:587:in `block in <class:Engine>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/shuo/workspace/readio.es/config/environment.rb:5:in `<top (required)>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
    from /Users/shuo/workspace/readio.es/config.ru:4:in `block in <main>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
    from /Users/shuo/workspace/readio.es/config.ru:1:in `new'
    from /Users/shuo/workspace/readio.es/config.ru:1:in `<main>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
    from /Users/shuo/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
@xdite xdite closed this Apr 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment