redis attempting to connect to local host in Heroku - WHY? - ruby-on-rails

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://...........

Related

ConnectionTimeoutError after adding 404 error page?

I saw many solutions for this question but nothing solve mine please help me in this!
I got this error after adding 404 error html page for my ruby on rails app
ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)):
2018-12-22T06:37:29.341798+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:190:in `block in wait_poll'
2018-12-22T06:37:29.341800+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:181:in `loop'
2018-12-22T06:37:29.341802+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:181:in `wait_poll'
2018-12-22T06:37:29.341804+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:136:in `block in poll'
2018-12-22T06:37:29.341806+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
2018-12-22T06:37:29.341808+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:146:in `synchronize'
2018-12-22T06:37:29.341810+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:134:in `poll'
2018-12-22T06:37:29.341812+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:418:in `acquire_connection'
2018-12-22T06:37:29.341814+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:351:in `block in checkout'
2018-12-22T06:37:29.341816+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
2018-12-22T06:37:29.341818+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:350:in `checkout'
2018-12-22T06:37:29.341820+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:265:in `block in connection'
2018-12-22T06:37:29.341821+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
2018-12-22T06:37:29.341823+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:264:in `connection'
2018-12-22T06:37:29.341825+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:541:in `retrieve_connection'
2018-12-22T06:37:29.341827+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
2018-12-22T06:37:29.341829+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:87:in `connection'
2018-12-22T06:37:29.341831+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/query_cache.rb:51:in `restore_query_cache_settings'
2018-12-22T06:37:29.341833+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/query_cache.rb:43:in `rescue in call'
2018-12-22T06:37:29.341834+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.8/lib/active_record/query_cache.rb:32:in `call'
2018-12-22T06:37:29.341836+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'
2018-12-22T06:37:29.341838+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'
2018-12-22T06:37:29.341840+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'
2018-12-22T06:37:29.341841+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'
2018-12-22T06:37:29.341843+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'
2018-12-22T06:37:29.341845+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'
2018-12-22T06:37:29.341847+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'
2018-12-22T06:37:29.341849+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'
2018-12-22T06:37:29.341850+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'
2018-12-22T06:37:29.341852+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'
2018-12-22T06:37:29.341854+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'
2018-12-22T06:37:29.341855+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'
2018-12-22T06:37:29.341857+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/rack/logger.rb:20:in `call'
2018-12-22T06:37:29.341858+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'
2018-12-22T06:37:29.341925+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'
2018-12-22T06:37:29.341928+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/runtime.rb:17:in `call'
2018-12-22T06:37:29.341930+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'
2018-12-22T06:37:29.341937+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'
2018-12-22T06:37:29.341939+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/sendfile.rb:112:in `call'
2018-12-22T06:37:29.341941+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:514:in `call'
2018-12-22T06:37:29.341942+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:144:in `call'
2018-12-22T06:37:29.341944+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/lock.rb:17:in `call'
2018-12-22T06:37:29.341945+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/content_length.rb:14:in `call'
2018-12-22T06:37:29.341947+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.5/lib/rack/handler/webrick.rb:60:in `service'
2018-12-22T06:37:29.341948+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2018-12-22T06:37:29.341950+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2018-12-22T06:37:29.341952+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2018-12-22T06:37:29.341953+00:00 app[web.1]:
After I add this line to production.rb
config.exceptions_app = self.routes
routes.rb
get '/404', to: 'errors#not_found'
get '/422', to: 'errors#unacceptable'
errors.controller.rb
class ErrorsController < ApplicationController
def not_found
render :status => 404
end
def unacceptable
render :status => 422
end
end
I am not sure how to solve this please help!
once checkout below links to configure database.yml,
pool: 5
timeout: 5000
https://gist.github.com/erichurst/961978
How to increase ActiveRecord connection timeout?

Websockets' EventMachine becomes 'not initialized' after a few minutes on Heroku

