I’m using Tutor v15.0.2
I run tutor k8s.
when I visit a unit in Studio, I got “The Studio servers encountered an error”
This also happened when I viewed the unit live.
I run tutor v15.0.2 locally (tutor local launch) on another machine with very similar plugins and settings and there was no error.
This didn’t happen in my previous image. It happened on the latest openedx image I just built.
Has anyone run into this before?
I check the k8s log and found this:
2023-02-06 18:22:06,301 ERROR 22 [django.request] [user 4] [ip x.x.x.x] log.py:224 - Internal Server Error: /api/courseware/sequence/block-v1:x+type@sequential+block@x
Traceback (most recent call last):
File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 47, in inner
response = get_response(request)
File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py”, line 75, in inner
return func(*args, **kwds)
File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py”, line 54, in wrapped_view
return view_func(*args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/django/views/generic/base.py”, line 70, in view
return self.dispatch(request, *args, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py”, line 509, in dispatch
response = self.handle_exception(exc)
File “/openedx/venv/lib/python3.8/site-packages/rest_framework/views.py”, line 506, in dispatch
response = handler(request, *args, **kwargs)
File “/openedx/edx-platform/./openedx/core/djangoapps/courseware_api/views.py”, line 587, in get
sequence, _ = get_module_by_usage_id(
File “/openedx/edx-platform/./lms/djangoapps/courseware/module_render.py”, line 1032, in get_module_by_usage_id
instance = get_module_for_descriptor(
File “/openedx/edx-platform/./lms/djangoapps/courseware/module_render.py”, line 394, in get_module_for_descriptor
return get_module_for_descriptor_internal(
File “/openedx/edx-platform/./lms/djangoapps/courseware/module_render.py”, line 768, in get_module_for_descriptor_internal
(system, student_data) = get_module_system_for_user(
File “/openedx/edx-platform/./lms/djangoapps/courseware/module_render.py”, line 691, in get_module_system_for_user
system = LmsModuleSystem(
File “/openedx/edx-platform/./lms/djangoapps/lms_xblock/runtime.py”, line 125, in init
super().init(**kwargs)
File “/openedx/edx-platform/xmodule/x_module.py”, line 1747, in init
super().init(**kwargs)
File “/openedx/edx-platform/xmodule/x_module.py”, line 1015, in init
super().init(**kwargs)
File “/openedx/venv/lib/python3.8/site-packages/xblock/runtime.py”, line 573, in init
self.user_id = None
AttributeError: can’t set attribute