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

Redis::TimeoutError: Connection timed out Error -Rails cache

We are using redis(Elasticache) as our cache store.We are experiencing crashes in our app due to redis connection timeout.We have three app servers and use phusion passenger.At the time of crashes...

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

How can i generate consecutive codes with redis?

i would like to generate a consecutive codes, like PR00001, EC00002, TG00003 and so on, the first two letters have to be from the name and the last name.my pseudocode isrecovery the number from...

View Article


Use Redis as primary database in Rails app

Hello I am newbie to Redis. I am trying to use Redis as my primary database instead of sqlite as provided by default with Rails. I tried enough googling but could not find relevant stuff. How to...

View Article

Docker compose for rails application

I have below docker compose file, and i have few questions regarding it,version: '3.8'services: web: build: context: ./ dockerfile: Dockerfile platform: linux/amd64 command: bash -c "rm -f...

View Article

Redis key expiry hook/notifications in rails

I need to call a (callback)method once a Redis key got expired. Does redis(ruby gem) provide any notification mechanism or callback registration?Any assistance will be appreciated.

View Article


Image may be NSFW.
Clik here to view.

Redis raises "NOAUTH Authentication required" error but there is no password...

I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check if Redis is working.I found answer for NOAUTH Authentication required error which...

View Article


Foreman terminates immediately

I recently installed OSX and Ubuntu on different computers. I then attempted to install redis and foreman for both OS's. Both errors threw no flags, and seemed to execute successfully. However,...

View Article

redis.rb - initialize': no implicit conversion of String into Integer...

trying to run websockets using action_cable sidekiq and redis (heroku redis addon).on staging env that has same redis machine im able to run everything smoothly but on production upon trying to connect...

View Article

Ruby on Rails - Server Memory Spiking and Users getting logged out

We have a fairly typical Ruby on Rails 6.1 app with a Redis cache store which we are also using for our session store. We are using Devise and an single-page app with lots of graphql requests.Recently...

View Article

How can I delete specific jobs from Resque queue without clearing the whole...

I'm using Resque workers to process job in a queue, I have a large number of jobs > 1M in a queue and have some of the jobs that I need to remove ( added by error). Crating the queue with the jobs...

View Article


Deploy Ruby on Rails app with railway.app

I'm trying to deploy my app on railway.app with Redis (using Sidekiq).I'm using buildpacks and the problem is I have 2 buildpacks and railway says in its documentation only one buildpack is executed in...

View Article

NoMethodError: undefined method `jobs' for module Sidekiq::Job

In my event service I'm trying to delete a job, but I see this:NoMethodError: undefined method `jobs' for module Sidekiq::JobI know that it is possible to delete using ScheduledSet, but I cannot write...

View Article


Issue with Sidekiq and Redis in Production on Rails 7.0.8.1

I'm experiencing issues configuring Sidekiq in my production environment. The application is a Rails 7.0.8.1 running on an Ubuntu 22.04 server, and the installed Redis version is 7.2.5. However, when...

View Article

Rails/Redis ActiveRecord::RecordNotFound error even when the record clearly...

I am currently working on a piece of software for the company I am working at, and I am at a complete loss as to how I can resolve this error.This is what Sidekiq spits back at me09:26:23 sidekiq.1 |...

View Article


Rails 7.1 Error when reading active record model from redis cache

We have a problem during upgrade Rails from 7.0.8 to 7.1.3.2 with reading AR models from Redis cache.We have several places where we cache AR models with Redis:Rails.cache.fetch("key_name") {...

View Article

Rails 7.1 Turbo stream not working on localhost, but works when deployed to...

I have a very simple Rails 7.1.3.4 app that is essentially a dashboard, where it uses Turbo Streams to display model attributes in real-time. When I deploy my app to Heroku, everything works as...

View Article

Is there a way to access session stored in redis in log configuration stage...

I have a rails 7 web app, which uses redis, hiredis, redis-actionpack to store session data. We also use devise for auth. Now, I wish to use log tags to include user_id in every line the logger logs....

View Article

Store Rails session using Redis

The default session store for Rails is cookie_store. This makes the session be stored on the client side (correct me if I am wrong).I want to change this default behavior, so that I can store the...

View Article


Whats the best practice way to initialise a Redis pub/sub subscriber in a...

I have a collection of Rails apps, and I want to have some of them subscribe to a channel waiting for messages. They are all connected to the same Redis server already, but I'm just not sure where to...

View Article


Herkou Redis - certificate verify failed (self signed certificate in...

I have been using heroku redis for a while now on one of my side projects. I currently use it for 3 thingsIt serves as a place for me to store firebase certificatesIt is used for caching data on the...

View Article

SSE over https not working

I am having an issue with SSE over https, let me make it clear, I have an Nginx server that listen to https, and a Rails Puma in the back, So I have this in the js( coffescript ):initStream = () ->...

View Article

redis-rails and acl getting NOPERM with turbo broadcast

We are trying to set passwords on our redis.redis.conf:user default on >xxxxxxxx ~* +@alluser user01 on >xxxxxxxx ~* +@allIn our environment variables we...

View Article


How to enable TLS for Redis 6 on Sidekiq?

ProblemOn my Ruby on Rails app, I keep getting the error below for the Heroku Redis Premium 0 add-on:OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self...

View Article

Uploading video to S3 via sidekiq / Carrierwave on Heroku rails app

I have a Rails 7 app running on Heroku. The app is simple, in theory: Users sign up, and can upload video files as part of a survey.I'm using Carrierwave for the upload process, but ran into memory and...

View Article

Redis: weird protocol/network errors

I'm running Redis and connecting from Ruby using ezmobius's Redis gem[1].Periodically (about once a day) I get a series of exceptions in my Rails app caused by Redis returning strange results.They are...

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



Finding Scheduled Delayed job in resque via rails console

In Rails we can get the workers infor easily. I used resque-schedule for delayed Job purpose and now I want to fetch all delayed job list via rails console.

View Article
Browsing latest articles
Browse All 873 View Live


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