I've deployed my Rails app running Puma on Heroku. I am using the gem websockets-rails for live chat and notifications.
I've had some issues connecting to websockets (RuntimeError (eventmachine not initialized: evma_install_oneshot_timer):) initially but I fixed that by adding
Thread.new { EventMachine.run } unless EventMachine.reactor_running? && EventMachine.reactor_thread.alive?
to a config/initializers/eventmachine.rb. Again, everything works fine locally when I run heroku local and doesn't timeout/become eventmachine not initialized after a few minutes.
However, every time I deploy/re-deploy on Heroku, WebSockets works fine for the first few minutes but fails afterwards. I get a WebSocket connection to 'wss://www.studbuds.com/websocket' failed: Error during WebSocket handshake: Unexpected response code: 500 error on the client-side and the stack trace
2016-01-20T17:59:12.672733+00:00 app[web.1]: RuntimeError (eventmachine not initialized: evma_install_oneshot_timer):
2016-01-20T17:59:12.672734+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:331:in `add_oneshot_timer'
2016-01-20T17:59:12.672735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:331:in `add_timer'
2016-01-20T17:59:12.672735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/em/timers.rb:50:in `schedule'
2016-01-20T17:59:12.672736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/em/timers.rb:37:in `initialize'
2016-01-20T17:59:12.672736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:167:in `new'
2016-01-20T17:59:12.672737+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:167:in `start_ping_timer'
2016-01-20T17:59:12.672738+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:46:in `initialize'
2016-01-20T17:59:12.672739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters/web_socket.rb:10:in `initialize'
2016-01-20T17:59:12.672739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:14:in `new'
2016-01-20T17:59:12.672740+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:14:in `establish_connection'
2016-01-20T17:59:12.672741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_manager.rb:78:in `open_connection'
2016-01-20T17:59:12.672741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_manager.rb:55:in `call'
2016-01-20T17:59:12.672742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
2016-01-20T17:59:12.672742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-01-20T17:59:12.672743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `each'
2016-01-20T17:59:12.672743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-01-20T17:59:12.672744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in `call'
2016-01-20T17:59:12.672744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:35:in `block in call'
2016-01-20T17:59:12.672745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:34:in `catch'
2016-01-20T17:59:12.672745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:34:in `call'
2016-01-20T17:59:12.672746+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-01-20T17:59:12.672747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
2016-01-20T17:59:12.672747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in `call'
2016-01-20T17:59:12.672750+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `_run_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-01-20T17:59:12.672757+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in `call_app'
2016-01-20T17:59:12.672757+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `block in call'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-01-20T17:59:12.672759+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `call'
2016-01-20T17:59:12.672759+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/request_store-1.3.0/lib/request_store/middleware.rb:9:in `call'
2016-01-20T17:59:12.672760+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-01-20T17:59:12.672760+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-01-20T17:59:12.672761+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-01-20T17:59:12.672761+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/ssl.rb:24:in `call'
2016-01-20T17:59:12.672763+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in `call'
2016-01-20T17:59:12.672763+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:164:in `call'
2016-01-20T17:59:12.672764+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-01-20T17:59:12.672765+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:541:in `handle_request'
2016-01-20T17:59:12.672765+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:388:in `process_client'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:270:in `block in run'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/thread_pool.rb:106:in `call'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/thread_pool.rb:106:in `block in spawn_thread'
If I restart the dynos, it works again but dies shortly after.
Note I'm use a Puma which is multi-threaded, so could it be that my application is not thread-safe?

Rails 4 - devise error in sign out action

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 %>

checkout/update/confirm error “something went wrong” Spree + heroku

