Possible Redis error when using new nautobot_config.py file in 1.0.1
See original GitHub issueEnvironment
- Python version: python 3.8.5
- Nautobot version: 1.0.1
- OS: Ubuntu 20.04.2
Steps to Reproduce
- Follow Nautobot install docs for Ubuntu 20.04.2 up to nautobot-server createsuperuser
- Run
nautobot-server createsuperuser
- You will see an error after defining the
Username
Expected Behavior
nautobot@gipsy-danger:~$ nautobot-server createsuperuser
Username: tim
Email address:
Password:
Password (again):
Superuser created successfully.
nautobot@gipsy-danger:~
Observed Behavior
nautobot@november-ajax:~$ nautobot-server createsuperuser
Username: tim
/opt/nautobot/lib/python3.8/site-packages/cacheops/redis.py:19: RuntimeWarning: The cacheops cache is unreachable! Error: Client sent AUTH, but no password is set
warnings.warn("The cacheops cache is unreachable! Error: %s" % e, RuntimeWarning)
Email address:
Password:
Password (again):
Superuser created successfully.
Troubleshooting
It was suggested to manually define CACHEOPS_REDIS
in the nautobot_config.py
file. This is what I did for a new, fresh troubleshooting install:
CACHEOPS_REDIS = "redis://@localhost:6379/1"
When I did that, I did not see the error on the fresh troubleshooting install:
nautobot@gipsy-danger:~$ nautobot-server createsuperuser
Username: tim
Email address:
Password:
Password (again):
Superuser created successfully.
nautobot@gipsy-danger:~$
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python - How to check if Redis server is available
If you want to test redis connection once at startup, use the ping() command. from redis import Redis redis_host = '127.0.0.1' r =...
Read more >How to Use Redis With Python
Some advanced types include geospatial items and the new stream type. Many Redis commands operate in constant O(1) time, just like retrieving a...
Read more >redis - PyPI
By default, if hiredis >= 1.0 is available, redis-py will attempt to use it for response parsing. $ pip install redis[hiredis].
Read more >Remove TLS 1.0 and 1.1 from use with Azure Cache for Redis
2 or earlier, and use the latest TLS version on .NET Framework 4.6 or later. If you're using an older version of .NET...
Read more >apache-airflow-providers-redis Documentation
This is a provider package for redis provider. All classes for this provider package are in airflow.providers.redis python package.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is what is happening:
Okay, yeah, for some reason my local environment had
1.0.1b1
installed? Confirmed. I’ll get a fix out.