All Questions
Tagged with ruby-on-rails redis
1,089
questions
1
vote
0
answers
32
views
Rails 7.1 Turbo stream not working on localhost, but works when deployed to Heroku
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 ...
1
vote
0
answers
33
views
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")...
0
votes
0
answers
68
views
Rails/Redis ActiveRecord::RecordNotFound error even when the record clearly exists
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 me
09:26:23 sidekiq.1 |...
1
vote
1
answer
41
views
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 ...
0
votes
1
answer
60
views
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::Job
I know that it is possible to delete using ScheduledSet, but I cannot ...
0
votes
1
answer
52
views
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.
...
0
votes
0
answers
34
views
redis.rb - initialize': no implicit conversion of String into Integer (TypeError) #1277
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 ...
-1
votes
1
answer
200
views
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
...
1
vote
1
answer
129
views
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 is
recovery the number from ...
0
votes
0
answers
16
views
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 'sidekiq-...
0
votes
1
answer
56
views
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 ...
0
votes
0
answers
69
views
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 ...
0
votes
0
answers
81
views
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 ...
0
votes
1
answer
240
views
How/Where does Devise/Warden generate the cache key used to store a session in Redis?
In my Rails application using Devise and Redis, I can call these things and get a session's ID:
# app/controllers/some_controller.rb
session.id
session[:session_id]
cookies['session_cookie']
The ...
0
votes
0
answers
192
views
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.6
Redis: 7.2.2
Ubuntu: 18.04
Type=simple
Environment="RAILS_ENV=...