I'm having an issue with spree when deployed to heroku. Everything works except when you press the place order button.
The weird thing is the order does go through, when I check the dashboard at the payment gateway it does go through and the same being when you refresh the page. But your not shown the order. It just wont show the order confirmation page. After looking at the log I did notice this:
I already configured Braintree and it works fine when running a local server, but in heroku it doesnt seem to work anymore.
Update: Heroku log
2015-09-28T21:00:14.617116+00:00 app[web.1]: [ActiveJob] [ActionMailer::DeliveryJob] [ee2aedeb-307e-4cef-a847-6929d31b1988] Performed ActionMailer::DeliveryJob from Inline(mailers) in 458.82ms
2015-09-28T21:00:14.621114+00:00 app[web.1]:
2015-09-28T21:00:14.621117+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2) for "localhost" port 25):
2015-09-28T21:00:14.621119+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/net/smtp.rb:541:in `initialize'
2015-09-28T21:00:14.621121+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/net/smtp.rb:541:in `open'
2015-09-28T21:00:14.621122+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/net/smtp.rb:541:in `tcp_socket'
2015-09-28T21:00:14.621124+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/net/smtp.rb:551:in `block in do_start'
2015-09-28T21:00:14.621125+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout'
2015-09-28T21:00:14.621126+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:99:in `call'
2015-09-28T21:00:14.621128+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/timeout.rb:99:in `timeout'
2015-09-28T21:00:14.621132+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/net/smtp.rb:550:in `do_start'
2015-09-28T21:00:14.621133+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/net/smtp.rb:520:in `start'
2015-09-28T21:00:14.621135+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
2015-09-28T21:00:14.621136+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:2141:in `do_delivery'
2015-09-28T21:00:14.621138+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:236:in `block in deliver'
2015-09-28T21:00:14.621139+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.3/lib/action_mailer/base.rb:543:in `block in deliver_mail'
2015-09-28T21:00:14.621141+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-09-28T21:00:14.621143+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-09-28T21:00:14.621144+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `instrument'
2015-09-28T21:00:14.621145+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.3/lib/action_mailer/base.rb:541:in `deliver_mail'
2015-09-28T21:00:14.621146+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:236:in `deliver'
2015-09-28T21:00:14.621147+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.3/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
2015-09-28T21:00:14.621149+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.3/lib/action_mailer/delivery_job.rb:10:in `perform'
2015-09-28T21:00:14.621150+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/execution.rb:32:in `block in perform_now'
2015-09-28T21:00:14.621151+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-09-28T21:00:14.621152+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-09-28T21:00:14.621154+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
2015-09-28T21:00:14.621160+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621161+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621163+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:496:in `block (2 levels) in around'
2015-09-28T21:00:14.621164+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `call'
2015-09-28T21:00:14.621165+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `block (2 levels) in simple'
2015-09-28T21:00:14.621167+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:23:in `call'
2015-09-28T21:00:14.621168+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
2015-09-28T21:00:14.621169+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-09-28T21:00:14.621171+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-09-28T21:00:14.621172+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `instrument'
2015-09-28T21:00:14.621173+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
2015-09-28T21:00:14.621174+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `block in tag_logger'
2015-09-28T21:00:14.621176+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-09-28T21:00:14.621177+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-09-28T21:00:14.621178+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-09-28T21:00:14.621180+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `tag_logger'
2015-09-28T21:00:14.621181+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
2015-09-28T21:00:14.621186+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `instance_exec'
2015-09-28T21:00:14.621187+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `block in make_lambda'
2015-09-28T21:00:14.621189+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `call'
2015-09-28T21:00:14.621190+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `block in simple'
2015-09-28T21:00:14.621191+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `call'
2015-09-28T21:00:14.621192+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `block in around'
2015-09-28T21:00:14.621194+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621195+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621196+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks'
2015-09-28T21:00:14.621198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/execution.rb:31:in `perform_now'
2015-09-28T21:00:14.621199+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/execution.rb:21:in `execute'
2015-09-28T21:00:14.621200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/queue_adapters/inline_adapter.rb:14:in `enqueue'
2015-09-28T21:00:14.621202+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/enqueuing.rb:71:in `block in enqueue'
2015-09-28T21:00:14.621203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-09-28T21:00:14.621204+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-09-28T21:00:14.621205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
2015-09-28T21:00:14.621206+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621209+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:496:in `block (2 levels) in around'
2015-09-28T21:00:14.621210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `call'
2015-09-28T21:00:14.621211+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `block (2 levels) in simple'
2015-09-28T21:00:14.621213+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:14:in `call'
2015-09-28T21:00:14.621214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:14:in `block (3 levels) in <module:Logging>'
2015-09-28T21:00:14.621215+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `block in tag_logger'
2015-09-28T21:00:14.621217+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-09-28T21:00:14.621218+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-09-28T21:00:14.621219+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-09-28T21:00:14.621221+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `tag_logger'
2015-09-28T21:00:14.621222+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:13:in `block (2 levels) in <module:Logging>'
2015-09-28T21:00:14.621223+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `instance_exec'
2015-09-28T21:00:14.621225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `block in make_lambda'
2015-09-28T21:00:14.621226+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `call'
2015-09-28T21:00:14.621227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `block in simple'
2015-09-28T21:00:14.621228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `call'
2015-09-28T21:00:14.621229+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `block in around'
2015-09-28T21:00:14.621230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621233+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks'
2015-09-28T21:00:14.621234+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/enqueuing.rb:67:in `enqueue'
2015-09-28T21:00:14.621238+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/configured_job.rb:13:in `perform_later'
2015-09-28T21:00:14.621240+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.3/lib/action_mailer/message_delivery.rb:112:in `enqueue_delivery'
2015-09-28T21:00:14.621241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.3/lib/action_mailer/message_delivery.rb:68:in `deliver_later'
2015-09-28T21:00:14.621242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/spree_core-3.0.0/app/models/spree/order.rb:340:in `deliver_order_confirmation_email'
2015-09-28T21:00:14.621244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/spree_core-3.0.0/app/models/spree/order.rb:328:in `finalize!'
2015-09-28T21:00:14.621245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/eval_helpers.rb:58:in `evaluate_method'
2015-09-28T21:00:14.621246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/callback.rb:192:in `block in run_methods'
2015-09-28T21:00:14.621247+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/callback.rb:191:in `each'
2015-09-28T21:00:14.621248+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/callback.rb:191:in `run_methods'
2015-09-28T21:00:14.621249+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/callback.rb:159:in `call'
2015-09-28T21:00:14.621251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:394:in `block (2 levels) in after'
2015-09-28T21:00:14.621252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:394:in `each'
2015-09-28T21:00:14.621253+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:394:in `block in after'
2015-09-28T21:00:14.621254+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:392:in `catch'
2015-09-28T21:00:14.621255+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:392:in `after'
2015-09-28T21:00:14.621257+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:195:in `run_callbacks'
2015-09-28T21:00:14.621258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition_collection.rb:127:in `run_callbacks'
2015-09-28T21:00:14.621260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition_collection.rb:63:in `block (2 levels) in perform'
2015-09-28T21:00:14.621261+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition_collection.rb:63:in `catch'
2015-09-28T21:00:14.621262+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition_collection.rb:63:in `block in perform'
2015-09-28T21:00:14.621263+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition_collection.rb:186:in `within_transaction'
2015-09-28T21:00:14.621264+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition_collection.rb:62:in `perform'
2015-09-28T21:00:14.621265+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/transition.rb:163:in `perform'
2015-09-28T21:00:14.621267+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/event.rb:155:in `fire'
2015-09-28T21:00:14.621268+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/event.rb:219:in `block in add_actions'
2015-09-28T21:00:14.621269+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/machine.rb:725:in `call'
2015-09-28T21:00:14.621270+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/state_machines-0.4.0/lib/state_machines/machine.rb:725:in `block (2 levels) in define_helper'
2015-09-28T21:00:14.621271+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/spree_frontend-3.0.0/app/controllers/spree/checkout_controller.rb:30:in `update'
2015-09-28T21:00:14.621273+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-09-28T21:00:14.621274+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb:198:in `process_action'
2015-09-28T21:00:14.621275+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
2015-09-28T21:00:14.621276+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2015-09-28T21:00:14.621277+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-09-28T21:00:14.621278+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-09-28T21:00:14.621280+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
2015-09-28T21:00:14.621281+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621282+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-09-28T21:00:14.621286+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks'
2015-09-28T21:00:14.621287+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-09-28T21:00:14.621288+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-09-28T21:00:14.621289+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2015-09-28T21:00:14.621291+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-09-28T21:00:14.621292+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-09-28T21:00:14.621293+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `instrument'
2015-09-28T21:00:14.621294+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-09-28T21:00:14.621296+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2015-09-28T21:00:14.621297+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2015-09-28T21:00:14.621298+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb:137:in `process'
2015-09-28T21:00:14.621299+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/rendering.rb:30:in `process'
2015-09-28T21:00:14.621301+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb:196:in `dispatch'
2015-09-28T21:00:14.621302+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2015-09-28T21:00:14.621303+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb:237:in `block in action'
2015-09-28T21:00:14.621305+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:76:in `call'
2015-09-28T21:00:14.621306+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
2015-09-28T21:00:14.621307+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:45:in `serve'
2015-09-28T21:00:14.621308+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2015-09-28T21:00:14.621309+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `each'
2015-09-28T21:00:14.621311+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `serve'
2015-09-28T21:00:14.617755+00:00 app[web.1]: Completed 500 Internal Server Error in 3309ms (ActiveRecord: 449.9ms)
2015-09-28T21:00:14.621312+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:821:in `call'
2015-09-28T21:00:14.621313+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:518:in `call'
2015-09-28T21:00:14.621314+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/railtie.rb:194:in `public_send'
2015-09-28T21:00:14.621315+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/railtie.rb:194:in `method_missing'
2015-09-28T21:00:14.621317+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/mapper.rb:51:in `serve'
2015-09-28T21:00:14.621318+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2015-09-28T21:00:14.621319+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `each'
2015-09-28T21:00:14.621320+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `serve'
2015-09-28T21:00:14.621321+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:821:in `call'
2015-09-28T21:00:14.621322+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'
2015-09-28T21:00:14.621324+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-09-28T21:00:14.621325+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-09-28T21:00:14.621326+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2015-09-28T21:00:14.621328+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
2015-09-28T21:00:14.621329+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2015-09-28T21:00:14.621330+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-09-28T21:00:14.621336+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/flash.rb:260:in `call'
2015-09-28T21:00:14.621338+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'
2015-09-28T21:00:14.621339+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'
2015-09-28T21:00:14.621383+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-09-28T21:00:14.621385+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/query_cache.rb:36:in `call'
2015-09-28T21:00:14.621386+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
2015-09-28T21:00:14.621387+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-09-28T21:00:14.621389+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:84:in `run_callbacks'
2015-09-28T21:00:14.621390+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-09-28T21:00:14.621391+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2015-09-28T21:00:14.621392+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2015-09-28T21:00:14.621393+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2015-09-28T21:00:14.621395+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:38:in `call_app'
2015-09-28T21:00:14.621396+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:20:in `block in call'
2015-09-28T21:00:14.621397+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-09-28T21:00:14.621398+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-09-28T21:00:14.621399+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-09-28T21:00:14.621401+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:20:in `call'
2015-09-28T21:00:14.621402+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-09-28T21:00:14.621403+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2015-09-28T21:00:14.621404+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2015-09-28T21:00:14.621406+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2015-09-28T21:00:14.621407+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/static.rb:116:in `call'
2015-09-28T21:00:14.621408+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2015-09-28T21:00:14.621409+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:518:in `call'
2015-09-28T21:00:14.621411+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:165:in `call'
2015-09-28T21:00:14.621412+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2015-09-28T21:00:14.621413+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/puma-2.13.4/lib/puma/server.rb:541:in `handle_request'
2015-09-28T21:00:14.621416+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/puma-2.13.4/lib/puma/server.rb:388:in `process_client'
2015-09-28T21:00:14.621417+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/puma-2.13.4/lib/puma/server.rb:270:in `block in run'
2015-09-28T21:00:14.621419+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/puma-2.13.4/lib/puma/thread_pool.rb:106:in `call'
2015-09-28T21:00:14.621420+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/puma-2.13.4/lib/puma/thread_pool.rb:106:in `block in spawn_thread'
2015-09-28T21:00:14.621422+00:00 app[web.1]:
2015-09-28T21:00:14.621423+00:00 app[web.1]:
2015-09-28T21:00:14.629494+00:00 heroku[router]: at=info method=POST path="/checkout/update/confirm" host=shuabe-car.herokuapp.com request_id=e44c7575-4835-48a7-bd1a-e5c2c4a6e737 fwd="104.230.226.189" dyno=web.1 connect=0ms service=3330ms status=500 bytes=1669

