redis.exceptions.ConnectionError when using IPv6 #4892

Closed
opened 2025-12-29 19:21:43 +01:00 by adam · 0 comments
Owner

Originally created by @SRv6d on GitHub (May 9, 2021).

NetBox version

v2.11.3

Python version

3.7

Steps to Reproduce

  1. Use an IPv6 address as Redis Backend.
# Redis database settings.
REDIS = {
    'tasks': {
        'HOST': '::1',
        'PORT': 6379,
        'PASSWORD': '',
        'DATABASE': 0,
        'SSL': False,
    },
    'caching': {
        'HOST': '::1',
        'PORT': 6379,
        'PASSWORD': '',
        'DATABASE': 1,
        'SSL': False,
    }
}

Expected Behavior

Used to work when using DNS that resolved to an IPv6 address.
Should work with both resolved and literal IPv6.

Observed Behavior

<class 'redis.exceptions.ConnectionError'>

Error 97 connecting to ::1:6379. Address family not supported by protocol.

Python version: 3.7.3
NetBox version: 2.11.3
Originally created by @SRv6d on GitHub (May 9, 2021). ### NetBox version v2.11.3 ### Python version 3.7 ### Steps to Reproduce 1. Use an IPv6 address as Redis Backend. ``` # Redis database settings. REDIS = { 'tasks': { 'HOST': '::1', 'PORT': 6379, 'PASSWORD': '', 'DATABASE': 0, 'SSL': False, }, 'caching': { 'HOST': '::1', 'PORT': 6379, 'PASSWORD': '', 'DATABASE': 1, 'SSL': False, } } ``` ### Expected Behavior Used to work when using DNS that resolved to an IPv6 address. Should work with both resolved and literal IPv6. ### Observed Behavior ``` <class 'redis.exceptions.ConnectionError'> Error 97 connecting to ::1:6379. Address family not supported by protocol. Python version: 3.7.3 NetBox version: 2.11.3 ```
adam added the type: bug label 2025-12-29 19:21:43 +01:00
adam closed this issue 2025-12-29 19:21:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4892