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

validation not working for class wrapped in module in rails

I m trying to validate attr_accessor attributes but validation is not working. I have little experience but tried some way to do please help me out to resolve this problem.below is my...

View Article


Redis, Sidekiq and Heroku Apps

I have two Rails Apps that need to share some state. Each App needs to run background jobs during their execution lifetimes. I added Heroku Redis to each App, and Sidekiq. So when I run background...

View Article


Redis::CommandError: ERR wrong number of arguments for 'hset' command in ruby...

Redis server v=5.0.3target_servers.each do |server| ls = Redis.new(host: server, port: 1111, db: 1) if ls ls.pipelined do host.keys.sort.each do |hostname| ls.hset(mk, *host[hostname].flatten) end...

View Article

Rails + Sidekiq: Redis getting reset to empty state (sidekiq history lost)

We have a Rails 6.1 app and using Sidekiq for bacground jobs. Sometimes it happens that the sidekiq web UI resets to the initial state, showing the completed/failed job counters near zero, indicating a...

View Article

How to save a record using a background worker?

If I am saving a video file onto the server that is greater than 5mb. Should I create a background job for saving this file?How should this be done? My video model has a title, description and...

View Article


After upgrading from free Heroku Redis plan to the first paid tier, our app...

We are a not for profit social media community. We upgraded from the free Heroku Redis plan to the lowest tier paid Heroku Redis plan. Instead of improving performance, the site crashed. And it's still...

View Article

"Your Redis network connection is performing extremely poorly" warning on...

When runnning sidekiq locally (with or without cron jobs) I get this warning:WARN: Your Redis network connection is performing extremely poorly.Last RTT readings were [206649, 404660, 207362, 508564,...

View Article

Image may be NSFW.
Clik here to view.

Redis: NOAUTH Authentication required but there is no password setting

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


Redis cache not updating after model touch

Here is my code in ProductCategory model: has_many :products def products_count Rails.cache.fetch([cache_key, __method__]) do products.count end endIn Product model:belongs_to :product_category, touch:...

View Article


How to evaluate memory footprint of redis key-value in rails app?

I want to store some users' info to redis for each user. Data type is used key-value.For example:$redis.set("user_info:12345", #{some data})Is there any way to evaluate memory footprint? I think redis...

View Article

API endpoints returning 500 err after deploy on Heroku

The API endpoint is working fine on my local machine but when I deploy my Rails project to Heroku, some endpoints are returning 500 Internal Server Error. My tech pack is below, because I could not...

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

Where or how does Sidekiq/Redis store an object when a Job is retrying?

We provide our Clients a way to preview mass emails being delivered to their Users. For some of the emails, we mock (OpenStruct) some objects and use them in the email view:UserMailer:class UserMailer...

View Article


Writing tests with RSpec for Redis with Rails

I have a model class that caches data in redis. The first time I call a method on the model, it computes a JSON/Hash value and stores it in Redis. Under certain circumstances I 'flush' that data and it...

View Article

Rails 6.1: Jobs on Heroku going to Async instead of Sidekiq

I've been trying to get Sidekiq working on Heroku and can't get my app to use it instead of Async(default).On my local everything works fine and I can see the jobs going into sidekiq, but on production...

View Article


"You are connecting to Redis v3.2.9, Sidekiq requires Redis v4.0.0 or greater?"

I recently updated Sidekiq in my Gemfile:gem 'sidekiq', '~> 6.0', '>= 6.0.4'gem 'redis', '~> 4.1', '>= 4.1.3'But ever since updating, I get this error when running sidekiq in Terminal: You...

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


Rails - Redis::CannotConnectError: Error connecting to Redis on...

My Redis is running in background but apparently Sidekiq is not connecting to it. Any ideas? Redis is runninggem 'redis-rails' is installedgem 'sidekiq', '~> 5.0', '>= 5.0.5' is installedRuby -v:...

View Article

Ruby on rails server problem gives me redis error, how can I fix this?

So I was following along a tutorial on youtube to do a "todo list with ruby on rails using stimulus reflex" ->(https://www.youtube.com/watch?v=eK1CM0MBF64&ab_channel=TechmakerTV)And my server...

View Article

Using Sidekiq with multi APIs, but Sidekiq server executed wrong API code

I've built a rails app with docker-compose like below.For example,API A created job A1, that pushed to redis by Sidekiq Client SA.And API B created job B1, that pushed to redis by Sidekiq Client SB.But...

View Article
Browsing all 873 articles
Browse latest View live


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