Hi Guys,
I am upgrading the OpenEdX system from the native Koa version to the Tutor Palm version. The migration is almost 80% complete. All custom and native features are working, and the Course Studio part is functioning perfectly. However, I am unable to open courses in the LMS due to this error.
Error in /courses/course-v1:RICE+90_51_5737+2022_Q1/course/: user=XXXXXXXX, effective_user=XXXXXX, course=course-v1:RICE+90_51_5737+2022_Q1
Traceback (most recent call last):
File “/openedx/edx-platform/./lms/djangoapps/courseware/views/views.py”, line 509, in get
return super().get(request, course=course, page_context=page_context, **kwargs)
File “/openedx/venv/lib/python3.8/site-packages/web_fragments/views.py”, line 23, in get
fragment = self.render_to_fragment(request, **kwargs)
File “/openedx/edx-platform/./openedx/features/course_experience/views/course_home.py”, line 80, in render_to_fragment
return home_fragment_view.render_to_fragment(request, course_id=course_id, **kwargs)
File “/openedx/edx-platform/./openedx/features/course_experience/views/course_home.py”, line 152, in render_to_fragment
outline_fragment = CourseOutlineFragmentView().render_to_fragment(
File “/openedx/edx-platform/./openedx/features/course_experience/views/course_outline.py”, line 103, in render_to_fragment
html = render_to_string(‘course_experience/course-outline-fragment.html’, context)
File “/openedx/venv/lib/python3.8/site-packages/django/template/loader.py”, line 62, in render_to_string
return template.render(context, request)
File “/openedx/venv/lib/python3.8/site-packages/django/template/backends/django.py”, line 61, in render
return self.template.render(context)
File “/openedx/edx-platform/common/djangoapps/edxmako/template.py”, line 82, in render
return self.mako_template.render_unicode(**context_dictionary)
File “/openedx/venv/lib/python3.8/site-packages/mako/template.py”, line 444, in render_unicode
return runtime._render(
File “/openedx/venv/lib/python3.8/site-packages/mako/runtime.py”, line 874, in _render
_render_context(
File “/openedx/venv/lib/python3.8/site-packages/mako/runtime.py”, line 916, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File “/openedx/venv/lib/python3.8/site-packages/mako/runtime.py”, line 943, in exec_template
callable(context, *args, **kwargs)
File “/tmp/mako_lms/3577439336669982629/course_experience/course-outline-fragment.html.py”, line 357, in render_body
__M_writer(filters.html_escape(filters.decode.utf8(static.webpack(entry=‘CourseOutline’))))
File “/tmp/mako_lms/1ff981c2157d500713c1ce6bf7fdbce2/static_content.html.py”, line 282, in render_webpack
__M_writer(filters.html_escape(filters.decode.utf8(HTML(render_bundle(entry, extension=None, config=‘DEFAULT’, attrs=attrs)))))
File “/openedx/venv/lib/python3.8/site-packages/webpack_loader/templatetags/webpack_loader.py”, line 12, in render_bundle
tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)
File “/openedx/venv/lib/python3.8/site-packages/webpack_loader/utils.py”, line 62, in get_as_tags
bundle = _get_bundle(bundle_name, extension, config)
File “/openedx/venv/lib/python3.8/site-packages/webpack_loader/utils.py”, line 40, in _get_bundle
bundle = get_loader(config).get_bundle(bundle_name)
File “/openedx/venv/lib/python3.8/site-packages/webpack_loader/loader.py”, line 82, in get_bundle
raise WebpackBundleLookupError(‘Cannot resolve bundle {0}.’.format(bundle_name))
webpack_loader.exceptions.WebpackBundleLookupError: Cannot resolve bundle CourseOutline.`"
**Error due to this line "super().get(request, course=course, page_context=page_context, kwargs)"
course
<CourseBlockWithMixins @0E2D license=None, parent=None, name=None, tags=, display_name=‘Geography’, course_edit_method=‘Studio’, days_early_for_beta=None, due=None, edxnotes=False, edxnotes_visibility=True, giturl=None, graceperiod=None, graded=False, group_access={}, in_entrance_exam=False …
page_context
{‘course’: <CourseBlockWithMixins @0E2D license=None, parent=None, name=None, tags=, display_name=‘Geography’, course_edit_method=‘Studio’, days_early_for_beta=None, due=None, edxnotes=False, edxnotes_visibility=True, giturl=None, graceperiod=None, graded=False, group_access={}, in_entrance_exam=False, matlab_api_key=None, max_attempts=None, relative_weeks_due=None, rerandomize=‘never’, self_paced=False, show_correctness=‘always’, …
and for the native version koa this object type is different this is Working
course
CourseDescriptorWithMixins(CombinedSystem(None, <xmodule.modulestore.split_mongo.caching_descriptor_system.CachingDescriptorSystem object at 0x7fe6faef9880>), InheritingFieldData(<xmodule.modulestore.split_mongo.split_mongo_kvs.SplitMongoKVS object at 0x7fe6facf7f40>), ScopeIds(user_id=None, block_type=‘course’, def_id=BlockUsageLocator(CourseLocator(‘RICE’, ‘10_10_2178’, ‘2021_Q1’, None, None), ‘course’, ‘course’), usage_id=BlockUsageLocator(CourseLocator(‘RICE’, ‘10_10_2178’, ‘2021_Q1’, None, None), ‘course’, ‘course’)))
page_context
{‘course’: CourseDescriptorWithMixins(CombinedSystem(None, <xmodule.modulestore.split_mongo.caching_descriptor_system.CachingDescriptorSystem object at 0x7fe6faef9880>), InheritingFieldData(<xmodule.modulestore.split_mongo.split_mongo_kvs.SplitMongoKVS object at 0x7fe6facf7f40>), ScopeIds(user_id=None, block_type=‘course’, def_id=BlockUsageLocator(CourseLocator(‘RICE’, ‘10_10_2178’, ‘2021_Q1’, None, None), …
Please let me know if anyone has faced this type of issue.