Redis

redis connection error within docker container

泪湿孤枕 提交于 2021-01-29 19:59:32
问题 I'm trying to setup a light-weight RQ task queue app running in Docker. I keep on getting this error: ValueError: Redis URL must specify one of the following schemes (redis://, rediss://, unix://) When grabbing from environmental variable ( os.getenv() ) it doesn't work, but somehow when hard-coding in redis://redis:6379/0 , it seems to work. However, this is not really a long-term solution in my opinion. I looked at: link1 and link2, but there wasn't really a solution, the thread went dead.

Signalr using Redis backplane not propagating message

别说谁变了你拦得住时间么 提交于 2021-01-29 18:45:04
问题 I have a .net 4.5 MVC app which I have recently moved over to AWS, so we need to add a backplane to our Signalr implementation. I have followed the steps outlined at https://docs.microsoft.com/en-us/aspnet/signalr/overview/performance/scaleout-with-redis. I have installed the nuget package and my current configuration looks like this: [assembly: OwinStartup(typeof(SignalrBootstrapper))] namespace app { public class SignalrBootstrapper { public void Configuration(IAppBuilder app) { var

Redis queue worker crashes in utcparse

杀马特。学长 韩版系。学妹 提交于 2021-01-29 16:13:11
问题 I'm trying to get a basic rq working following the tutorial at https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxii-background-jobs. I'm running on windows 10 WSL1 ubuntu 20.04. I installed rq using sudo apt-get install python3-rq and rq is at version 1.2.2 I installed the python lib using pip3 install rq and this is then at version 1.4.0. My worker code is in app/tasks.py and is import time def example(): print('Starting task') for i in range(1..10): print(i) #time.sleep(1)

Spring Data Redis unable to connect to VirtualBox Ubuntu Redis Server

一曲冷凌霜 提交于 2021-01-29 16:02:03
问题 I'm currently attempting to follow a pretty simplistic tutorial from Spring Guides. Hopefully, because of its simplistic nature, it will be very easy to resolve. Goal Currently, I've completed the whole tutorial. I was having issues installing Redis on my windows machine, so I went ahead and installed VirtualBox to attempt to create a ubuntu server with Redis on it. I was hoping to have my project just connect to the Redis server running on the VirtualMachine. So far, I've set up the Ubuntu

How to enable TLS for Redis 6 on Sidekiq?

。_饼干妹妹 提交于 2021-01-29 15:44:14
问题 Problem On 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 signed certificate in certificate chain) Heroku Redis documentation mentions that I need to enable TLS in my Redis client's configuration in order to connect to a Redis 6 database. To achive this, I have read SSL/TLS Support documentation on redis-rb. My understanding from it is; I need to

redis connection error within docker container

旧时模样 提交于 2021-01-29 15:35:55
问题 I'm trying to setup a light-weight RQ task queue app running in Docker. I keep on getting this error: ValueError: Redis URL must specify one of the following schemes (redis://, rediss://, unix://) When grabbing from environmental variable ( os.getenv() ) it doesn't work, but somehow when hard-coding in redis://redis:6379/0 , it seems to work. However, this is not really a long-term solution in my opinion. I looked at: link1 and link2, but there wasn't really a solution, the thread went dead.

nestJS “socket.io-redis”: “6.0.1”

元气小坏坏 提交于 2021-01-29 15:22:29
问题 according to the documentation TypeScript // npm i -D @types/redis import { Server } from 'socket.io'; import { createAdapter } from 'socket.io-redis'; import { RedisClient } from 'redis'; const io = new Server(8080); const pubClient = new RedisClient({ host: 'localhost', port: 6379 }); const subClient = pubClient.duplicate(); io.adapter(createAdapter({ pubClient, subClient })); I create redis adapter import { IoAdapter } from '@nestjs/platform-socket.io'; import { createAdapter } from

Azure VM not connecting to Azure Redis Cache but local is connecting to Azure Redis Cache

故事扮演 提交于 2021-01-29 12:40:30
问题 The same Azure Redis cache is getting connected from local machince. The port 6380, on which cache is running is open in firewall of both inbound and outbound in the VM. I tried in both NodeJs and Java. Both are connecting to remote Azure Redis from local and the exact same code for NodeJS and Java is not connceting to Azure Redis cache from VM. Java config: spring.redis.host=my-cache.redis.cache.windows.net spring.redis.password=<password> spring.redis.port=6380 spring.redis.ssl=true NodeJS

Celery with Redis broker in Django: tasks successfully execute, but too many persistent Redis keys and connections remain

感情迁移 提交于 2021-01-29 11:28:07
问题 Our Python server (Django 1.11.17) uses Celery 4.2.1 with Redis as the broker (the pip redis package we're using is 3.0.1). The Django app is deployed to Heroku, and the Celery broker was set up using Heroku's Redis Cloud add-on. The Celery tasks we have should definitely have completed within a minute (median completion time is ~100 ms), but we're seeing that Redis keys and connections are persisting for much, much longer than that (up to 24 hours). Otherwise, tasks are being executed

Integrate Redis to JHipster CacheConfiguration error

本小妞迷上赌 提交于 2021-01-29 11:10:27
问题 I'm trying to integrate redis cache to JHipster generator following this pull request on Github: https://github.com/jhipster/generator-jhipster/pull/10057/commits/cd2f2865d35dfd77624dd3a38ed32822e895539d# I receive this error while building my project: [ERROR] symbol: method getRedis() [ERROR] location: class io.github.jhipster.config.JHipsterProperties.Cache [ERROR] ../config/CacheConfiguration.java:[61,139] cannot find symbol The method getRedis() is undefined for the type