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

Loading Schedule, Schedule empty

Well, I had a problem while I were doing the installation of pageflow https://github.com/codevise/pageflowBut, in the moment that I execute the foreman start, I receive a warning and I cannot connect...

View Article


How to use sidekiq with rails app to generate daily report?

I have built a rails app for storing events. I want to generate a report to find the number of events happened in a day. I want to do it asynchronously. I am new to sidekiq and Redis. Can anyone...

View Article


docker-compose error connecting to redis + sidekiq

I am trying to build a container with docker but I cannot connect sidekiq + redis, the error says sidekiq_1 | Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED), seems to sidekiq is...

View Article

where does ruby on rails app stores session?

I am using the session to felicitate log in feature https://levelup.gitconnected.com/simple-authentication-guide-with-ruby-on-rails-16a6255f0be8Where is the session[:user_id] stored ?

View Article

Image may be NSFW.
Clik here to view.

Not able to connect aws redis with ec2 on same VPC

I have created AWS ElastiCache redis server and configured with EC2 instance, but somehow I am not able to connect Redis via EC2 instance.I have assigned the same security group as well.here is my...

View Article


Resque: adress family not supported

I've been using resque wit redis quite happily for some time now, and everything was great. except that it stopped working a few days ago, after some non-related change in the code.I get the following...

View Article

How to cache an arbitrary object in Rails(time-based)?

I read the official guide. It says there are page cache, action cache and fragment cache, but they are not what I want.I just like to cache an object, not the whole page or fragment of view, like this...

View Article

Rails jobs with Sidekiq in Google Cloud Run not working

I've a working Rails application in Google Cloud Run using:Cloud BuildCloud RegistryCloud RunCloud SQLCloud StorageCloud Key Management ServiceCloud SchedulerI've configured Sidekiq to execute some...

View Article


Can I use my existing Redis for a custom rails cache?

The documentation for the ActiveSupport::Cache::RedisCacheStore states: Take care to use a dedicated Redis cache rather than pointing this at your existing Redis server. It won't cope well with mixed...

View Article


Is it possible to do bulk read from redis outside index block in Ruby...

I have code within index block, where if there are X users for a class, the index block is looped X times. Within index block, I make a call to Redis to read a value. So, it would be X calls to Redis....

View Article

Sidekiq UI : Internal Server Error production

I am trying to run Sidekiq UI in production mode, though the workers are running fine but sometimes they crash and hence I wanted to look at the UI to either restart them or see whats the issue. This...

View Article

Using Redis on Gitlab CI for a Rails project

I am trying to set up Gitlab CI for my Rails project and for this I need Redis. I have added redis to the config file but I am getting an errorRedis::CannotConnectError: Error connecting to Redis on...

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.3 When I try to run Sidekiq locally (running on...

View Article


Sidekiq is not processing jobs

I was upgrading Sidekiq to v6 and Redis to v4 (Redis is running on AWS Elasticache). The Rails app is running on AWS EC2 instance. Since the upgrade, background jobs are not processing. I thought that...

View Article

Rails + Redis + Sidekiq error: IO::EAGAINWaitReadable

I'm getting random IO::EAGAINWaitReadable sometimes when executing a job from Sidekiq with redis as caching service.redis and sidekiq are running on the same server. I'm also getting this issue...

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

ROR Backend - Android App Error ActionCableException:...

RubyOnRails APIs are using ActionCable to connect to the socket for live tracking.There are two Android apps Driver and Customer. Drivers are broadcasting their locations and customers are...

View Article


Can't connect to redis on heroku

I'm using sidekiq with active_job in my rails application. The job currently works but I am unable to get connect to the Redis when deploying to heroku. In heroku I have the RedisToGo addon. When...

View Article

Configure Sidekiq and Redis for multiple Ruby on Rails projects

Sidekiq 5.2.5, Redis server 5.0.3, Ruby 2.5.1, Rails 5.2.2I had one Rails project with configured Redis (redis://localhost:6379/0) and Sidekiq. All is working well.Now I duplicate project and want it...

View Article

Rspec tests failing when using Rails.cache, but pass if I do a binding.pry

I'm having a weird issue where I'm testing a controller that has a procedure that uses caching. The test is failing, but if I do a binding.pry inside the method that does the caching, the test...

View Article
Browsing all 873 articles
Browse latest View live


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