Skip to content

Clean up redis dependencies #197

@moveson

Description

@moveson

We removed sidekiq in favor of solid queue some time ago, and we turned off the Heroku-hosted redis instance at that time. But we still have some code that references redis. We should remove all references to redis and ensure everything is working as expected without it.

In particular, it looks like ActionCable is still configured to look for a redis instance.

@childetx Thanks for bringing my attention to the app crashing.

Aug 17 21:13:15 edifyapp app/web.1 I, [2025-08-18T03:13:15.619095 #2]  INFO -- : [ActionCable] [User 1] Registered connection (Z2lkOi8vZWRpZnkvVXNlci8x)
Aug 17 21:13:15 edifyapp app/web.1 #<Thread:0x00007f6763de2d40 /app/vendor/bundle/ruby/3.4.0/gems/actioncable-7.2.2.1/lib/action_cable/subscription_adapter/redis.rb:161 run> terminated with exception (report_on_exception is true):
Aug 17 21:13:15 edifyapp app/web.1 /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:1639:in 'Socket#__connect_nonblock': Connection refused - connect(2) for 127.0.0.1:6379 (redis://localhost:6379/1) (Redis::CannotConnectError)
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:1639:in 'Socket#connect_nonblock'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:60:in 'Addrinfo#connect_internal'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:141:in 'Addrinfo#connect'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:753:in 'block in Socket.tcp_with_fast_fallback'
Aug 17 21:13:15 edifyapp app/web.1 	from <internal:kernel>:168:in 'Kernel#loop'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:721:in 'Socket.tcp_with_fast_fallback'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/ruby-3.4.5/lib/ruby/3.4.0/socket.rb:661:in 'Socket.tcp'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client/ruby_connection.rb:120:in 'RedisClient::RubyConnection#connect'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client/ruby_connection.rb:51:in 'RedisClient::RubyConnection#initialize'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:773:in 'Class#new'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:773:in 'block in RedisClient#connect'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client/middlewares.rb:12:in 'RedisClient::BasicMiddleware#connect'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:772:in 'RedisClient#connect'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:759:in 'RedisClient#raw_connection'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:719:in 'RedisClient#ensure_connected'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-5.4.1/lib/redis/client.rb:91:in 'Redis::Client#ensure_connected'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:744:in 'RedisClient#ensure_connected'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-5.4.1/lib/redis/client.rb:91:in 'Redis::Client#ensure_connected'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-client-0.25.1/lib/redis_client.rb:443:in 'RedisClient#disable_reconnection'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/redis-5.4.1/lib/redis.rb:81:in 'Redis#without_reconnect'
Aug 17 21:13:15 edifyapp app/web.1 	from /app/vendor/bundle/ruby/3.4.0/gems/actioncable-7.2.2.1/lib/action_cable/subscription_adapter/redis.rb:90:in 'ActionCable::SubscriptionAdapter::Redis::Listener#listen'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions