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

Why does my "/var/app/staging" contains gem files that is absent on my...

I tried to connect Redis Elastic Cache to my Elastic Beanstalk environment but failed then I deleted all mentions of "Redis" from my app and then even created new environment but my /var/app/staging...

View Article


Ruby on Rails broadcast function (with websocket and devise set up)

I have set up a message broadcast to the private chatroom in Rails. Everything is working except when I add some CSS classes to the message container to identify if I am the sender or the receiver. The...

View Article


Rails error: can't activate redis (>= 3, < 5), already activated redis-5.0.4

I tried to deploy my Rails app, and got the errorcan't activate redis (>= 3, < 5), already activated redis-5.0.4. Make sure all dependencies are added to Gemfile. (Gem::LoadError)I've tried...

View Article

Execute redis FLUSHALL command in rails application

I want to execute Redis FLUSHALL every time the Rails server starts.

View Article

Sidekiq jobs stuck in enqueue

Sidekiq has been working in development mode just perfectly. Now that I am trying to use it in production, all the jobs are just sitting in enqueue and aren't ever being run. Could anyone point me in...

View Article


I am getting a "SSL_connect wrong version number (OpenSSL::SSL::SSLError)"...

I have a redis cluster in elasticache which is has cluster mode enabled. I follow the steps to test the connection that are explained here...

View Article

Image may be NSFW.
Clik here to view.

Sidekiq not running enqueued jobs (Rails 7 + Redis + Sidekiq + Docker)

As the title says, i have 3 containers running in docker, 1 for rails, 1 for a postgres db and 1 for redis. I'm able to enqueue jobs doing Job.perform_async but for some reason my jobs stay on the...

View Article

Logfile redirection in Sidekiq 7

Below is my systemd sidekiq.service setup. I am trying to get my logs in my sidekiq.log file.Current configuration:Sidekiq: 7.1.6Redis: 7.2.2Ubuntu:...

View Article


How/Where does Devise/Warden generate the cache key used to store a session...

In my Rails application using Devise and Redis, I can call these things and get a session's ID:# app/controllers/some_controller.rbsession.idsession[:session_id]cookies['session_cookie']The value...

View Article


How many maximum Redis clients(connections) can we expect from Action Cable?

I am having some trouble in figuring out how many maximum connections are possible from ActionCable to our Redis instance.I am investigating this because we get this ERR max number of clients reached...

View Article

Quickly adding multiple items (1000/sec) to a sidekiq queue?

I realize there is a push_bulk option for sidekiq but I'm currently being limited by latency to redis, so passing multiple items via push_bulk still isn't going quickly enough (only about 50/s).I've...

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

Using a Controller Method with Resque Background Job

I am on Rails 4 using Resque with Redis.How can I use a controller method, which is currently defined in my application_controller, inside of my background job?Here is the current method I have...

View Article


redis connection error when trying to connect to SSL port 6380 of azure redis...

I m trying to connect azure app service(Ruby Application) to azure redis cache using port 6380, the configuration works fine with 6379 port , but when I try to switch port to 6380 , Application goes...

View Article

Heroku Redis for Data doesn't connect to Sidekick....

I am working on a Rails project deployed on Heroku with two add-ons (Heroku Scheduler and Heroku Redis for Data) that are supposed to launch jobs at a certain time.I don't know exactly when this issue...

View Article


Ruby's redis gem seemingly returns integers in error message?

I've implemented a library wrapper around Ruby's Redis gem.There are times when I call CacheManager.get("key") and it somehow triggers an error that gets caught in the rescue. The error looks like...

View Article

Sidekiq doesnt connect to Heroku Redis for Data. RedisClient::CannotConnectError

I am working on a Rails project deployed on Heroku with two add-ons (Heroku Scheduler and Heroku Redis for Data) that are supposed to launch jobs at a certain time.I don't know exactly when this issue...

View Article


Unable to receive data from the server via WebSocket when utilizing...

In the project, I am using Devise, Redis, and Sidekiq. I intend to initiate a background job that sends a signal to the client upon completion. The client will then need to reload the page. In the...

View Article

unable to access global redis in a Sidekiq job via sidekiq-scheduler

We are thinking of moving from resque-scheduler to sidekiq-scheduler. We have a reference to a global $redis instance but in our job, we are not able to access it, like the following.require...

View Article

Sidekiq Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) on...

I'm trying to run sidekiq worker with Rails. When I try to docker-compose up worker I get the following error:worker_1 | Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)worker_1 |...

View Article
Browsing all 873 articles
Browse latest View live


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