Hi all,
I upgraded to the latest this weekend. While it worked fine on my local dev environment, I see the following error in the production server:
(.venv) netbox@labman-app:/opt/netbox$ pip list | grep django-cacheops
django-cacheops 4.1
(.venv) netbox@labman-app:/opt/netbox$ python netbox/manage.py invalidate all
/opt/netbox/.venv/lib/python3.5/site-packages/cacheops/redis.py:21: RuntimeWarning: The cacheops cache is unreachable! Error: Authentication required.
warnings.warn("The cacheops cache is unreachable! Error: %s" % e, RuntimeWarning)
I verified I can connect with redis-cli, and authenticate using the configured password.
$ redis-cli
# Redis required for caching in v2.6
REDIS = {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': 'supersecret',
'DATABASE': 0,
'CACHE_DATABASE': 1,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
I assume there should be a db1 under the keyspace, which I see in the dev environment on my local machine, so I assume the db1 is not getting auto created? I am not a redis expert, but I don't recall creating the db1 on my local host.
jguy@jguy-mac ~/PycharmProjects/netbox $ redis-cli
127.0.0.1:6379> auth supersecret
OK
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> info keyspace
# Keyspace
db1:keys=64,expires=0,avg_ttl=0
Note, I do not have the webhooks enabled, hence the db0 should not be there.
Any ideas how to correct this?
Jason