I tried to implement logging and sign up with devise, omniauth and facebook. Now it looks like the facebook implementation works but whenever I try to log in the hroku site through facebook, it renders an error and says: "Check your logs.
Here are my logs:
2015-05-17T18:23:35.994186+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:144:in `call' 2015-05-17T18:23:35.994189+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/handler/webrick.rb:60:in `service' 2015-05-17T18:23:35.994188+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/content_length.rb:14:in `call' 2015-05-17T18:23:35.994191+00:00 app[web.1]: vendor/ruby- 2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' 2015-05- 17T18:23:35.994193+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/server.rb:295:in `block in start_thread'
2015-05-17T18:23:35.994192+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2015-05-17T18:23:35.994194+00:00 app[web.1]:
2015-05-17T18:23:35.994195+00:00 app[web.1]:
2015-05-17T18:25:56.190647+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=unstarv.herokuapp.com request_id=e7b2dd76-e168-4266-9937-7043f922 1f fwd="158.222.193.118" dyno=web.1 connect=1ms service=3ms status=304 bytes=133 2015-05-17T18:26:04.445519+00:00 heroku[router]: at=info method=GET path="/users/auth/facebook" host=unstarv.herokuapp.com request_id=b8db408e-b809-4c7a-a0d1-a43c84cd4b0c fwd="158.222.193.118" dyno=web.1 connect=2ms service=7ms status=302 bytes=2216 2015-05 17T18:26:04.568894+00:00 app[web.1]: Started GET "/users/auth/facebook" for 158.222.193.118 at 2015-05-17 18:26:04 +0000 2015-05 17T18:26:04.777296+00:00 app[web.1]: Started GET "/users/auth/facebook" for 158.222.193.118 at 2015-05-17 18:26:04 +0000 2015-05-17T18:26:04.570840+00:00 app[web.1]: (facebook) Request phase initiated. 2015-05-17T18:26:04.778818+00:00 app[web.1]: (facebook) Request phase initiated.
2015-05-17T18:26:04.653315+00:00 heroku[router]: at=info method=GET path="/users/auth/facebook" host=unstarv.herokuapp.com request_id=ae31cf01-31f1-49bc-ac48-e75ef6adc128 fwd="158.222.193.118" dyno=web.1 connect=0ms service=6ms status=302 bytes=2216 2015-05-17T18:26:05.068973+00:00 app[web.1]: Started GET"/users/auth/facebook/callback code=AQAcbQnJ0PzHQ3V4VXBUiFGM9XLOU69rdc1DyFcgNMOl0g5tVJgjJEoyrzjZFf552LkokSwjx-yelsbi8JIfwIWMrZp-mg0e8APWaOY1PhxWMe9---Nc_dsqpf7xVVScoRW RxHeByV553pCt7a8DWxErbBphKE1ZXT7jEK0oTmDDzocYycNwVTD8UAbrPl6PuLMYo6DAYsnkYtJbo21fnaskFyrHbKHrIbtGFKVpMGPPwD8k1aqx720LK4V2DOG_wLoeCQoQv2yBsHEBxr_tMFgE6UR1pCjPvUglQPqlxX7zU0bh4o_AfppcOpQ&state=ed94cae9b2066f6b0823907259f6df3f166a18cd5bc39674" for 158.222.193.118 at 2015-05-17 18:26:05 +0000 2015 0517T18:26:05.070832+00:00 app[web.1]: (facebook) Callback phaseinitiated
2015-05-17T18:26:05.344081+00:00 app[web.1]: Processing by OmniauthCallbacksController#facebook as HTML 2015-05-17T18:26:05.344091+00:00 app[web.1]: Parameters: {"code"=>"AQAcbQnJ0PzHQ3V4VXBUiFGM9XLOU69rdc1DyFcgNMOl0g5tVJgjJEoyrzjZFf552LkokSwjx-yelsbi8JIfwIWMrZp-mg0e8APWaOY1PhxWMe9--BKzcCHRfqu2h1P5WwMwSjUpN70t_PuHpafIuQh2bYvkjEbNNi1-Nc_dsqpf7xVVScoRW-RxHeByV553pCt7a8DWxErbBphKE1ZXT7jEK0oTmDDzocYycNwVTD8UAbrPl6PuLMYo6DAYsnkYtJbo21fnaskFyrHbKHrIbtGFKVpMGPPwD8k1aqx720LK4V2DOG_wLoeCQoQv2yBsHEBxr_tMFgE6UR1pCjPvUglQPqlxX7zU0bh4o_AfppcOpQ","state"=>"ed94cae9b2066f6b0823907259f6df3f166a18cd5bc39674"} 2015-05-17T18:26:05.355010+00:00 app[web.1]: Completed 500 Internal Server Errorin 11ms 2015-05-17T18:26:05.230943+00:00 heroku[router]: at=info method=GET path="/users/auth/facebook/callback?code=AQAcbQnJ0PzHQ3V4VXBUiFGM9XLOU69rdc1DyFcgNMOl0g5tVJgjJEoyrzjZFf552LkokSwjx-yelsbi8JIfwIWMrZp-mg0e8APWaOY1PhxWMe9--BKzcCHRfqu2h1P5WwMwSjUpN70t_PuHpafIuQh2bYvkjEbNNi1-Nc_dsqpf7xVVScoRW-RxHeByV553pCt7a8DWxErbBphKE1ZXT7jEK0oTmDDzocYycNwVTD8UAbrPl6PuLMYo6DAYsnkYtJbo21fnaskFyrHbKHrIbtGFKVpMGPPwD8k1aqx720LK4V2DOG_wLoeCQoQv2yBsHEBxr_tMFgE6UR1pCjPvUglQPqlxX7zU0bh4o_AfppcOpQ&state=ed94cae9b2066f6b0823907259f6df3f166a18cd5bc39674" host=unstarv.herokuapp.com request_id=47ffd209-44db-44b0-b772-02a987639e25 fwd="158.222.193.118" dyno=web.1 connect=1ms service=292ms status=500 bytes=1754 2015-05-17T18:26:05.357087+00:00 app[web.1]: 2015-05-17T18:26:05.357089+00:00 app[web.1]: NoMethodError (undefined method `current_sign_in_at' for<User:0x007f134796b0e8>):20150517T18:26:05.357091+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activemodel-4.1.8/lib/active_model/attribute_methods.rb:435:in `method_missing'2015-05-17T18:26:05.357092+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord4.1.8/lib/active_record/attribute_methods.rb:213:in `method_missing' 2015-05-17T18:26:05.357093+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/models/trackable.rb:19:in `update_tracked_fields'2015-05-17T18:26:05.357095+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/models/trackable.rb:32:in `update_tracked_fields!'2015-05-17T18:26:05.357096+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/hooks/trackable.rb:7:in `block in <top (required)>'2015-05-17T18:26:05.357098+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `call'
2015-05-17T18:26:05.357099+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `block in _run_callbacks'2015-05-17T18:26:05.357100+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `each'2015 05-17T18:26:05.357101+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/warden- 1.2.3/lib/warden/hooks.rb:9:in `_run_callbacks'2015-05n17T18:26:05.357102+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/warden1.2.3/lib/warden/manager.rb:53:in `_run_callbacks'
2015-05-17T18:26:05.357104+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:179:in `set_user'2015-05-17T18:26:05.357105+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise3.4.1/lib/devise/controllers/sign_in_out.rb:43:in `sign_in'2015-05-17T18:26:05.357106+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise3.4.1/lib/devise/controllers/helpers.rb:235:in `sign_in_and_redirect'2015-05-17T18:26:05.357107+00:00 app[web.1]: (eval):6:in `facebook' 2015-05-17T18:26:05.357109+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'2015-05-17T18:26:05.357110+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/abstract_controller/base.rb:189:in `process_action'2015-05-17T18:26:05.357113+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/rendering.rb:10:in `process_action' 2015-05-17T18:26:05.357114+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack/4.1.8/lib/abstract_controller/callbacks.rb:20:in `block in process_action'2015-05-17T18:26:05.357115+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/activesupport 4.1.8/lib/active_support/callbacks.rb:113:in `call'2015-05-17T18:26:05.357116+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:113:in `call'2015-05-17T18:26:05.357118+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:229:in `block in halting'2015-05-17T18:26:05.357119+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:229:in `call'2015-05-17T18:26:05.357121+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:229:in `block in halting' 2015-05-17T18:26:05.357122+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport/4.1.8/lib/active_support/callbacks.rb:166:in `call' 2015-05-17T18:26:05.357123+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-05-17T18:26:05.357124+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `call' \
2015-05-17T18:26:05.357125+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-05-17T18:26:05.357127+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:166:in `call' 2015-05-17T18:26:05.357128+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'2015-05-17T18:26:05.357129+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:166:in `call'
2015-05-17T18:26:05.357130+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-05-17T18:26:05.357131+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:166:in `call 2015-05-17T18:26:05.357132+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:166:in `block in halting'
2015-05-17T18:26:05.357134+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:86:in `call'
2015-05-17T18:26:05.357135+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/callbacks.rb:86:in `run_callbacks'
2015-05-17T18:26:05.357136+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-05-17T18:26:05.357137+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-05-17T18:26:05.357138+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' 2015-05-17T18:26:05.357139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/notifications.rb:159:in `block in instrument
'2015-05-17T18:26:05.357144+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-05-17T18:26:05.357145+00:00 app[web.1]:vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/notifications.rb:159:in `instrument'
2015-05-17T18:26:05.357146+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-05-17T18:26:05.357148+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'2015-05-17T18:26:05.357149+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord4.1.8/lib/active_record/railties/controller_runtime.rb:18:in `process_action'2015-05-17T18:26:05.357150+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/base.rb:136:in `process'2015-05-17T18:26:05.357151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionview4.1.8/lib/action_view/rendering.rb:30:in `process'2015-05-17T18:26:05.357152+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal.rb:196:in `dispatch'2015-05-17T18:26:05.357153+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'2015-05-17T18:26:05.357154+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal.rb:232:in `block in action'
2015-05-17T18:26:05.357156+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:82:in `call'
2015-05-17T18:26:05.357157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
2015-05-17T18:26:05.357158+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/routing/route_set.rb:50:in `call' 2015-05-17T18:26:05.357159+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/routing/mapper.rb:45:in `call'2015-05-17T18:26:05.357161+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/journey/router.rb:73:in `block in call'2015-05-17T18:26:05.357162+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/journey/router.rb:59:in `each'
2015-05-17T18:26:05.357163+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/journey/router.rb:59:in `call' 2015-05-17T18:26:05.357164+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/routing/route_set.rb:678:in `call'
2015-05-17T18:26:05.357165+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:404:in `call_app!'
2015-05-17T18:26:05.357166+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:362:in `callback_phase'
2015-05-17T18:26:05.357168+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-oauth2-1.3.0/lib/omniauth/strategies/oauth2.rb:75:in `callback_phase'
2015-05-17T18:26:05.357169+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauthfacebook2.0.1/lib/omniauth/strategies/facebook.rb:73:in `block in callback_phase'
2015-05-17T18:26:05.357170+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauthfacebook2.0.1/lib/omniauth/strategies/facebook.rb:136:in `with_authorization_code!'
2015-05-17T18:26:05.357171+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-facebook2.0.1/lib/omniauth/strategies/facebook.rb:72:in `callback_phase'
2015-05-17T18:26:05.357173+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:227:in `callback_call' 2015-05-17T18:26:05.357174+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:184:in `call!'
2015-05-17T18:26:05.357175+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2015-05-17T18:26:05.357176+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
2015-05-17T18:26:05.357177+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2015-05-17T18:26:05.357178+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-05-17T18:26:05.357180+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-05-17T18:26:05.357181+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/etag.rb:23:in `call'
2015-05-17T18:26:05.357182+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/conditionalget.rb:25:in `call'
2015-05-17T18:26:05.357183+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/head.rb:11:in `call'
2015-05-17T18:26:05.357184+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-05-17T18:26:05.357185+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/flash.rb:254:in `call'
2015-05-17T18:26:05.357187+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/session/abstract/id.rb:225:in `context'
2015-05-17T18:26:05.357188+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/session/abstract/id.rb:220:in `call'
2015-05-17T18:26:05.357189+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-05-17T18:26:05.357190+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord4.1.8/lib/active_record/query_cache.rb:36:in `call'
2015-05-17T18:26:05.357194+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2015-05-17T18:26:05.357196+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-05-17T18:26:05.357197+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:82:in `run_callbacks'
2015-05-17T18:26:05.357198+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-05-17T18:26:05.357199+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2015-05-17T18:26:05.357200+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2015-05-17T18:26:05.357201+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2015-05-17T18:26:05.357202+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:38:in `call_app'
2015-05-17T18:26:05.357204+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:20:in `block in call'
2015-05-17T18:26:05.357205+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-05-17T18:26:05.357206+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-05-17T18:26:05.357207+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-05-17T18:26:05.357208+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:20:in `call'
2015-05-17T18:26:05.357209+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-05-17T18:26:05.357211+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/methodoverride.rb:21:in `call'
2015-05-17T18:26:05.357212+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/runtime.rb:17:in `call'
2015-05-17T18:26:05.357213+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport4.1.8/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2015-05-17T18:26:05.357214+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack4.1.8/lib/action_dispatch/middleware/static.rb:84:in `call'
2015-05-17T18:26:05.357215+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/sendfile.rb:112:in `call'
2015-05-17T18:26:05.357216+00:00 app
in `call'
2015-05-17T18:26:05.357217+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:144:in `call'
2015-05-17T18:26:05.357219+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/lock.rb:17:in `call'
2015-05-17T18:26:05.357220+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/content_length.rb:14:in `call'
2015-05-17T18:26:05.357221+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.3/lib/rack/handler/webrick.rb:60:in `service'
2015-05-17T18:26:05.357222+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2015-05-17T18:26:05.357223+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2015-05-17T18:26:05.357224+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2015-05-17T18:26:05.357225+00:00 app[web.1]:
2015-05-17T18:26:05.357226+00:00 app[web.1]:
2015-05-17T18:26:05.361104+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=unstarv.herokuapp.com request_id=a24209c3-7d23-487c-b67b-b729060cb473 fwd="158.222.193.118" dyno=web.1 connect=0ms service=6ms status=304 bytes=133
The root of your problem is here:
undefined method `current_sign_in_at' for<User:0x007f134796b0e8>):20150517T18:26:05.357091+00:00 app[web.1]:
I would guess that you haven't migrated your database to contain that field as the User object is there but the field/method is not.
gem 'rails', '3.2.12'
gem "devise", "~> 2.2.4"
Ruby : ruby 1.9.3dev (2011-09-23 revision 33323) [i686-linux]
I tried every possible alternative/combination I could find on web but facing am unable to get rid of this error: Errno::ECONNREFUSED (Connection refused - connect(2)) on Heroku.
I used the sendgrid credentials on development environment and they are working and mails are delivered successfully.However on Heroku only I am facing the error.
I am able to successfully telnet to smtp.sendgrid.net at port 587 as well as 25.
Please find the config/code snippets below I have in place.
/config/settings.yml
app_name: 'DemoApp'
default_host: <%= ENV['DEFAULT_HOST'] %>
# Mail settings.
mail:
address: <%= ENV['MAIL_ADDRESS'] %>
port: <%= ENV['MAIL_PORT'] %>
domain: <%= ENV['MAIL_DOMAIN'] %>
user_name: <%= ENV['MAIL_USER_NAME'] %>
password: <%= ENV['MAIL_PASSWORD'] %>
/config/production.rb
.....
.....
.....
# Settings is available as part of 'rails_config' gem
config.action_mailer.default_url_options = { host: Settings.default_host }
if Settings.try(:mail)
config.action_mailer.smtp_settings = {
address: Settings.mail.try(:address),
port: Settings.mail.try(:port),
domain: Settings.mail.try(:domain),
user_name: Settings.mail.try(:user_name),
password: Settings.mail.try(:password),
authentication: "plain",
enable_starttls_auto: true
}
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
end
.....
.....
/config/initializers/devise.rb
config.mailer_sender = Settings.try(:mail).try(:user_name)
Heroku Config
$ heroku config
=== APP Config Vars
DATABASE_URL: <DB_URL>
DEFAULT_HOST: app-demo.herokuapp.com
HEROKU_POSTGRESQL_RED_URL: <DB_URL>
MAIL_ADDRESS: smtp.sendgrid.net
MAIL_DOMAIN: heroku.com
MAIL_PASSWORD: <SENDGRID_PASSWORD>
MAIL_PORT: 587
MAIL_USER_NAME: <SENDGRID_USER_NAME>
SENDGRID_PASSWORD: <SENDGRID_PASSWORD>
SENDGRID_USERNAME: <SENDGRID_USER_NAME>
Heroku Logs
$ heroku logs -t
2013-08-13T08:52:17.722266+00:00 app[web.1]: ==========DEVISE: app17470133#heroku.com
...
...
..
2013-08-13T08:38:59.948734+00:00 app[web.1]:
2013-08-13T08:38:59.948734+00:00 app[web.1]: Sent mail to <USER_EMAIL> (15ms)
2013-08-13T08:38:59.950628+00:00 app[web.1]: Completed 500 Internal Server Error in 229ms
2013-08-13T08:38:59.954292+00:00 app[web.1]:
2013-08-13T08:38:59.954292+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:540:in `initialize'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:540:in `open'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:540:in `tcp_socket'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:550:in `block in do_start'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:549:in `do_start'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/net/smtp.rb:519:in `start'
2013-08-13T08:38:59.954292+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/mail-2.4.4/lib/mail/message.rb:2034:in `do_delivery'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/mail-2.4.4/lib/mail/message.rb:229:in `block in deliver'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionmailer-3.2.12/lib/action_mailer/base.rb:415:in `block in deliver_mail'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:in `block in instrument'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:in `instrument'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionmailer-3.2.12/lib/action_mailer/base.rb:413:in `deliver_mail'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/mail-2.4.4/lib/mail/message.rb:229:in `deliver'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-2.2.6/lib/devise/models/authenticatable.rb:175:in `send_devise_notification'
2013-08-13T08:38:59.954463+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-2.2.6/lib/devise/models/confirmable.rb:147:in `send_on_create_confirmation_instructions'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:416:in `_run__41454324238886340__create__57294411159809650__callbacks'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:268:in `create'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/persistence.rb:348:in `create_or_update'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:264:in `block in create_or_update'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:403:in `_run__41454324238886340__save__57294411159809650__callbacks'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-08-13T08:38:59.954623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:264:in `create_or_update'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/persistence.rb:84:in `save'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/validations.rb:50:in `save'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:22:in `save'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:in `transaction'
2013-08-13T08:38:59.955010+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:259:in `block in save'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/transactions.rb:258:in `save'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-2.2.6/app/controllers/devise/registrations_controller.rb:15:in `create'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/abstract_controller/base.rb:167:in `process_action'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/rendering.rb:10:in `process_action'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:436:in `_run__153182135430758755__process_action__3441329268483705872__callbacks'
2013-08-13T08:38:59.955157+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/abstract_controller/callbacks.rb:17:in `process_action'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/rescue.rb:29:in `process_action'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:in `block in instrument'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/notifications.rb:123:in `instrument'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2013-08-13T08:38:59.955444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/abstract_controller/base.rb:121:in `process'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/abstract_controller/rendering.rb:45:in `process'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal.rb:203:in `dispatch'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_controller/metal.rb:246:in `block in action'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:73:in `call'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:36:in `call'
2013-08-13T08:38:59.955593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/mapper.rb:42:in `call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:601:in `call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
2013-08-13T08:38:59.955882+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/head.rb:14:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/flash.rb:242:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/cookies.rb:341:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/query_cache.rb:64:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-08-13T08:38:59.956030+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `_run__2319839898307092388__call__57294411159809650__callbacks'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/rack/logger.rb:32:in `call_app'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:in `block in call'
2013-08-13T08:38:59.956315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/rack/logger.rb:16:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'
2013-08-13T08:38:59.956460+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/engine.rb:479:in `call'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application.rb:223:in `call'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/rack/log_tailer.rb:17:in `call'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-13T08:38:59.956749+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-13T08:38:59.956897+00:00 app[web.1]:
2013-08-13T08:38:59.956897+00:00 app[web.1]:
Thanks,
Jignesh
Following is the solution which worked:
Moved ActionMailer SMTP settings and default_url_options to a initializer file:
/config/initializers/smtp.rb
# Settings is available as part of 'rails_config' gem
ActionMailer::Base.default_url_options = { host: Settings.default_host }
if Settings.try(:mail)
ActionMailer::Base.smtp_settings = {
address: Settings.mail.try(:address),
port: Settings.mail.try(:port),
domain: Settings.mail.try(:domain),
user_name: Settings.mail.try(:user_name),
password: Settings.mail.try(:password),
authentication: :plain,
enable_starttls_auto: true
}
end
In the environment files (config/development.rb, config/production.rb) kept just the delivery specific config:
config/production.rb
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
A million ton thanks to #swift for providing his guidance here: https://stackoverflow.com/a/11583287/936494
Thanks,
Jignesh
I'm begginer at Rails. I want to deploy my project at heroku.com. I use SqLite, but heroku doesn't support it. So, I try to move my project to MySQL. I did this instructions :Convert a Ruby on Rails app from sqlite to MySQL?
But, heroku says something like this: we're sorry, but something went wrong. Can you help me?
This is my gemfile:
source 'https://rubygems.org'
gem 'pg'
gem 'rails', '3.2.12'
gem 'gravatar_image_tag', '1.0.0.pre2'
gem "will_paginate", :git => "https://github.com/p7r/will_paginate.git", :branch => "rails3"
gem 'yaml_db', :git => 'git://github.com/ludicast/yaml_db.git'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'faker', '0.3.1'
gem 'sqlite3-ruby', :require => 'sqlite3'
end
group :production do
gem "mysql2", "~> 0.3.11"
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :test do
gem 'rspec-rails', '2.6.1'
gem 'webrat', '0.7.1'
end
This is my database.yml file:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: myapp_development
pool: 5
username: root
password: "0761"
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: myapp_test
pool: 5
username: root
password: "0761"
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: myapp_production
pool: 5
username: root
password: "0761"
And here is my logs:
2013-03-26T13:11:32+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:11:32+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:11:37+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-03-26T13:11:37+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-03-26T13:11:38+00:00 app[web.1]: => Call with -d to detach
2013-03-26T13:11:38+00:00 app[web.1]: => Booting WEBrick
2013-03-26T13:11:38+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-26T13:11:38+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-26T13:11:38+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:33768
2013-03-26T13:11:39+00:00 app[web.1]: [2013-03-26 13:11:39] INFO WEBrick::HTTPServer#start: pid=2 port=33768
2013-03-26T13:11:39+00:00 app[web.1]: [2013-03-26 13:11:39] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-26T13:11:39+00:00 app[web.1]: [2013-03-26 13:11:39] INFO WEBrick 1.3.1
2013-03-26T13:11:39+00:00 heroku[web.1]: Process exited with status 137
2013-03-26T13:11:40+00:00 heroku[web.1]: State changed from starting to up
2013-03-26T13:11:59+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:11:59 +0000
2013-03-26T13:11:59+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:11:59+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (8.8ms)
2013-03-26T13:11:59+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.3ms)
2013-03-26T13:11:59+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=3ms service=304ms status=500 bytes=643
2013-03-26T13:11:59+00:00 app[web.1]: Completed 500 Internal Server Error in 136ms
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: Rendered layouts/_menu.html.erb (51.2ms)
2013-03-26T13:11:59+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:11:59+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:11:59+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:11:59+00:00 app[web.1]: ^
2013-03-26T13:11:59+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:11:59+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:11:59+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:11:59+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:11:59+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:11:59+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:11:59+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:11:59+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:11:59+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:11:59+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:11:59+00:00 app[web.1]: ):
2013-03-26T13:11:59+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:11:59+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:11:59+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:11:59+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:11:59+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__1283683624385357693_38228720'
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb__3258341653661936969_33454780'
2013-03-26T13:12:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=16ms connect=35ms service=33ms status=200 bytes=0
2013-03-26T13:25:17+00:00 heroku[slugc]: Slug compilation started
2013-03-26T13:25:50+00:00 heroku[api]: Release v14 created by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[api]: Deploy 7a646d5 by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[web.1]: State changed from up to starting
2013-03-26T13:25:51+00:00 heroku[slugc]: Slug compilation finished
2013-03-26T13:25:51+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 59776`
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:57+00:00 app[web.1]: => Booting WEBrick
2013-03-26T13:25:57+00:00 app[web.1]: => Call with -d to detach
2013-03-26T13:25:57+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-26T13:25:57+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-26T13:25:57+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick::HTTPServer#start: pid=2 port=59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick 1.3.1
2013-03-26T13:25:58+00:00 heroku[web.1]: State changed from starting to up
2013-03-26T13:25:59+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:25:59 +0000
2013-03-26T13:26:00+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:26:00+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (29.7ms)
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.3ms)
2013-03-26T13:26:00+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:26:00+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]: ^
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_menu.html.erb (26.4ms)
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:26:00+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__3050356598751074094_29958360'
2013-03-26T13:26:00+00:00 app[web.1]: Completed 500 Internal Server Error in 99ms
2013-03-26T13:26:00+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb___3316497000915670487_28099760'
2013-03-26T13:26:00+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:26:00+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:26:00+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:26:00+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:26:00+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:26:00+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:26:00+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:26:00+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:26:00+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:26:00+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:26:00+00:00 app[web.1]: ):
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=1ms service=254ms status=500 bytes=643
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=3ms service=31ms status=200 bytes=0
root#Nikita-PC:/home/nikita/rails/invent# heroku open
Opening ancient-cliffs-5913... done
root#Nikita-PC:/home/nikita/rails/invent# heroku logs
2013-03-26T13:11:59+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__1283683624385357693_38228720'
2013-03-26T13:11:59+00:00 app[web.1]:
2013-03-26T13:11:59+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:11:59+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb__3258341653661936969_33454780'
2013-03-26T13:12:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=16ms connect=35ms service=33ms status=200 bytes=0
2013-03-26T13:25:17+00:00 heroku[slugc]: Slug compilation started
2013-03-26T13:25:50+00:00 heroku[api]: Release v14 created by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[api]: Deploy 7a646d5 by nikskalkin#gmail.com
2013-03-26T13:25:50+00:00 heroku[web.1]: State changed from up to starting
2013-03-26T13:25:51+00:00 heroku[slugc]: Slug compilation finished
2013-03-26T13:25:51+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 59776`
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:55+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-03-26T13:25:57+00:00 app[web.1]: => Booting WEBrick
2013-03-26T13:25:57+00:00 app[web.1]: => Call with -d to detach
2013-03-26T13:25:57+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-26T13:25:57+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-26T13:25:57+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick::HTTPServer#start: pid=2 port=59776
2013-03-26T13:25:57+00:00 app[web.1]: [2013-03-26 13:25:57] INFO WEBrick 1.3.1
2013-03-26T13:25:58+00:00 heroku[web.1]: State changed from starting to up
2013-03-26T13:25:59+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:25:59 +0000
2013-03-26T13:26:00+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:26:00+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (29.7ms)
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.3ms)
2013-03-26T13:26:00+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:26:00+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]: ^
2013-03-26T13:26:00+00:00 app[web.1]: Rendered layouts/_menu.html.erb (26.4ms)
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:26:00+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__3050356598751074094_29958360'
2013-03-26T13:26:00+00:00 app[web.1]: Completed 500 Internal Server Error in 99ms
2013-03-26T13:26:00+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:26:00+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb___3316497000915670487_28099760'
2013-03-26T13:26:00+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:26:00+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:26:00+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:26:00+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]:
2013-03-26T13:26:00+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:26:00+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:26:00+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:26:00+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:26:00+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:26:00+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:26:00+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:26:00+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:26:00+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:26:00+00:00 app[web.1]: ):
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=1ms service=254ms status=500 bytes=643
2013-03-26T13:26:00+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=3ms service=31ms status=200 bytes=0
2013-03-26T13:25:53+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-03-26T13:25:54+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-03-26T13:25:54+00:00 app[web.1]: [2013-03-26 13:25:54] ERROR SignalException: SIGTERM
2013-03-26T13:26:04+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-03-26T13:26:04+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-03-26T13:26:06+00:00 heroku[web.1]: Process exited with status 137
2013-03-26T13:29:30+00:00 app[web.1]: Started GET "/" for 46.72.99.61 at 2013-03-26 13:29:30 +0000
2013-03-26T13:29:30+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.0ms)
2013-03-26T13:29:30+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-26T13:29:30+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (0.0ms)
2013-03-26T13:29:30+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:29:30+00:00 app[web.1]: ^
2013-03-26T13:29:30+00:00 app[web.1]: Rendered layouts/_menu.html.erb (6.5ms)
2013-03-26T13:29:30+00:00 app[web.1]: Completed 500 Internal Server Error in 13ms
2013-03-26T13:29:30+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: relation "users" does not exist
2013-03-26T13:29:30+00:00 app[web.1]:
2013-03-26T13:29:30+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2013-03-26T13:29:30+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2013-03-26T13:29:30+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2013-03-26T13:29:30+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2013-03-26T13:29:30+00:00 app[web.1]: ORDER BY a.attnum
2013-03-26T13:29:30+00:00 app[web.1]: ):
2013-03-26T13:29:30+00:00 app[web.1]: 6: <ul class="nav">
2013-03-26T13:29:30+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2013-03-26T13:29:30+00:00 app[web.1]: 5: <div class="nav-collapse collapse">
2013-03-26T13:29:30+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2013-03-26T13:29:30+00:00 app[web.1]: 10: <li><%= link_to "Меню", menu_path %></li>
2013-03-26T13:29:30+00:00 app[web.1]: 9: <!--<li><%= link_to "Users", users_path %></li>-->
2013-03-26T13:29:30+00:00 app[web.1]: 11: <li><%= link_to "Заказ", "#" %></li>
2013-03-26T13:29:30+00:00 app[web.1]: app/models/user.rb:32:in `authenticate_with_salt'
2013-03-26T13:29:30+00:00 app[web.1]: app/helpers/sessions_helper.rb:13:in `current_user'
2013-03-26T13:29:30+00:00 app[web.1]: app/helpers/sessions_helper.rb:17:in `signed_in?'
2013-03-26T13:29:30+00:00 app[web.1]: 8: <% if signed_in? %>
2013-03-26T13:29:30+00:00 app[web.1]: app/helpers/sessions_helper.rb:42:in `user_from_remember_token'
2013-03-26T13:29:30+00:00 app[web.1]: 7: <li class="active"><%= link_to "Главная", home_path %></li>
2013-03-26T13:29:30+00:00 app[web.1]:
2013-03-26T13:29:30+00:00 app[web.1]:
2013-03-26T13:29:30+00:00 app[web.1]: app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb__3050356598751074094_29958360'
2013-03-26T13:29:30+00:00 app[web.1]: app/views/layouts/_menu.html.erb:8:in `_app_views_layouts__menu_html_erb___3316497000915670487_28099760'
2013-03-26T13:29:30+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 connect=10ms service=9ms status=304 bytes=0
2013-03-26T13:29:30+00:00 heroku[router]: at=info method=GET path=/ host=ancient-cliffs-5913.herokuapp.com fwd="46.72.99.61" dyno=web.1 queue=0 wait=0ms connect=1ms service=34ms status=500 bytes=643
Update
I can use only MySQL. My project is testing task for internship of one company i'm looking for. And they said me to use MySql in project.
Heroku is really designed to run PostgreSQL as its database engine, not MySQL. You actually have the postgresql gem installed (pg). The error you're getting is related to accessing the database (specifically the users table).
While it is possible to run MySQL on Heroku as a new user I'd recommend just working with postgresql instead, as it's much easier to set up and you won't have to worry about installing additional add-ons to get it to work.
Where are you hosting your MySQL database? Make sure you db server has allowed remote access from Heroku. Amazon (AWS) is best solution once setup properly.
If you are hosting the MySQL db on your local machine for production then you will need to make sure Heroku's servers have remote access back to your computer for production.
In your Gemfile remove these lines and replace with example below.
gem 'pg'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem "mysql2", "~> 0.3.11"
I also would strongly recomend checking out https://github.com/laserlemon/figaro & http://railscasts.com/episodes/85-yaml-configuration-revised?view=comments
To Setup MySQL on AWS:
Update Gemfile with correct db gems
Update database.yml connection settings
Install Heroku toolbelt https://toolbelt.heroku.com/
Sign up for AWS hosted MySQL http://aws.amazon.com/rds/
Amazon requires you to grant access from both your local machine’s WAN IP & you will also need to grant Heroku’s application servers authorized access for production.
SignIn to AWS via http://console.aws.amazon.com/
Go to "Services" > "RDS"
Under left menu "Navigation/Databases" > "DB Security Groups" > "default"
Add CIDR/IP: #.#.#.# (your local pc ip http://www.whatsmyip.us/)
Add EC2 Security Group (this is heroku aws id)
aws account id: "098166147350"
ec2 security group: "default"
Setup AWS RDS MySQL Database on Heroku
Confirm Heroku is Granted AWS RDS Remote Access
$ cd myAppDir
$ heroku login
$ heroku config:get DATABASE_URL
$ heroku addons:add amazon_rds url=mysql2://masteruser:pass#dbinstance.123endpoint321.amazonaws.com/databasename
$ heroku config:get DATABASE_URL
Confirm New Database Settings
Gemfile ~ Don't forget $ bundle install & $ bundle update
# ===~===~===~===~===~===~===~===~===~===
group :development do
gem 'mysql2'
end
# ===~===~===~===~===~===~===~===~===~===
group :production do
# gem 'pg'
gem 'mysql2'
end
# ===~===~===~===~===~===~===~===~===~===
group :test do
gem 'sqlite3'
# gem 'mysql2'
end
# ===~===~===~===~===~===~===~===~===~===
database.yml ~ Examples of each type of db connection.
# AWS RDS ~~~~~~~~~~~~~~~~
development:
adapter: mysql2
encoding: utf8
host: dbinstance.123endpoint789.us-east-1.rds.amazonaws.com
database: appdb_dev
pool: 5
username: masterusername
password: password
socket: /tmp/mysql.sock
# ~~~~~~~~~~~~~~~~~~~~~~~~
# MySQL localhost ~~~~~~~~
# development:
# adapter: mysql2
# encoding: utf8
# database: erics_rails_app_dev
# pool: 5
# username: root
# password:
# socket: /tmp/mysql.sock
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# HEROKU ~~~~~~~~~~~~~~~~~
# Note: On Heroku production this (over)written on deployment.
production:
adapter: pg
database: localhost
timeout: 5000
# ORIGINAL TEST ~~~~~~~~~~~~~~~
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
MySQL WorkBench Settings ~ http://dev.mysql.com/downloads/workbench/
* hostname = dbinstance.123endpoint789.us-east-1.rds.amazonaws.com
* user = masterusername
* pass = password
* port = 3306
Do you have a mysql addon for the app?
Heroku provides you with a Postgres database by default but if you want to use another database type aka mysql then you will need to use an addon. There may be a free solution in the addons i'm not sure.
When you deploy your application to Heroku they override your database.yml file pointing it to the correct database url.
First heroku provides you a PostgreSQL database for your app, edit your Gemfile
and add gem 'pg'
also it uses thin as server so add
gem 'thin'
chage your Database.yml as for all enviromments
adapter: PostgreSQL
encoding: utf8
reconnect: false
database: myapp_production
pool: 5
username: root
password: "0761"
Remove the mysql gem from your production environment. Heroku doesn't support sqlite databases. Use postgres in production. Your gemfile should look something like this:
group :production do
gem "pg" # move your pg gem inside here
end
group :development, :test do
gem "sqlite3"
end
Change your gemfile to reflect the above, run $ bundle to bundle then new gems, add and commit your changes and push them to heroku.
This will allow you to use sqlite in development and test, and postgresql in production, which heroku requires.
I have problem in my heroku app, I am trying to send email using my Godaddy email account, here is my settings in the environment/production.rb:
config.active_support.deprecation = :notify
config.action_mailer.default_url_options = { :host => 'coursebuilder2.heroku.com' }
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtpout.secureserver.net",
:port => 25,
:user_name => "myemail#domain.com",
:password => "password",
:authentication => :login
}
config.action_mailer.raise_delivery_errors = true
but, here is what I get:
Rendered instructors/mailer/confirmation_instructions.html.erb (1.1ms)
Completed 500 Internal Server Error in 666ms
SocketError (getaddrinfo: Name or service not known):
cache: [POST /instructors] invalidate, pass
So, what's I am missing here ?
EDIT
I have fixed the settings above, but, now, I have a timeout error below:
2012-03-04T04:44:20+00:00 app[web.1]: Rendered instructors/mailer/confirmation_instructions.html.erb (0.4ms)
2012-03-04T04:44:50+00:00 heroku[router]: Error H12 (Request timeout) -> POST coursebuilder2.herokuapp.com/instructors dyno=web.1 queue= wait= service=30000ms status=503 bytes=0
2012-03-04T04:45:20+00:00 app[web.1]: Completed 500 Internal Server Error in 60414ms
2012-03-04T04:45:20+00:00 app[web.1]:
2012-03-04T04:45:20+00:00 app[web.1]:
2012-03-04T04:45:20+00:00 app[web.1]: Timeout::Error (Timeout::Error):
2012-03-04T04:45:20+00:00 app[web.1]:
2012-03-04T04:45:20+00:00 app[web.1]:
2012-03-04T04:45:20+00:00 app[web.1]: cache: [POST /instructors] invalidate, pass
Any one can advice ?
That looks like you're using the wrong connection details to GoDaddy - to be honest, I'd be inclined to use the SendGrid free addon which is widely used and documented.
I'm using Heroku for the first time and am having a weird issue. I've pushed my app, but when I look at it, all I see is a few lines of irb code. Specifically:
<%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %> <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %> <%= csrf_meta_tag %> <%= yield :head %>
MyApp
<% if request.path == "/login" %>
<%= link_to "Sign Up", {:controller =>"users", :action => "new"}, {:id => 'login'} %>
<% else %>
<%= link_to "Log In", {:controller =>"sessions", :action => "new"}, {:id => 'login'} %>
<% end %>
I added a ticket to Heroku but am wondering if anyone here experienced something similar or had an idea as to what's happening. Here's what I see in my heroku logs:
2011-12-01T04:14:08+00:00 app[web.1]: app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb__1168280325920812315_38229020_2540660988792494126'
2011-12-01T04:14:08+00:00 app[web.1]:
2011-12-01T04:14:08+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (3.2ms)
2011-12-01T04:17:46+00:00 heroku[slugc]: Slug compilation started
2011-12-01T04:17:57+00:00 heroku[api]: Deploy e4c58ef by myemail#email.com
2011-12-01T04:17:57+00:00 heroku[api]: Release v14 created by myemail#email.com
2011-12-01T04:17:57+00:00 heroku[web.1]: State changed from up to bouncing
2011-12-01T04:17:57+00:00 heroku[web.1]: State changed from bouncing to created
2011-12-01T04:17:59+00:00 heroku[web.1]: State changed from created to starting
2011-12-01T04:18:00+00:00 heroku[slugc]: Slug compilation finished
2011-12-01T04:18:02+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 43194`
2011-12-01T04:18:10+00:00 app[web.1]: [2011-12-01 04:18:10] INFO WEBrick 1.3.1
2011-12-01T04:18:10+00:00 app[web.1]: [2011-12-01 04:18:10] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2011-12-01T04:18:10+00:00 app[web.1]: [2011-12-01 04:18:10] INFO WEBrick::HTTPServer#start: pid=1 port=43194
2011-12-01T04:18:11+00:00 heroku[web.1]: State changed from starting to up
2011-12-01T04:18:13+00:00 app[web.1]: => Booting WEBrick
2011-12-01T04:18:13+00:00 app[web.1]: => Rails 3.0.5 application starting in production on http://0.0.0.0:43194
2011-12-01T04:18:13+00:00 app[web.1]: => Call with -d to detach
2011-12-01T04:18:13+00:00 app[web.1]: => Ctrl-C to shutdown server
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:18:13 +0000
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:18:13+00:00 app[web.1]: 1: <!doctype html>
2011-12-01T04:18:13+00:00 app[web.1]: 2: <head>
2011-12-01T04:18:13+00:00 app[web.1]: 3: <title>MyApp</title>
2011-12-01T04:18:13+00:00 app[web.1]: 4: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:18:13+00:00 app[web.1]: 5: <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %>
2011-12-01T04:18:13+00:00 app[web.1]: 6: <%= csrf_meta_tag %>
2011-12-01T04:18:13+00:00 app[web.1]: 7: <meta http-equiv="Content-type" content="text/html; charset=utf-8">
2011-12-01T04:18:13+00:00 app[web.1]: app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb___1242101754664979387_45511700_1336663889607024244'
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]:
2011-12-01T04:18:13+00:00 app[web.1]: Processing by UsersController#new as HTML
2011-12-01T04:18:13+00:00 app[web.1]: Rendered users/_dreamless_form.html.erb (16.9ms)
2011-12-01T04:18:13+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (34.0ms)
2011-12-01T04:18:13+00:00 app[web.1]: Completed in 107ms
2011-12-01T04:18:13+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=335ms status=500 bytes=1013
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:18:19 +0000
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:18:19+00:00 app[web.1]: 1: <!doctype html>
2011-12-01T04:18:19+00:00 app[web.1]: 2: <head>
2011-12-01T04:18:19+00:00 app[web.1]: 3: <title>MyApp</title>
2011-12-01T04:18:19+00:00 app[web.1]: 4: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:18:19+00:00 app[web.1]: 5: <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %>
2011-12-01T04:18:19+00:00 app[web.1]: 6: <%= csrf_meta_tag %>
2011-12-01T04:18:19+00:00 app[web.1]: 7: <meta http-equiv="Content-type" content="text/html; charset=utf-8">
2011-12-01T04:18:19+00:00 app[web.1]: app/views/layouts/application.html.erb:4:in `_app_views_layouts_application_html_erb___1242101754664979387_45511700_1336663889607024244'
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]:
2011-12-01T04:18:19+00:00 app[web.1]: Processing by UsersController#new as HTML
2011-12-01T04:18:19+00:00 app[web.1]: Rendered users/_dreamless_form.html.erb (2.2ms)
2011-12-01T04:18:19+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (6.0ms)
2011-12-01T04:18:19+00:00 app[web.1]: Completed in 7ms
2011-12-01T04:18:19+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=19ms status=500 bytes=1013
2011-12-01T04:26:07+00:00 heroku[slugc]: Slug compilation started
2011-12-01T04:26:22+00:00 heroku[api]: Release v15 created by myemail#email.com
2011-12-01T04:26:22+00:00 heroku[web.1]: State changed from created to starting
2011-12-01T04:26:25+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 18091`
2011-12-01T04:26:25+00:00 heroku[web.1]: Stopping process with SIGTERM
2011-12-01T04:26:25+00:00 app[web.1]: [2011-12-01 04:26:25] ERROR SignalException: SIGTERM
2011-12-01T04:26:25+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2011-12-01T04:26:32+00:00 heroku[web.1]: State changed from starting to up
2011-12-01T04:26:35+00:00 heroku[web.1]: Error R12 (Exit timeout) -> Process failed to exit within 10 seconds of SIGTERM
2011-12-01T04:26:35+00:00 heroku[web.1]: Stopping process with SIGKILL
2011-12-01T04:26:37+00:00 heroku[web.1]: Process exited
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:27:08 +0000
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:27:08+00:00 app[web.1]: 2: <html>
2011-12-01T04:27:08+00:00 app[web.1]: 3: <head>
2011-12-01T04:27:08+00:00 app[web.1]: 4: <title>MyApp</title>
2011-12-01T04:27:08+00:00 app[web.1]: 5: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:27:08+00:00 app[web.1]: 6: <!--[if IE]>
2011-12-01T04:27:08+00:00 app[web.1]: 7: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "all", :cache => true %><![endif]-->
2011-12-01T04:27:08+00:00 app[web.1]: 8: <%= javascript_include_tag "jquery.min", "jquery-ui.min", "jquery_ujs.min", "application.min" %>
2011-12-01T04:27:08+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___172990433218769450_38326520_3796609424593531670'
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]:
2011-12-01T04:27:08+00:00 app[web.1]: Processing by UsersController#new as HTML
2011-12-01T04:27:08+00:00 app[web.1]: Rendered users/_dreamless_form.html.erb (1.2ms)
2011-12-01T04:27:08+00:00 app[web.1]: Rendered users/new.html.erb within layouts/application (2.7ms)
2011-12-01T04:27:08+00:00 app[web.1]: Completed in 4ms
2011-12-01T04:27:08+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=48ms status=500 bytes=1013
2011-12-01T04:30:27+00:00 app[web.1]:
2011-12-01T04:30:27+00:00 app[web.1]:
2011-12-01T04:30:27+00:00 app[web.1]: Started GET "/" for 69.140.5.188 at 2011-12-01 04:30:27 +0000
2011-12-01T04:30:27+00:00 app[web.1]:
2011-12-01T04:30:27+00:00 app[web.1]: ActionView::Template::Error (can't convert nil into String):
2011-12-01T04:30:27+00:00 app[web.1]: 2: <html>
2011-12-01T04:30:27+00:00 app[web.1]: 3: <head>
2011-12-01T04:30:27+00:00 app[web.1]: 4: <title>MyApp</title>
2011-12-01T04:30:27+00:00 app[web.1]: 5: <%= stylesheet_link_tag "http://localhost:3000/stylesheets/style.css", :media => "screen and (min-width:481px)", :cache => true %>
2011-12-01T04:30:29+00:00 heroku[router]: GET falling-journey-6792.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=9ms status=500 bytes=1013
Per the responses in the question cited in the comments above (this one), removing :cache => true from my stylesheets did the trick.