Skip to content

Tutor doesn't configure Redis correctly #1278

@bradenmacdonald

Description

@bradenmacdonald

Bug description

On my Tutor Main devstack, I often see errors like this:

tutor_main_dev-cms-1       | Traceback (most recent call last):
tutor_main_dev-cms-1       |   File "/openedx/venv/lib/python3.11/site-packages/edx_event_bus_redis/internal/producer.py", line 48, in record_producing_error
tutor_main_dev-cms-1       |     raise EventProductionException(error)
tutor_main_dev-cms-1       | edx_event_bus_redis.internal.producer.EventProductionException: Error -2 connecting to edx.devstack.redis:6379. Name or service not known.

This particular error occurred when importing a course.

How to reproduce

Import a course and look for event bus exceptions in the logs. It will not cause the import to fail.

Details

The problem is the EVENT_BUS_REDIS_CONNECTION_URL Django setting. In devstack.py it defaults to redis://:password@edx.devstack.redis:6379/. This URL is from the old devstack and is incorrect.

The correct setting seems to be EVENT_BUS_REDIS_CONNECTION_URL = 'redis://redis:6379/' and this needs to be set in both the LMS and CMS.

Environment

Open edX master
tutor, version 20.0.1-main

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Pending Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions