ionelmc / django-redisboard

Redis monitoring and inspection tool in django admin.
https://pypi.python.org/pypi/django-redisboard
BSD 2-Clause "Simplified" License
275 stars 48 forks source link

`KeyError: 'status'` when running redisboard within Kubernetes Django #51

Open abhinavsingh opened 1 month ago

abhinavsingh commented 1 month ago

Hi, our integration with django-redisboard went well in DEV. But as we pushed this to our non-DEV environments, we are observing weird KeyError: 'status' issues. Here is what I tried:

1) Added a redis server with url as redis://cloud-redis-gcp-memstore. cloud-redis-gcp-memstore is the same entry that we use for Django's REDIS_HOST variable. But this failed. Looks like redisboard wasn't able to reach this host, while Django could.

2) Next, we added FQDN for cloud-redis-gcp-memstore.namespace.svc.cluster.local and it started working, but this time running into KeyError: 'status'. We also tried changing url to 10.244.20.116, internal IP over which redis is accessible, but we continue to get KeyError: 'status'.

It specifically errors out during

args | ["SLOWLOG GET",10]
-- | --
instance | ClosableStrictRedis<ConnectionPool<Connection<host=cloud-redis-gcp-memstore.namespace.svc.cluster.local,port=6379,db=0>>>

I am not sure if this issue is specific to Kubernetes environment in any ways. This worked out of box in DEV environment where redis url was simply redis://127.0.0.1

ionelmc commented 1 month ago

Do you have a traceback? What is the redis server version?

abhinavsingh commented 1 month ago