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

Heroku fails to connect Redis

I open an app that has been sleeping for nearly one year. Rediscloud cancelled the DB in the meanwhile.I have a new Rediscloud DB, with REDISCLOUD_URL on a redis://default:(key)@redis-(path) format.But...

View Article


Why doesn't Redis work with my Rails application?

I'm currently using Rails 6 and Linux mint Cinnamon 20.2, and I have problems with Redis configuration / setupping in my Rails application.My problem is that my ActionCable doesn't work well.I would...

View Article


How can I ensure Sidekiq background jobs run against the database connection...

I have been implementing horizontal database sharding in Rails 6.1 using the new native multiple database connection switching. This has worked great in general, but I am trying to find the best way...

View Article

How can I ensure Sidekiq background jobs run against the same database they...

I have been implementing horizontal database sharding in Rails 6.1 using the new native multiple database connection switching. This has worked great in general, but I am trying to find the best way...

View Article

hiredis: Name or service not known (RuntimeError)

When I try to start the rails server or migrations, I get the following error:gems/redis-3.3.5/lib/redis/connection/hiredis.rb:19:in `connect': Name or service not known (RuntimeError)What is the...

View Article


Sidekiq with workers connecting to different Redis instances

In my current project, there is a Redis Instance on Heroku and Sidekiq is configured to process jobs from that instance. We need to migrate the Redis instance to Azure and I wanted to use a...

View Article

configure multiple server to support sidekiq

I planned to migrate redis server to a new one with sidekiq running, but doesn't want to stop the current application running. And I don't want to use redis cluster which is still alpha version.My...

View Article

Rails 5.2 + Sidekiq 6: You are connecting to Redis v3.2.6, Sidekiq requires...

I was updating my Rails app to 5.2.x along with Sidekiq and Redis. The Redis version is bundle show redis/Users/adam/.rvm/gems/ruby-2.6.3/gems/redis-4.1.3When I try to run Sidekiq locally (running on...

View Article


Not able to configure redis and resque in rails 4.1.6 app

I started with installing redis correctly and I guess that part is done pretty much correctly. I used this...

View Article


I saw turbo_stream_from not working on existing rails app upgraded to 7.0.0

This app never used action cable or redis before, I upgraded to rails 7.0.0 from 5.0 today to try turbo_stream_from for the first time.It looks like working on the rails console, because I see...

View Article

How to switch Redis database with Sidekiq on Rails 5.2.4?

My application uses Sidekiq and it's web monitoring interface.Sidekiq relies on one Redis instance, declared in the Sidekiq initializer:sidekiq.rb in Development Sidekiq.configure_server do |config|...

View Article

Default Sidekiq Redis configuration in Rails app

I'm trying to understand the Redis & Sidekiq configuration in a Passenger+Rails app and have run into some lack of understanding. I start the redis server independently of my rails app, while...

View Article

Redis backed Rails model

I am looking for something where I can keep an entire Rails based Model stored in Redis. There is Redis Objects that is found here https://github.com/nateware/redis-objects but that only works when...

View Article


Recieved Method in Rails does not get called and no output for console.log

Hello i am building a Rails app and i am working on an actioncable.I have a problem regarding the recieve Method from my channel.Im working on windows via wsl and got redis instead of async.My...

View Article

Redis permission denied while opening dump.rdb

I am using official redis image with sidekiq on dockers.Following are yml configurations for redis image: redis: build: . dockerfile: Dockerfile-redis ports: - '6379:6379' volumes: -...

View Article


Sidekiq - Enqueuing a job to be performed 0.seconds from now

I'm using sidekiq for background job and I enqueue a job like this:SampleJob.set(wait: waiting_time.to_i.seconds).perform_later(***) ・・・①When waiting_time is nil,it becomesSampleJob.set(wait:...

View Article

Resque workers failing silently with no logs or no debug information

I have a piece of code code which runs some method and I have put that method inside the self.perform as belowclass StartWorker@queue = :worker def self.perform puts "hello"...

View Article


handling concurrent requests and race conditions is rails using redis

I am building an application with ruby on rails as a part of a hiring process. This is my first time using ruby or rails. It's required to handle concurrent requests while saving to DB i.e.: if the...

View Article

Sidekiq jobs not queueing on rails app deployed to heroku

I have a rails app using sidekiq, sidekiq-status, and sidekiq batching:gem "sidekiq"gem "sidekiq-status"# freemium version vs sidekiq pro https://github.com/breamware/sidekiq-batchgem "sidekiq-batch"#...

View Article

How to return all values with matched key from Redis store

Working an learning some Redis and I am running into an issue that I can't figure out why it is not working.It is my understanding from some posts and documentation I read that I can store data with...

View Article
Browsing all 873 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>