The error seems to be caused by a Python bug of some sort when trying to look up course prices:
lms_1 | 2021-03-17 11:21:25,989 INFO 6 [tracking] [user 3] [ip 173.73.80.226] logger.py:42 - {“name”: “/courses/course-v1:TestOrg+TestCourse+2021_V1/about”, “context”: {“course_id”: “course-v1:TestOrg+TestCourse+2021_V1”, “course_user_tags”: {}, “user_id”: 3, “path”: “/courses/course-v1:TestOrg+TestCourse+2021_V1/about”, “org_id”: “TestOrg”}, “username”: “User”, “session”: “3fc229763de1a25fdb35125cf9da2fbd”, “ip”: “173.73.80.226”, “agent”: “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36”, “host”: “x.my.domain”, “referer”: “https://studio.x.my.domain/”, “accept_language”: “en-US,en;q=0.9”, “event”: “{"GET": {}, "POST": {}}”, “time”: “2021-03-17T11:21:25.989016+00:00”, “event_type”: “/courses/course-v1:TestOrg+TestCourse+2021_V1/about”, “event_source”: “server”, “page”: null}
lms_1 | 2021-03-17 11:21:26,008 INFO 6 [openedx.core.djangoapps.cors_csrf.helpers] [user 3] [ip 173.73.80.226] helpers.py:61 - Domain ‘studio.x.my.domain’ is not on the cross domain whitelist. Add the domain to CORS_ORIGIN_WHITELIST
or set CORS_ORIGIN_ALLOW_ALL
to True in the settings.
lms_1 | 2021-03-17 11:21:26,088 ERROR 6 [root] [user None] [ip None] signals.py:22 - Uncaught exception from None
lms_1 | Traceback (most recent call last):
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 34, in inner
lms_1 | response = get_response(request)
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 115, in _get_response
lms_1 | response = self.process_exception_by_middleware(e, request)
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 113, in _get_response
lms_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1 | File “/opt/pyenv/versions/3.8.6/lib/python3.8/contextlib.py”, line 75, in inner
lms_1 | return func(*args, **kwds)
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py”, line 142, in _wrapped_view
lms_1 | response = view_func(request, *args, **kwargs)
lms_1 | File “/openedx/edx-platform/common/djangoapps/util/views.py”, line 43, in inner
lms_1 | response = view_func(request, *args, **kwargs)
lms_1 | File “/openedx/edx-platform/common/djangoapps/util/cache.py”, line 91, in wrapper
lms_1 | return view_func(request, *args, **kwargs)
lms_1 | File “./lms/djangoapps/courseware/views/views.py”, line 925, in course_about
lms_1 | registration_price, course_price = get_course_prices(course)
lms_1 | File “/openedx/edx-platform/common/djangoapps/course_modes/models.py”, line 852, in get_course_prices
lms_1 | registration_price = CourseMode.min_course_price_for_currency(
lms_1 | File “/openedx/edx-platform/common/djangoapps/course_modes/models.py”, line 769, in min_course_price_for_currency
lms_1 | return min(mode.min_price for mode in modes if mode.currency.lower() == currency.lower())
lms_1 | ValueError: min() arg is an empty sequence
lms_1 | 2021-03-17 11:21:26,214 ERROR 6 [django.request] [user 3] [ip 173.73.80.226] log.py:222 - Internal Server Error: /courses/course-v1:TestOrg+TestCourse+2021_V1/about
lms_1 | Traceback (most recent call last):
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 34, in inner
lms_1 | response = get_response(request)
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 115, in _get_response
lms_1 | response = self.process_exception_by_middleware(e, request)
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 113, in _get_response
lms_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1 | File “/opt/pyenv/versions/3.8.6/lib/python3.8/contextlib.py”, line 75, in inner
lms_1 | return func(*args, **kwds)
lms_1 | File “/openedx/venv/lib/python3.8/site-packages/django/utils/decorators.py”, line 142, in _wrapped_view
lms_1 | response = view_func(request, *args, **kwargs)
lms_1 | File “/openedx/edx-platform/common/djangoapps/util/views.py”, line 43, in inner
lms_1 | response = view_func(request, *args, **kwargs)
lms_1 | File “/openedx/edx-platform/common/djangoapps/util/cache.py”, line 91, in wrapper
lms_1 | return view_func(request, *args, **kwargs)
lms_1 | File “./lms/djangoapps/courseware/views/views.py”, line 925, in course_about
lms_1 | registration_price, course_price = get_course_prices(course)
lms_1 | File “/openedx/edx-platform/common/djangoapps/course_modes/models.py”, line 852, in get_course_prices
lms_1 | registration_price = CourseMode.min_course_price_for_currency(
lms_1 | File “/openedx/edx-platform/common/djangoapps/course_modes/models.py”, line 769, in min_course_price_for_currency
lms_1 | return min(mode.min_price for mode in modes if mode.currency.lower() == currency.lower())
lms_1 | ValueError: min() arg is an empty sequence
lms_1 | [pid: 6|app: 0|req: 590/1399] 172.18.0.15 () {58 vars in 1860 bytes} [Wed Mar 17 11:21:25 2021] GET /courses/course-v1:TestOrg+TestCourse+2021_V1/about => generated 8976 bytes in 358 msecs (HTTP/1.0 500) 7 headers in 518 bytes (1 switches on core 0)
nginx_1 | 172.18.0.3 - - [17/Mar/2021:11:21:26 +0000] http://x.my.domain “GET /courses/course-v1:TestOrg+TestCourse+2021_V1/about HTTP/1.1” 500 8976 “https://studio.x.my.domain/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36” “173.73.80.226”
I notice that this started occurring after I created a “Course Mode” for one class of Honor (which puts the price of 0), but I didn’t do this for all the other classes. Is this a known bug?