In production.rb I have the following single line for config.action_mailer..
config.action_mailer.default_url_options = { :host => 'secret-brushlands- 1375.herokuapp.com' }
In Development.rb I have (this seems to work BTW)
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { :host => 'localhost:3000'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {:address => "localhost", :port => 1025}
In Environment.rb I have:
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['sendgrid user'],
:password => ENV['sendgrid password'],
:domain => 'heroku.com',
:enable_starttls_auto => true
}
We're sorry, but something went wrong.
For some reason I am getting this error with my heroku app (this is only
happening with the users portion when I try to sign_up, the other model
functionality on postgresql seems to be cool) - I have done a heroku
pg:reset
heroku run rake:db:migrate, etc.. but to no avail.
Here is my gem file:
source 'https://rubygems.org'
gem 'rails', '4.1.0'
gem 'pg'
gem 'foundation-rails'
gem 'rails_12factor', group: :production
gem 'devise'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'tzinfo'
gem 'tzinfo-data'
And here is the heroku log:
2014-04-24T17:34:53.598955+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:329:in `block in
with_transact
ion_returning_status'
2014-04-24T17:34:53.598952+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/attribute_methods/dirty.rb:21:in
`save'
2014-04-24T17:34:53.598961+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/database_statemen
ts.rb:211:in `transaction'
2014-04-24T17:34:53.598957+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/database_statemen
ts.rb:211:in `block in transaction'
2014-04-24T17:34:53.598959+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/database_statemen
ts.rb:219:in `within_new_transaction'
2014-04-24T17:34:53.599212+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:326:in
`with_transaction_retur
ning_status'
2014-04-24T17:34:53.599214+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:268:in `block in save'
2014-04-24T17:34:53.599209+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:208:in `transaction'
2014-04-24T17:34:53.599215+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:283:in
`rollback_active_record
_state!'
2014-04-24T17:34:53.599228+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:229:in `block in
halting'
2014-04-24T17:34:53.599218+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/dev
ise-3.2.4/app/controllers/devise/registrations_controller.rb:15:in
`create'
2014-04-24T17:34:53.599223+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/rendering.rb:10:in
`process_action'
2014-04-24T17:34:53.599220+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
2014-04-24T17:34:53.599231+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:229:in `block in
halting'
2014-04-24T17:34:53.599217+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/transactions.rb:267:in `save'
2014-04-24T17:34:53.599224+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/callbacks.rb:20:in `block in
process_actio
n'
2014-04-24T17:34:53.599230+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:229:in `call'
2014-04-24T17:34:53.599233+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599227+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-04-24T17:34:53.599221+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/base.rb:189:in `process_action'
2014-04-24T17:34:53.599225+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call'
2014-04-24T17:34:53.599234+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599237+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599239+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599236+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599258+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `call'
2014-04-24T17:34:53.599262+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `block in
halting_and_co
nditional'
2014-04-24T17:34:53.599260+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `call'
2014-04-24T17:34:53.599263+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `call'
2014-04-24T17:34:53.599256+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599266+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:86:in `call'
2014-04-24T17:34:53.599265+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:149:in `block in
halting_and_co
nditional'
2014-04-24T17:34:53.599276+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/callbacks.rb:19:in
`process_action'
2014-04-24T17:34:53.599259+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:166:in `block in
halting'
2014-04-24T17:34:53.599268+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:86:in `run_callbacks'
2014-04-24T17:34:53.599278+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/rescue.rb:29:in
`process_action'
2014-04-24T17:34:53.599282+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/notifications/instrumenter.rb:20:in
`instrum
ent'
2014-04-24T17:34:53.599286+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/params_wrapper.rb:250:in
`process_acti
on'
2014-04-24T17:34:53.599284+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/notifications.rb:159:in `instrument'
2014-04-24T17:34:53.599281+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/notifications.rb:159:in `block in
instrument
'
2014-04-24T17:34:53.599279+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:31:in
`block in pro
cess_action'
2014-04-24T17:34:53.599322+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/railties/controller_runtime.rb:18:in
`process_
action'
2014-04-24T17:34:53.599325+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionview-4.1.0/lib/action_view/rendering.rb:30:in `process'
2014-04-24T17:34:53.599285+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/instrumentation.rb:30:in
`process_acti
on'
2014-04-24T17:34:53.599324+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/abstract_controller/base.rb:136:in `process'
2014-04-24T17:34:53.599327+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal.rb:195:in `dispatch'
2014-04-24T17:34:53.599332+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:80:in `call'
2014-04-24T17:34:53.599338+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/mapper.rb:45:in `call'
2014-04-24T17:34:53.599341+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/journey/router.rb:71:in `block in
call'
2014-04-24T17:34:53.599330+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal.rb:231:in `block in action'
2014-04-24T17:34:53.599329+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_controller/metal/rack_delegation.rb:13:in
`dispatch'
2014-04-24T17:34:53.599334+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
2014-04-24T17:34:53.599345+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `call'
2014-04-24T17:34:53.599336+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:48:in `call'
2014-04-24T17:34:53.599343+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `each'
2014-04-24T17:34:53.599347+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:676:in `call'
2014-04-24T17:34:53.599355+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/war
den-1.2.3/lib/warden/manager.rb:34:in `catch'
2014-04-24T17:34:53.599357+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/war
den-1.2.3/lib/warden/manager.rb:34:in `call'
2014-04-24T17:34:53.599363+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/head.rb:11:in `call'
2014-04-24T17:34:53.599353+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/war
den-1.2.3/lib/warden/manager.rb:35:in `block in call'
2014-04-24T17:34:53.599359+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/etag.rb:23:in `call'
2014-04-24T17:34:53.599369+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-04-24T17:34:53.599361+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/conditionalget.rb:35:in `call'
2014-04-24T17:34:53.599367+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/flash.rb:254:in `call'
2014-04-24T17:34:53.599370+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-04-24T17:34:53.599365+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/params_parser.rb:27:in
`call'
2014-04-24T17:34:53.599376+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/connection_adapters/abstract/connection_pool.r
b:621:in `call'
2014-04-24T17:34:53.599372+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2014-04-24T17:34:53.599374+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
iverecord-4.1.0/lib/active_record/query_cache.rb:36:in `call'
2014-04-24T17:34:53.599389+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in
`call'
2014-04-24T17:34:53.599380+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/callbacks.rb:82:in `run_callbacks'
2014-04-24T17:34:53.599384+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-04-24T17:34:53.599382+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-04-24T17:34:53.599378+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block
in call'
2014-04-24T17:34:53.599391+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-04-24T17:34:53.599386+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
`call'
2014-04-24T17:34:53.599393+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/rack/logger.rb:20:in `block in call'
2014-04-24T17:34:53.599398+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-04-24T17:34:53.599396+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `block in
tagged'
2014-04-24T17:34:53.599440+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-04-24T17:34:53.599488+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-04-24T17:34:53.599433+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-04-24T17:34:53.599414+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/rack/logger.rb:20:in `call'
2014-04-24T17:34:53.599400+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-04-24T17:34:53.599493+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ionpack-4.1.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-04-24T17:34:53.599491+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/act
ivesupport-4.1.0/lib/active_support/cache/strategy/local_cache_middleware.rb:26:
in `call'
2014-04-24T17:34:53.599495+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-04-24T17:34:53.599497+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/engine.rb:514:in `call'
2014-04-24T17:34:53.599499+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rai
lties-4.1.0/lib/rails/application.rb:144:in `call'
2014-04-24T17:34:53.599501+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/lock.rb:17:in `call'
2014-04-24T17:34:53.599503+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-04-24T17:34:53.599502+00:00 app[web.1]:
vendor/bundle/ruby/2.0.0/gems/rac
k-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-04-24T17:34:53.599506+00:00 app[web.1]:
vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/httpserver.rb:94:in `run'
2014-04-24T17:34:53.599505+00:00 app[web.1]:
vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/httpserver.rb:138:in `service'
2014-04-24T17:34:53.599509+00:00 app[web.1]:
2014-04-24T17:34:53.599508+00:00 app[web.1]:
vendor/ruby-2.0.0/lib/ruby/2.0.0/
webrick/server.rb:295:in `block in start_thread'
2014-04-24T17:34:53.599510+00:00 app[web.1]:
2014-04-24T17:34:53.588804+00:00 app[web.1]:
2014-04-24T17:34:53.588813+00:00 app[web.1]: Sent mail to
tstevens_21#earthlink.
net (66.7ms)
2014-04-24T17:34:53.595347+00:00 app[web.1]: Completed 500 Internal
Server Error
in 389ms
2014-04-24T17:34:53.600317+00:00 heroku[router]: at=info method=POST
path=/users
host=secret-brushlands-1375.herokuapp.com
request_id=052e3b18-a726-49ae-b816-1b
b5b13c8367 fwd="216.40.153.100" dyno=web.1 connect=3ms service=408ms
status=500
bytes=1754
I am using Devise, and I have installed SendGrid on Heroku. Haven't seen
the email confirmation yet. Any help appreciated.
Thank you,
In the config/environment.rb file, change the configuration of smtp_settings as below:
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'], ## Refer to key SENDGRID_USERNAME
:password => ENV['SENDGRID_PASSWORD'], ## Refer to key SENDGRID_PASSWORD
:domain => 'heroku.com',
:enable_starttls_auto => true
}
After this add the environment variables SENDGRID_USERNAME and SENDGRID_PASSWORD in heroku environment by running:
heroku addons:add sendgrid:starter
Related
I am trying to make an app with Rails 4.
I am trying (desperately) to setup devise (I have been trying, unsuccessfully for the past 3 years).
My app is on heroku.
When i am logged in, I try to press the sign out button. I get an error message telling me to check the logs.
The log output is:
2016-01-02T00:52:17.660202+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/sign_in_out.rb:57:in `sign_out'
2016-01-02T00:52:17.660208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
2016-01-02T00:52:17.660195+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/rememberable.rb:23:in `forget_me'
2016-01-02T00:52:17.660201+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/sign_in_out.rb:75:in `sign_out_all_scopes'
2016-01-02T00:52:17.660208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
2016-01-02T00:52:17.660198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `_run_callbacks'
2016-01-02T00:52:17.660205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
2016-01-02T00:52:17.660200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:262:in `block in logout'
2016-01-02T00:52:17.660206+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
2016-01-02T00:52:17.660201+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:260:in `logout'
2016-01-02T00:52:17.660207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
2016-01-02T00:52:17.660199+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:53:in `_run_callbacks'
2016-01-02T00:52:17.660205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2016-01-02T00:52:17.660198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `each'
2016-01-02T00:52:17.660204+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
2016-01-02T00:52:17.660210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-02T00:52:17.660165+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
2016-01-02T00:52:17.660196+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `call'
2016-01-02T00:52:17.660203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/app/controllers/devise/sessions_controller.rb:25:in `destroy'
2016-01-02T00:52:17.660209+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
2016-01-02T00:52:17.660174+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:285:in `save'
2016-01-02T00:52:17.660200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:260:in `each'
2016-01-02T00:52:17.660207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
2016-01-02T00:52:17.660167+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction'
2016-01-02T00:52:17.660197+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `block in _run_callbacks'
2016-01-02T00:52:17.660203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2016-01-02T00:52:17.660210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
2016-01-02T00:52:17.660215+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2016-01-02T00:52:17.660214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
2016-01-02T00:52:17.660224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2016-01-02T00:52:17.660211+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
2016-01-02T00:52:17.660218+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
2016-01-02T00:52:17.660212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2016-01-02T00:52:17.660214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2016-01-02T00:52:17.660224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action'
2016-01-02T00:52:17.660212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
2016-01-02T00:52:17.660217+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2016-01-02T00:52:17.660225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
2016-01-02T00:52:17.660216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2016-01-02T00:52:17.660225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call'
2016-01-02T00:52:17.660213+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
2016-01-02T00:52:17.660223+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch'
2016-01-02T00:52:17.660227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:49:in `serve'
2016-01-02T00:52:17.660219+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
2016-01-02T00:52:17.660228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-01-02T00:52:17.660216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/searchkick-1.1.2/lib/searchkick/logging.rb:108:in `process_action'
2016-01-02T00:52:17.660227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-01-02T00:52:17.660226+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve'
2016-01-02T00:52:17.660228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
2016-01-02T00:52:17.660232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660229+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
2016-01-02T00:52:17.660231+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660234+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2016-01-02T00:52:17.660230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660239+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-01-02T00:52:17.660232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-01-02T00:52:17.660233+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-01-02T00:52:17.660239+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-01-02T00:52:17.660236+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2016-01-02T00:52:17.660243+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
2016-01-02T00:52:17.660237+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-01-02T00:52:17.660238+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
2016-01-02T00:52:17.660237+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call'
2016-01-02T00:52:17.660247+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-01-02T00:52:17.660253+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-01-02T00:52:17.660251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-01-02T00:52:17.660259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-01-02T00:52:17.660250+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-01-02T00:52:17.660258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-01-02T00:52:17.660250+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
2016-01-02T00:52:17.660257+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-01-02T00:52:17.660251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-01-02T00:52:17.660259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
2016-01-02T00:52:17.660245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
2016-01-02T00:52:17.660260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-01-02T00:52:17.660245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-01-02T00:52:17.660262+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-01-02T00:52:17.660260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
2016-01-02T00:52:17.660258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call'
2016-01-02T00:52:17.660263+00:00 app[web.1]:
2016-01-02T00:52:17.660261+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
2016-01-02T00:52:17.660263+00:00 app[web.1]:
2016-01-02T00:52:17.660261+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
2016-01-02T00:52:17.660262+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
I don't understand a word of this message. Can anyone decipher what it means?
My routes are:
devise_for :users, #class_name: 'FormUser',
:controllers => {
:registrations => "users/registrations",
# :omniauth_callbacks => "users/authentications"
:omniauth_callbacks => 'users/omniauth_callbacks'
}
# get '/auth/:provider/callback' => 'users/authentications#create'
# get '/authentications/sign_out', :to => 'users/authentications#destroy'
# PER SOURCEY TUTORIAL ----------
match '/users/:id/finish_signup' => 'users#finish_signup', via: [:get, :patch], :as => :finish_signup
I don't have a specific sign out path defined in the routes. The sourcey tutorial I'm following doesnt use one and I understood this was part of the devise gem functionality.
My rake routes shows:
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
The nav bar has a sign out link as:
<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>
Everything was fine when I use localhost:3000, and I can visit localhost:3000/users/sign_in.
However, after I push to heroku, I can't visit this page and other pages which were created by devise and show this
Here is my Gemfile
source 'https://rubygems.org'
gem 'rails', '4.1.8'
gem 'pg'
gem 'rails_12factor', group: :production
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'devise'
gem 'bcrypt'
gem 'bootstrap-sass', '~> 3.3.5'
gem 'rails_bootstrap_navbar'
Here is heroku log
2015-07-16T16:35:48.081619+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in `exec_no_cache'
2015-07-16T16:35:48.081621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query'
2015-07-16T16:35:48.081622+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:976:in `column_definitions'
2015-07-16T16:35:48.081623+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql/schema_statements.rb:187:in `columns'
2015-07-16T16:35:48.081625+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/schema_cache.rb:93:in `block in prepare_default_proc'
2015-07-16T16:35:48.081626+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/schema_cache.rb:44:in `yield'
2015-07-16T16:35:48.081627+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/schema_cache.rb:44:in `columns'
2015-07-16T16:35:48.081629+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/model_schema.rb:214:in `columns'
2015-07-16T16:35:48.081630+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/model_schema.rb:223:in `columns_hash'
2015-07-16T16:35:48.081632+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/inheritance.rb:180:in `subclass_from_attributes?'
2015-07-16T16:35:48.081633+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/inheritance.rb:23:in `new'
2015-07-16T16:35:48.081634+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.5.1/lib/devise/models/registerable.rb:20:in `new_with_session'
2015-07-16T16:35:48.081640+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/base.rb:189:in `process_action'
2015-07-16T16:35:48.081642+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-07-16T16:35:48.081643+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-07-16T16:35:48.081641+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/rendering.rb:10:in `process_action'
2015-07-16T16:35:48.081638+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-07-16T16:35:48.081649+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-07-16T16:35:48.081636+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.5.1/app/controllers/devise/registrations_controller.rb:100:in `build_resource'
2015-07-16T16:35:48.081656+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-07-16T16:35:48.081637+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.5.1/app/controllers/devise/registrations_controller.rb:7:in `new'
2015-07-16T16:35:48.081648+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:229:in `block in halting'
2015-07-16T16:35:48.081644+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-07-16T16:35:48.081645+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:229:in `block in halting'
2015-07-16T16:35:48.081659+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-07-16T16:35:48.081647+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:229:in `call'
2015-07-16T16:35:48.081655+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-07-16T16:35:48.081657+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-07-16T16:35:48.081662+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-07-16T16:35:48.081661+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-07-16T16:35:48.081665+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `call'
2015-07-16T16:35:48.081663+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `call'
2015-07-16T16:35:48.081658+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-07-16T16:35:48.081664+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2015-07-16T16:35:48.081669+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `run_callbacks'
2015-07-16T16:35:48.081671+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-07-16T16:35:48.081668+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in `call'
2015-07-16T16:35:48.081667+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
2015-07-16T16:35:48.081672+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-07-16T16:35:48.081676+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-07-16T16:35:48.081673+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2015-07-16T16:35:48.081674+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-07-16T16:35:48.081677+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/notifications.rb:159:in `instrument'
2015-07-16T16:35:48.081681+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2015-07-16T16:35:48.081678+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-07-16T16:35:48.081680+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2015-07-16T16:35:48.081682+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-07-16T16:35:48.081684+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionview-4.1.8/lib/action_view/rendering.rb:30:in `process'
2015-07-16T16:35:48.081686+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2015-07-16T16:35:48.081685+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_controller/metal.rb:196:in `dispatch'
2015-07-16T16:35:48.081687+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-07-16T16:35:48.081689+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-07-16T16:35:48.081690+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 `dispatch'
2015-07-16T16:35:48.081691+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:50:in `call'
2015-07-16T16:35:48.081692+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/mapper.rb:45:in `call'
2015-07-16T16:35:48.081693+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/journey/router.rb:73:in `block in call'
2015-07-16T16:35:48.081696+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/journey/router.rb:59:in `call'
2015-07-16T16:35:48.081695+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/journey/router.rb:59:in `each'
2015-07-16T16:35:48.081697+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/routing/route_set.rb:678:in `call'
2015-07-16T16:35:48.081698+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-07-16T16:35:48.081700+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-07-16T16:35:48.081701+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-07-16T16:35:48.081702+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/etag.rb:23:in `call'
2015-07-16T16:35:48.081707+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/conditionalget.rb:25:in `call'
2015-07-16T16:35:48.081709+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/head.rb:11:in `call'
2015-07-16T16:35:48.081710+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-07-16T16:35:48.081711+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/flash.rb:254:in `call'
2015-07-16T16:35:48.081712+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225:in `context'
2015-07-16T16:35:48.081714+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220:in `call'
2015-07-16T16:35:48.081715+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-07-16T16:35:48.081716+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/query_cache.rb:36:in `call'
2015-07-16T16:35:48.081717+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2015-07-16T16:35:48.081728+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-07-16T16:35:48.081729+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-07-16T16:35:48.081730+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-07-16T16:35:48.081731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2015-07-16T16:35:48.081733+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2015-07-16T16:35:48.081734+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-07-16T16:35:48.081735+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-07-16T16:35:48.081736+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-07-16T16:35:48.081738+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-07-16T16:35:48.081739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-07-16T16:35:48.081740+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-07-16T16:35:48.081743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-07-16T16:35:48.081742+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-07-16T16:35:48.081744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'
2015-07-16T16:35:48.081746+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/runtime.rb:17:in `call'
2015-07-16T16:35:48.081747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2015-07-16T16:35:48.081748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.8/lib/action_dispatch/middleware/static.rb:84:in `call'
2015-07-16T16:35:48.081750+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/sendfile.rb:112:in `call'
2015-07-16T16:35:48.081751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:514:in `call'
2015-07-16T16:35:48.081752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:144:in `call'
2015-07-16T16:35:48.081754+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/lock.rb:17:in `call'
2015-07-16T16:35:48.081755+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/content_length.rb:14:in `call'
2015-07-16T16:35:48.081756+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/handler/webrick.rb:60:in `service'
2015-07-16T16:35:48.081758+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2015-07-16T16:35:48.081759+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2015-07-16T16:35:48.081763+00:00 app[web.1]:
2015-07-16T16:35:48.081760+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-07-16T16:35:48.081762+00:00 app[web.1]:
2015-07-16T16:35:51.501741+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=intelligent-madame-5204.herokuapp.com request_id=46eca4a7-c0ce-4dbf-bfb1-651fb7ae201b fwd="180.218.172.11" dyno=web.1 connect=3ms service=5ms status=304 bytes=133
Solution
heroku run rake db:migrate
I think you need to migrate your database.
$ heroku run rake db:migrate --app your_app
This is a common step to forget when when deploying to Heroku.
I want to upload product images in my online shop via cloudinary and carrierwave.
I followed the instructions on the cloudinary official web site and i was able to upload images in development environment. But after I pushed it on heroku, I tried to create new product with product picture, but i got error "If you are the application owner check the logs for more information."
I couldn't find specific error(s) in heroku logs:
2015-01-09T17:40:00.955232+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/activeadmin-7414104d41e5/lib/active_admin/resource_controller/data_access.rb:138:in `build_new_resource'
2015-01-09T17:40:00.955231+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/inheritance.rb:61:in `new'
2015-01-09T17:40:00.949065+00:00 app[web.1]: AdminUser Load (1.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = $1 ORDER BY "admin_users"."id" ASC LIMIT 1 [["id", 1]]
2015-01-09T17:40:00.955222+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/strong_parameters.rb:188:in `each_pair'
2015-01-09T17:40:00.955234+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/activeadmin-7414104d41e5/lib/active_admin/resource_controller/data_access.rb:121:in `build_resource'
2015-01-09T17:40:00.955247+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-01-09T17:40:00.955185+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/carrierwave-0.10.0/lib/carrierwave/orm/activerecord.rb:38:in `image='
2015-01-09T17:40:00.955249+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/base.rb:198:in `process_action'
2015-01-09T17:40:00.955225+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/core.rb:557:in `init_attributes'
2015-01-09T17:40:00.955264+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2015-01-09T17:40:00.955274+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2
.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955266+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:117:in `call'
2015-01-09T17:40:00.955268+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:117:in `call'
2015-01-09T17:40:00.955187+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/attribute_assignment.rb:54:in `public_send'
2015-01-09T17:40:00.955271+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955286+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955301+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:92:in `call'
2015-01-09T17:40:00.955278+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `call'
2015-01-09T17:40:00.955227+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/core.rb:280:in `initialize'
2015-01-09T17:40:00.955306+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2015-01-09T17:40:00.955321+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2015-01-09T17:40:00.955320+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2015-01-09T17:40:00.955236+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/bundler/gems/inherited_resources-9e4c7576b48e/lib/inherited_resources/actions.rb:31:in `create'
2015-01-09T17:40:00.955251+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/rendering.rb:10:in `process_action'
2015-01-09T17:40:00.955334+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:42:in `serve'
2015-01-09T17:40:00.955336+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2015-01-09T17:40:00.955318+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-01-09T17:40:00.955283+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `call'
2015-01-09T17:40:00.955229+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/inheritance.rb:61:in `new'
2015-01-09T17:40:00.955292+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955289+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `call'
2015-01-09T17:40:00.955276+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955273+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955324+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionview-4.2.0.rc3/lib/action_view/rendering.rb:30:in `process'
2015-01-09T17:40:00.955303+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:92:in `_run_callbacks'
2015-01-09T17:40:00.955288+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955308+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-01-09T17:40:00.955310+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-01-09T17:40:00.955353+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/conditionalget.rb:38:in `call'
2015-01-09T17:40:00.955358+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/flash.rb:260:in `call'
2015-01-09T17:40:00.955331+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:73:in `call'
2015-01-09T17:40:00.955342+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/journey/router.rb:30:in `each'
2015-01-09T17:40:00.955269+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955300+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955313+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-01-09T17:40:00.955346+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-01-09T17:40:00.955323+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/abstract_controller/base.rb:137:in `process'
2015-01-09T17:40:00.955355+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/head.rb:13:in `call'
2015-01-09T17:40:00.955281+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `block in halting'
2015-01-09T17:40:00.955332+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
2015-01-09T17:40:00.955356+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-01-09T17:40:00.955378+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
2015-01-09T17:40:00.955343+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/journey/router.rb:30:in `serve'
2015-01-09T17:40:00.955315+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-01-09T17:40:00.955284+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:234:in `block in halting'
2015-01-09T17:40:00.955326+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal.rb:195:in `dispatch'
2015-01-09T17:40:00.955374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:88:in `call'
2015-01-09T17:40:00.955381+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-01-09T17:40:00.955379+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2015-01-09T17:40:00.955316+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/notifications.rb:164:in `instrument'
2015-01-09T17:40:00.955385+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2015-01-09T17:40:00.955291+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:169:in `block in halting'
2015-01-09T17:40:00.955359+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/session/abstract/id.rb:225:in `context'
2015-01-09T17:40:00.955329+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal.rb:236:in `block in action'
2015-01-09T17:40:00.955348+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-01-09T17:40:00.955364+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-01-09T17:40:00.955390+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-01-09T17:40:00.955350+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-01-09T17:40:00.955411+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/methodoverride.rb:22:in `call'
2015-01-09T17:40:00.955409+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-01-09T17:40:00.955305+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
2015-01-09T17:40:00.955352+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/etag.rb:24:in `call'
2015-01-09T17:40:00.955365+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/query_cache.rb:36:in `call'
2015-01-09T17:40:00.955376+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/callbacks.rb:88:in `_run_callbacks'
2015-01-09T17:40:00.955388+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/rack/logger.rb:20:in `block in call'
2015-01-09T17:40:00.955431+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-01-09T17:40:00.955394+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/rack/logger.rb:20:in `call'
2015-01-09T17:40:00.955418+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/sendfile.rb:113:in `call'
2015-01-09T17:40:00.955387+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/rack/logger.rb:38:in `call_app'
2015-01-09T17:40:00.955413+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/runtime.rb:18:in `call'
2015-01-09T17:40:00.955373+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-01-09T17:40:00.955362+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/session/abstract/id.rb:220:in `call'
2015-01-09T17:40:00.955393+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-01-09T17:40:00.955416+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/static.rb:113:in `call'
2015-01-09T17:40:00.955423+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/lock.rb:17:in `call'
2015-01-09T17:40:00.955311+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2015-01-09T17:40:00.955414+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2015-01-09T17:40:00.955428+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2015-01-09T17:40:00.955421+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/application.rb:164:in `call'
2015-01-09T17:40:00.955433+00:00 app[web.1]:
2015-01-09T17:40:00.955419+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.0.rc3/lib/rails/engine.rb:518:in `call'
2015-01-09T17:40:00.955391+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-01-09T17:40:00.955425+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/content_length.rb:15:in `call'
2015-01-09T17:40:00.955382+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2015-01-09T17:40:00.955327+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2015-01-09T17:40:00.955426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.0.beta2/lib/rack/handler/webrick.rb:89:in `service'
2015-01-09T17:40:00.955434+00:00 app[web.1]:
2015-01-09T17:40:00.955430+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2015-01-09T17:40:00.955345+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/routing/route_set.rb:802:in `call'
2015-01-09T17:40:00.955371+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
2015-01-09T17:40:00.955384+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.0.rc3/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
Form:
form(:html => { :multipart => true }) do |f|
f.inputs 'New product' do
...
f.file_field :image, label: 'Image'
f.submit
end
end
Uploader:
class ImageUploader < CarrierWave::Uploader::Base
include Cloudinary::CarrierWave
end
Model:
class Product < ActiveRecord::Base
...
mount_uploader :image, ImageUploader
...
end
Controller:
def create
#product = Product.new(product_params)
respond_to do |format|
if #product.save
format.html { redirect_to #product }
else
format.html { render :new, notice: 'Errors.' }
end
end
end
def product_params
params.require(:product).permit(:title, :short_description, :description, :image, :price)
end
I have Rails 4.2.0
I have been using sidekiq/redis for quite some time with no issues to date.
For some reason, today I am getting this error:
Redis::CannotConnectError - Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED):
So, Redis is attempting to connect to my localhost connection instead of my redis_to_go url in heroku.
My redis.rb file looks like so:
uri = URI.parse(ENV["REDISTOGO_URL"] || "redis://localhost:6379/")
REDIS = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
And when I type heroku config I am given this:
REDISTOGO_URL: redis://redistogo:b9f872ce1dd16cd989#albacore.redistogo.com:10280/
which maps exactly to my url that I am seeing in my Redis To Go addon in Heroku.
Nothing changed with Redis that I know of between yesterday when it worked and today when it doesn't, but I did spin up a Mongo DB using Mongo HQ. Perhaps there is a conflict somewhere?
Any help is appreciated.
EDIT
I have no mongo init file, and the only mongo specific file I created was my config/mongoid.yml file. It looks like this:
development:
sessions:
default:
database: mongoid_dev
hosts:
- localhost:27017
options: #strictly 2 spaces before
raise_not_found_error: false #strictly 4 spaces before not 6
production:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options: #strictly 2 spaces before
raise_not_found_error: false #strictly 4 spaces before not 6
I installed Mongo from Master and am running rails 4.1.0.
EDIT2
Full trace error is below:
2014-04-15T20:33:05.068810+00:00 app[web.1]: Redis::CannotConnectError - Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED):
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:290:in `rescue in establish_connection'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:285:in `establish_connection'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:79:in `block in connect'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:257:in `with_reconnect'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:78:in `connect'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:304:in `ensure_connected'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:191:in `block in process'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:270:in `logging'
2014-04-15T20:33:05.068810+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:190:in `process'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis/client.rb:96:in `call'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis.rb:186:in `block in info'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis.rb:37:in `block in synchronize'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis.rb:37:in `synchronize'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/redis-3.0.7/lib/redis.rb:185:in `info'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.0.0/lib/sidekiq/web.rb:218:in `block (2 levels) in <class:Web>'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/connection_pool-2.0.0/lib/connection_pool.rb:58:in `with'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.0.0/lib/sidekiq.rb:69:in `redis'
2014-04-15T20:33:05.069016+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.0.0/lib/sidekiq/web.rb:218:in `block in <class:Web>'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/sinatra.rb:133:in `route_eval_with_newrelic'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
2014-04-15T20:33:05.069244+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/sinatra.rb:116:in `process_route_with_newrelic'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
2014-04-15T20:33:05.069903+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/sinatra.rb:151:in `dispatch_and_notice_errors_with_newrelic'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/sinatra.rb:146:in `block in dispatch_with_newrelic'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:335:in `perform_action_with_newrelic_trace'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/sinatra.rb:143:in `dispatch_with_newrelic'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
2014-04-15T20:33:05.070192+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/rack/error_collector.rb:55:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/rack/browser_monitoring.rb:27:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/rack/agent_hooks.rb:32:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
2014-04-15T20:33:05.070654+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:71:in `block in call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `each'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/journey/router.rb:59:in `call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/routing/route_set.rb:676:in `call'
2014-04-15T20:33:05.070976+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/rack/error_collector.rb:55:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/rack/agent_hooks.rb:32:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/rack/browser_monitoring.rb:27:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-04-15T20:33:05.071462+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/flash.rb:254:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/query_cache.rb:36:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/callbacks.rb:82:in `run_callbacks'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-04-15T20:33:05.071665+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `block in call'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:26:in `tagged'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/tagged_logging.rb:68:in `tagged'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/rack/logger.rb:20:in `call'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-04-15T20:33:05.072148+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/engine.rb:514:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0/lib/rails/application.rb:144:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:572:in `process_client'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:666:in `worker_loop'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `call'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.7.3.204/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `block (4 levels) in <top (required)>'
2014-04-15T20:33:05.072577+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:521:in `spawn_missing_workers'
2014-04-15T20:33:05.073631+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.2/lib/unicorn/http_server.rb:140:in `start'
2014-04-15T20:33:05.073631+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.2/bin/unicorn:126:in `<top (required)>'
2014-04-15T20:33:05.073631+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
2014-04-15T20:33:05.073631+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'
I had the same problem. Sidekiq 3+ does NOT automatically recongnize REDISTOGO_URL environment variable, instead REDIS_PROVIDER is used . I did a config reference by:
heroku config:set REDIS_PROVIDER=REDISTOGO_URL
then problem solved
I give detail explanation in my blog post
set up your redis.rb file as such :
module MyApp
class << self
def redis
#redis ||= Redis.new(url: (ENV['REDISTOGO_URL'] || 'redis://127.0.0.1:6379'))
end
end
end
in your sidekiq.rb do :
Sidekiq.configure_server do |config|
Rails.logger = Sidekiq::Logging.logger
config.redis = { :url => MyApp.redis[:url], :namespace => 'sidekiq', :size => 5 }
end
Sidekiq.configure_client do |config|
config.redis = { :url => MyApp.redis[:url], :namespace => 'sidekiq', :size => 1 }
end
this will ensure Sidekiq is picking up the Redis connection from your redis.rb init file.
The issue is with the ENV variable:
Per sidekiq's documentation:
RedisToGo can be used with the default REDISTOGO_URL env var in
Sidekiq 2.x and earlier (REDISTOGO_URL is supported for legacy
reasons, the REDIS_PROVIDER and REDIS_URL vars are recommended).
You must use the REDIS_PROVIDER or REDIS_URL ENV varibles instead of the REDISTOGO_URL for sidekiq 3 and up. You do not need a sidekiq initializer, and this code will do the trick:
Run the following from your terminal
heroku config:set REDIS_PROVIDER=redis://...........
I recently pushed my first app to heroku using their guide. (https://devcenter.heroku.com/articles/rails3) Everything went fine considering the push. Now I visited my app and tried to register, now the error 500 page turns up from my public folder every time I try to register or login.
The app currently only consists of my gem dependencies.
gem 'devise'
gem 'haml'
gem 'cancan'
gem 'easy_roles'
gem 'paperclip'
gem 'therubyracer'
gem 'activeadmin'
gem 'formtastic'
If i get the heroku logs:
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/validations.rb:50:in `save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/attribute_methods/dirty.rb:22:in `save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:241:in `block (2 levels) in save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
2012-04-26T16:03:15+00:00 heroku[router]: POST cold-mist-6471.herokuapp.com/users/sign_in dyno=web.1 queue=0 wait=0ms service=224ms status=500 bytes=643
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/models/trackable.rb:26:in `update_tracked_fields!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:208:in `transaction'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:241:in `block in save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/transactions.rb:240:in `save'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/devise/hooks/trackable.rb:7:in `block in <top (required)>'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:14:in `block in _run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:9:in `each'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:9:in `_run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/proxy.rb:113:in `authenticate!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/proxy.rb:165:in `set_user'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/proxy.rb:298:in `_perform_authentication'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/app/controllers/devise/sessions_controller.rb:14:in `create'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/hooks.rb:14:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:53:in `_run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/base.rb:167:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:447:in `_run__77755734840326551__process_action__4521632167829203251__callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/callbacks.rb:17:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications.rb:123:in `instrument'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications.rb:123:in `block in instrument'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/params_wrapper.rb:205:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/base.rb:121:in `process'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/rack_delegation.rb:14:in `dispat
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/rendering.rb:45:in `process'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:66:in `dispatch'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal.rb:203:in `dispatch'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal.rb:246:in `block in action'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:66:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:30:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/mapper.rb:40:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:68:in `block in call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `each'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.3/lib/journey/router.rb:56:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/routing/route_set.rb:589:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/sass-3.1.16/lib/sass/plugin/rack.rb:54:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `catch'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:35:in `block in call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/warden-1.1.1/lib/warden/manager.rb:34:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/head.rb:14:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/query_cache.rb:64:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/cookies.rb:338:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/flash.rb:242:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/logger.rb:16:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/logger.rb:26:in `call_app'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `_run__4075917817454350211__call__1038533202048283850__callbacks'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/static.rb:53:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:479:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'
2012-04-26T16:03:15+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
2012-04-26T16:03:15+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler/webrick.rb:59:in `service'
2012-04-26T16:03:15+00:00 app[web.1]: cache: [POST /users/sign_in] invalidate, pass
2012-04-26T16:03:15+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
2012-04-26T16:03:15+00:00 app[web.1]:
2012-04-26T16:03:15+00:00 app[web.1]:
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:220:in `call'
2012-04-26T16:03:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/rack/log_tailer.rb:14:in `call'
I just have no clue why this doesn't work...
Local is everything fine.
It looks like you haven't migrated heroku's database yet.
try:
heroku run rake db:migrate
Well, found it.
i was writing a role into a newly added column. that didn't work as intended.