Last active
August 29, 2015 14:08
-
-
Save bdero/d73f87055d73b394a7c8 to your computer and use it in GitHub Desktop.
ReferentialIntegrityError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nov 7 09:56:13 sandbox2o [service_variant=lms][edx.courseware][env:sandbox] ERROR [sandbox2o 15250] [views.py:486] - Error in index view: user=bdero, course=CourseDescriptorWithMixins(<xmodule.modulestore.mongo.base.CachingDescriptorSystem object at 0x84150d0>, <lms.lib.xblock.field_data.LmsFieldData object at 0x87aa510>, ScopeIds(user_id=1L, block_type=u'course', def_id=BlockUsageLocator(CourseLocator(u'MITx', u'POC101', u'3T2014', None, None), u'course', u'3T2014'), usage_id=BlockUsageLocator(CourseLocator(u'MITx', u'POC101', u'3T2014', None, None), u'course', u'3T2014'))), chapter=Week_1 section=Problem_Set_1 position=None | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views.py", line 434, in _index_bulk_op | |
context['fragment'] = section_module.render(STUDENT_VIEW) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 293, in render | |
return self.runtime.render(self, view, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1186, in render | |
return block.xmodule_runtime.render(to_render, view_name, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1049, in render | |
return super(MetricsMixin, self).render(block, view_name, context=context) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 586, in render | |
frag = view_fn(context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py", line 100, in student_view | |
rendered_child = child.render(STUDENT_VIEW, context) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 293, in render | |
return self.runtime.render(self, view, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1186, in render | |
return block.xmodule_runtime.render(to_render, view_name, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1049, in render | |
return super(MetricsMixin, self).render(block, view_name, context=context) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 586, in render | |
frag = view_fn(context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/vertical_module.py", line 30, in student_view | |
rendered_child = child.render(STUDENT_VIEW, child_context) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 293, in render | |
return self.runtime.render(self, view, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1186, in render | |
return block.xmodule_runtime.render(to_render, view_name, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1049, in render | |
return super(MetricsMixin, self).render(block, view_name, context=context) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 590, in render | |
return self.wrap_child(block, view_name, frag, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1016, in wrap_child | |
frag = wrapper(block, view, frag, context) | |
File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_modifiers.py", line 244, in add_staff_markup | |
mstart = block.start | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/fields.py", line 442, in __get__ | |
value = self.from_json(xblock._field_data.default(xblock, self.name)) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/field_data.py", line 177, in default | |
return self._field_data(block, name).default(block, name) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/field_data.py", line 201, in default | |
return self._source.default(block, name) | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/field_overrides.py", line 104, in default | |
for ancestor in _lineage(block): | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/field_overrides.py", line 150, in _lineage | |
location = modulestore().get_parent_location(block.location) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 88, in inner | |
retval = func(field_decorator=strip_key_collection, *args, **kwargs) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 527, in get_parent_location | |
return store.get_parent_location(location, **kwargs) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mongo/draft.py", line 294, in get_parent_location | |
return super(DraftModuleStore, self).get_parent_location(location, revision, **kwargs) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mongo/base.py", line 1387, in get_parent_location | |
parent = self._get_raw_parent_location(location, revision) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mongo/base.py", line 1344, in _get_raw_parent_location | |
u"{} parents claim {}".format(parents.count(), location) | |
ReferentialIntegrityError: 6 parents claim i4x://MITx/POC101/html/ChallengeProblem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment