question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible Redis error when using new nautobot_config.py file in 1.0.1

See original GitHub issue

Environment

  • Python version: python 3.8.5
  • Nautobot version: 1.0.1
  • OS: Ubuntu 20.04.2

Steps to Reproduce

  1. Follow Nautobot install docs for Ubuntu 20.04.2 up to nautobot-server createsuperuser
  2. Run nautobot-server createsuperuser
  3. 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jathanismcommented, May 13, 2021

This is what is happening:

>>> from django.conf import settings
>>> settings.CACHEOPS_REDIS
'redis://:None@localhost:6379/1'
0reactions
jathanismcommented, May 13, 2021

Okay, yeah, for some reason my local environment had 1.0.1b1 installed? Confirmed. I’ll get a fix out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found