Heroku RoR Error

I am new to RoR and Heroku, i have uploded the app on github repo however am getting an error while running the app, on the browser. this is the screenshot of the error and the heroku log:-
Front end error message shows
"We're sorry, but something went wrong.
This error was automatically reported, sorry for the inconvenience."
2014-07-01T05:44:24.617831+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake.rb:172:in `new'
2014-07-01T05:44:24.617835+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake.rb:132:in `notify_or_ignore'
2014-07-01T05:44:24.617827+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/notice.rb:322:in `find_session_data'
2014-07-01T05:44:24.617833+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake.rb:172:in `build_notice_for'
2014-07-01T05:44:24.617818+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:273:in `session_exists?'
2014-07-01T05:44:24.617837+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/rails/middleware.rb:40:in `notify_airbrake'
2014-07-01T05:44:24.617821+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:107:in `exists?'
2014-07-01T05:44:24.617839+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/rails/middleware.rb:15:in `rescue in call'
2014-07-01T05:44:24.617843+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2014-07-01T05:44:24.617854+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2014-07-01T05:44:24.617856+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2014-07-01T05:44:24.617849+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in `block in call'
2014-07-01T05:44:24.617852+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in `call'
2014-07-01T05:44:24.617858+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2014-07-01T05:44:24.617890+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2014-07-01T05:44:24.617892+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2014-07-01T05:44:24.617902+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'
2014-07-01T05:44:24.617904+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2014-07-01T05:44:24.617906+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2014-07-01T05:44:24.617908+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2014-07-01T05:44:24.617910+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2014-07-01T05:44:24.617912+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2014-07-01T05:44:24.617845+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/mi
ddleware/show_exceptions.rb:56:in `call'
2014-07-01T05:44:24.617915+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/user_informer.rb:12:in `call'
2014-07-01T05:44:24.617917+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
2014-07-01T05:44:24.617841+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/rails/middleware.rb:12:in `call'
2014-07-01T05:44:24.617847+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in `call_app'
2014-07-01T05:44:24.617851+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:in `tagged'
2014-07-01T05:44:24.617913+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/user_informer.rb:16:in `_call'
2014-07-01T05:44:24.617919+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/application.rb:231:in `call'
2014-07-01T05:44:24.617921+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-07-01T05:44:24.617922+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:576:in `process_client'
2014-07-01T05:44:24.617924+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:670:in `worker_loop'
2014-07-01T05:44:24.617930+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
2014-07-01T05:44:24.617926+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:525:in `spawn_missing_workers'
2014-07-01T05:44:24.617934+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `<main>'
2014-07-01T05:44:24.617928+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:140:in `start'
2014-07-01T05:44:24.617931+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load'
2014-07-01T05:44:24.617936+00:00 app[web.1]:
2014-07-01T05:44:24.617938+00:00 app[web.1]:
2014-07-01T05:44:33.019295+00:00 heroku[router]: at=info method=GET path="/" host=goofycarpool.herokuapp.com request_id=51427406-bc26-48c4-9961-a27401d67249 fwd="122.174.120.48" dyno=web.1 connect=1ms service=80ms status=500 bytes=1778
2014-07-01T05:44:32.964192+00:00 app[web.1]: Started GET "/" for 122.174.120.48 at 2014-07-01 05:44:32 +0000
2014-07-01T05:44:33.018094+00:00 app[web.1]:
2014-07-01T05:44:33.018101+00:00 app[web.1]: ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb):
2014-07-01T05:44:33.018103+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:319:in `ensure_secret_secure'
2014-07-01T05:44:33.018105+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:284:in `initialize'
2014-07-01T05:44:33.018107+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:231:in `new'
2014-07-01T05:44:33.018108+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:231:in `signed'
2014-07-01T05:44:33.018113+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/session/cookie_store.rb:48:in `unpacked_cookie_data'
2014-07-01T05:44:33.018110+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/session/cookie_store.rb:50:in `block in unpacked_cookie_data'
2014-07-01T05:44:33.018112+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/session/abstract_store.rb:57:in `stale_session_check!'
2014-07-01T05:44:33.018132+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/session/abstract_store.rb:53:in `block in extract_session_id'
2014-07-01T05:44:33.018134+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/session/abstract_store.rb:57:in `stale_session_check!'
2014-07-01T05:44:33.018129+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/cookie.rb:107:in `extract_session_id'
2014-07-01T05:44:33.018145+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:273:in `session_exists?'
2014-07-01T05:44:33.018139+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:43:in `load_session_id!'
2014-07-01T05:44:33.018136+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/session/abstract_store.rb:53:in `extract_session_id'
2014-07-01T05:44:33.018141+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:32:in `[]'
2014-07-01T05:44:33.018143+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:267:in `current_session_id'
2014-07-01T05:44:33.018147+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:107:in `exists?'
2014-07-01T05:44:33.018149+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:127:in `load_for_read!'
2014-07-01T05:44:33.018160+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake.rb:172:in `build_notice_for'
2014-07-01T05:44:33.018158+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake.rb:172:in `new'
2014-07-01T05:44:33.018162+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake.rb:132:in `notify_or_ignore'
2014-07-01T05:44:33.018154+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/notice.rb:322:in `find_session_data'
2014-07-01T05:44:33.018156+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/notice.rb:131:in `initialize'
2014-07-01T05:44:33.018164+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/rails/middleware.rb:40:in `notify_airbrake'
2014-07-01T05:44:33.018151+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:59:in `[]'
2014-07-01T05:44:33.018228+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in `block in call'
2014-07-01T05:44:33.018230+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:in `tagged'
2014-07-01T05:44:33.018221+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2014-07-01T05:44:33.018223+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2014-07-01T05:44:33.018241+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2014-07-01T05:44:33.018214+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/rails/middleware.rb:15:in `rescue in call'
2014-07-01T05:44:33.018239+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2014-07-01T05:44:33.018219+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/rails/middleware.rb:12:in `call'
2014-07-01T05:44:33.018243+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2014-07-01T05:44:33.018255+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in `call'
2014-07-01T05:44:33.018226+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in `call_app'
2014-07-01T05:44:33.018257+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2014-07-01T05:44:33.018232+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in `call'
2014-07-01T05:44:33.018258+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2014-07-01T05:44:33.018260+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2014-07-01T05:44:33.018236+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2014-07-01T05:44:33.018261+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2014-07-01T05:44:33.018264+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/user_informer.rb:16:in `_call'
2014-07-01T05:44:33.018234+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2014-07-01T05:44:33.018270+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-07-01T05:44:33.018266+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/airbrake-4.0.0/lib/airbrake/user_informer.rb:12:in `call'
2014-07-01T05:44:33.018263+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2014-07-01T05:44:33.018269+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/application.rb:231:in `call'
2014-07-01T05:44:33.018272+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:576:in `process_client'
2014-07-01T05:44:33.018267+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:484:in `call'
2014-07-01T05:44:33.018280+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `<main>'
2014-07-01T05:44:33.018277+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
2014-07-01T05:44:33.018273+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:670:in `worker_loop'
2014-07-01T05:44:33.018283+00:00 app[web.1]:
2014-07-01T05:44:33.018279+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/bin/unicorn:23:in `load'
2014-07-01T05:44:33.018276+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:140:in `start'
2014-07-01T05:44:33.018281+00:00 app[web.1]:
2014-07-01T05:44:33.018274+00:00 app[web.1]: vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:525:in `spawn_missing_workers'
run
$ rake secret
and then paste the output string in config/initializers/secret_token.rb
MyAppNAME_GOES_HERE::Application.config.secret_key_base = 'e5d6fed054aadcb955c17d90ab0cae35b9921e3af7fa0f88ba2b8bcee6ab1b087e34c2081c867b42093f81197bd4272c49a2337fc7d31b6f892ae6ef57e842d7'
now commit & push all changes to heroku.
PS: Instead of harder-coded secret_key_base, it makes more sense from security prespective to set this a ENV var on heroku, like this:
$ heroku config:set SECRET_KEY_BASE=that_random_string_goes_here
for more details on how to do this, check this. But if you just getting starting started, you can learn how to do this later & this hard-coded will workout any problems
Never place the secret key in the config/initializers/secret_token.rb file directly.
It is a security threat always
Instead create an ENV variable as
MyAppNAME_GOES_HERE::Application.config.secret_key_base = ENV[SECRET_KEY]
and place the SECRET_KEY in heroku setting under Heroku login >> under_app >> setting >> reveal config vars
and finally restart your application

Resources