Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

After upgrading from free Heroku Redis plan to the first paid tier, our app has crashed and won't work

$
0
0

We are a not for profit social media community. We upgraded from the free Heroku Redis plan to the lowest tier paid Heroku Redis plan. Instead of improving performance, the site crashed. And it's still down.

We got some help with the SSL issue, and updated sidekiq.rb and actioncable.yml (see below) but now redis can't connect to actioncable, and we're getting a slew of errors about not being able to connect.

Here is our sidekiq.rb

Sidekiq.default_worker_options = {  backtrace: true,  retry: true}sidekiq_redis = lambda do  Redis.new(url: ENV['REDIS_URL'], ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE })endSidekiq.configure_client do |config|  config.redis = ConnectionPool.new(size: 2, &sidekiq_redis)endSidekiq.configure_server do |config|  config.redis = ConnectionPool.new(size: 17, &sidekiq_redis)endSidekiq::Extensions.enable_delay!

Our cable.yml

development:  adapter: redis  url: redis://localhost:6379/1test:  adapter: asyncproduction:  adapter: redis  url: <%= ENV['REDIS_URL'] %>  ssl_params:    verify_mode: <%= OpenSSL::SSL::VERIFY_NONE %>

We are using the Heroku Redis $15/month plan now. As soon as we upgraded, the site crashed. Someone helped us update the sidekiq.rb and actioncable.yml, but the site still doesn't work.

Among other errors:

  1. Redis::ConnectionError Sidekiq New Issue Connection lost (ECONNRESET)
  2. heroku[router]: at=error code=H13 desc="Connection closed without response"
  3. heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/cable"
  4. ECONNREFUSED

Viewing all articles
Browse latest Browse all 873

Trending Articles