Hello I have created and Xblock and I am getting this error while adding Xblock in Unit.
ItemNotFoundError: BlockKey(type=u’error’, id=u’377fb914c6fd5a1f19fe731b2faaf29456466b1c’)
=========================================
FULL ERROR LOG
System check identified no issues (0 silenced).
July 03, 2020 - 01:44:55
Django version 1.11.29, using settings ‘cms.envs.devstack_docker’
Starting development server at http://0.0.0.0:18010/
Quit the server with CONTROL-C.
2020-07-03 01:47:29,473 INFO 715 [tracking] logger.py:50 - {“username”: “edx”, “event_type”: “/xblock/”, “ip”: “172.20.0.1”, “agent”: “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36”, “host”: “localhost:18010”, “referer”: “http://localhost:18010/container/block-v1:UTC+cs098+2019_vg+type@vertical+block@53601daace374aa98bb009a86a0fa324?action=new”, “accept_language”: “en-GB,en-US;q=0.9,en;q=0.8”, “event”: “{“POST”: {}, “GET”: {}}”, “event_source”: “server”, “context”: {“user_id”: 2, “org_id”: “”, “course_id”: “”, “path”: “/xblock/”}, “time”: “2020-07-03T05:47:29.472904+00:00”, “page”: null}
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/init.py
USAGE KEY : ------ block-v1:UTC+cs098+2019_vg+branch@draft-branch+type@vertical+block@53601daace374aa98bb009a86a0fa324
BLOCK TYPE : ------ vertical
BLOCK ID : ------ 53601daace374aa98bb009a86a0fa324
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py
-------------- block_key = usage key ---------------
BLOCK KEY IS : BlockKey(type=u’vertical’, id=u’53601daace374aa98bb009a86a0fa324’)
BlockData(fields={u’display_name’: u’Unit’, u’children’: [BlockKey(type=u’error’, id=u’607001e0187a3c869b9f400684e7ac266cb1dc28’)]}, block_type=vertical, definition=5efec4e0c70306007a1ab8b9, definition_loaded=False, defaults={}, asides={}, edit_info=EditInfo(previous_version=5efec4e0c70306007a1ab8ba, update_version=5efec554c70306023f1d4cf4, source_version=UNSET, edited_on=2020-07-03 05:42:44.745000+00:00, edited_by=2, original_usage=None, original_usage_version=None, _subtree_edited_on=None, _subtree_edited_by=None))
BlockKey(type=u’vertical’, id=u’53601daace374aa98bb009a86a0fa324’)
None
=================================================================================
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/init.py
USAGE KEY : ------ block-v1:UTC+cs098+2019_vg+branch@draft-branch+type@multilib_content+block@70f7d3878048401e9f6a77f9ca00042b
BLOCK TYPE : ------ multilib_content
BLOCK ID : ------ 70f7d3878048401e9f6a77f9ca00042b
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py
-------------- block_key = usage key ---------------
BLOCK KEY IS : BlockKey(type=u’multilib_content’, id=‘70f7d3878048401e9f6a77f9ca00042b’)
BlockData(fields={}, block_type=multilib_content, definition=5efec671c7030602cbbfd18f, definition_loaded=False, defaults={}, asides={}, edit_info=EditInfo(previous_version=None, update_version=5efec671c7030602cbbfd190, source_version=UNSET, edited_on=2020-07-03 05:47:29.605330+00:00, edited_by=2, original_usage=None, original_usage_version=None, _subtree_edited_on=None, _subtree_edited_by=None))
BlockKey(type=u’multilib_content’, id=‘70f7d3878048401e9f6a77f9ca00042b’)
None
2020-07-03 01:47:29,608 WARNING 715 [xmodule.modulestore.split_mongo.caching_descriptor_system] caching_descriptor_system.py:276 - Failed to load descriptor
Traceback (most recent call last):
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 273, in xblock_from_json
for_parent=kwargs.get(‘for_parent’)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/xblock/runtime.py”, line 635, in construct_xblock_from_class
*args, **kwargs
TypeError: init() takes at least 2 arguments (1 given)
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/init.py
USAGE KEY : ------ block-v1:UTC+cs098+2019_vg+branch@draft-branch+type@vertical+block@53601daace374aa98bb009a86a0fa324
BLOCK TYPE : ------ vertical
BLOCK ID : ------ 53601daace374aa98bb009a86a0fa324
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/init.py
USAGE KEY : ------ block-v1:UTC+cs098+2019_vg+branch@draft-branch+version@5efec671c7030602cbbfd190+type@error+block@377fb914c6fd5a1f19fe731b2faaf29456466b1c
BLOCK TYPE : ------ error
BLOCK ID : ------ 377fb914c6fd5a1f19fe731b2faaf29456466b1c
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py
-------------- block_key = usage key ---------------
BLOCK KEY IS : BlockKey(type=u’course’, id=u’course’)
BlockData(fields={u’advanced_modules’: [u’multilib_content’], u’display_name’: u’Demo’, u’language’: u’en’, u’tabs’: [{u’course_staff_only’: False, u’type’: u’course_info’, u’name’: u’Home’}, {u’course_staff_only’: False, u’type’: u’courseware’, u’name’: u’Course’}, {u’course_staff_only’: False, u’type’: u’textbooks’, u’name’: u’Textbooks’}, {u’course_staff_only’: False, u’type’: u’discussion’, u’name’: u’Discussion’}, {u’course_staff_only’: False, u’type’: u’wiki’, u’name’: u’Wiki’}, {u’course_staff_only’: False, u’type’: u’progress’, u’name’: u’Progress’}], u’cert_html_view_enabled’: True, u’course_category’: u’1’, u’discussion_topics’: {u’General’: {u’id’: u’course’}}, u’start’: datetime.datetime(2030, 1, 1, 0, 0, tzinfo=<bson.tz_util.FixedOffset object at 0x7faf78816110>), u’children’: [BlockKey(type=u’chapter’, id=u’e088bf1595ef40cc861bb10e117905c7’)], u’course_subcategory’: u’1’}, block_type=course, definition=5efdc6ffc7030606baf3aebc, definition_loaded=False, defaults={}, asides={}, edit_info=EditInfo(previous_version=5efdcb98c7030609a1b431c5, update_version=5efec53bc70306023f1d4cf1, source_version=UNSET, edited_on=2020-07-03 05:42:19.699000+00:00, edited_by=2, original_usage=None, original_usage_version=None, _subtree_edited_on=None, _subtree_edited_by=None))
BlockKey(type=u’course’, id=u’course’)
None
2020-07-03 01:47:29,618 WARNING 715 [py.warnings] init.py:1564 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources/init.py:1145: DeprecationWarning: Use of … or absolute path in a resource path is not allowed and will raise exceptions in a future release.
self, resource_name
[03/Jul/2020 01:47:29] “POST /xblock/ HTTP/1.1” 200 150
2020-07-03 01:47:29,798 INFO 715 [tracking] logger.py:50 - {“username”: “edx”, “event_type”: “/xblock/block-v1:UTC+cs098+2019_vg+type@error+block@377fb914c6fd5a1f19fe731b2faaf29456466b1c/reorderable_container_child_preview”, “ip”: “172.20.0.1”, “agent”: “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36”, “host”: “localhost:18010”, “referer”: “http://localhost:18010/container/block-v1:UTC+cs098+2019_vg+type@vertical+block@53601daace374aa98bb009a86a0fa324?action=new”, “accept_language”: “en-GB,en-US;q=0.9,en;q=0.8”, “event”: “{“POST”: {}, “GET”: {”_": [“1593754946298”]}}", “event_source”: “server”, “context”: {“user_id”: 2, “org_id”: “”, “course_id”: “”, “path”: “/xblock/block-v1:UTC+cs098+2019_vg+type@error+block@377fb914c6fd5a1f19fe731b2faaf29456466b1c/reorderable_container_child_preview”}, “time”: “2020-07-03T05:47:29.798236+00:00”, “page”: null}
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/init.py
USAGE KEY : ------ block-v1:UTC+cs098+2019_vg+branch@draft-branch+type@error+block@377fb914c6fd5a1f19fe731b2faaf29456466b1c
BLOCK TYPE : ------ error
BLOCK ID : ------ 377fb914c6fd5a1f19fe731b2faaf29456466b1c
edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py
-------------- block_key = usage key ---------------
BLOCK KEY IS : BlockKey(type=u’error’, id=u’377fb914c6fd5a1f19fe731b2faaf29456466b1c’)
None
BlockKey(type=u’error’, id=u’377fb914c6fd5a1f19fe731b2faaf29456466b1c’)
2020-07-03 01:47:29,809 ERROR 715 [root] signals.py:21 - Uncaught exception from None
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner
return func(*args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py”, line 40, in inner
return func(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py”, line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/common/djangoapps/util/json_request.py”, line 53, in parse_json_into_request
return view_function(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/item.py”, line 321, in xblock_view_handler
xblock = store.get_item(usage_key)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py”, line 89, 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 255, in get_item
return store.get_item(usage_key, depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py”, line 280, in get_item
return super(DraftVersioningModuleStore, self).get_item(usage_key, depth=depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py”, line 1222, in get_item
items = self._load_items(course, [BlockKey.from_usage_key(usage_key)], depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py”, line 830, in _load_items
return [runtime.load_item(block_key, course_entry, **kwargs) for block_key in block_keys]
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 137, in _load_item
block_data = self.get_module_data(block_key, course_key)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 171, in get_module_data
raise ItemNotFoundError(block_key)
ItemNotFoundError: BlockKey(type=u’error’, id=u’377fb914c6fd5a1f19fe731b2faaf29456466b1c’)
Internal Server Error: /xblock/block-v1:UTC+cs098+2019_vg+type@error+block@377fb914c6fd5a1f19fe731b2faaf29456466b1c/reorderable_container_child_preview
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner
return func(*args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py”, line 40, in inner
return func(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py”, line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/common/djangoapps/util/json_request.py”, line 53, in parse_json_into_request
return view_function(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/item.py”, line 321, in xblock_view_handler
xblock = store.get_item(usage_key)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py”, line 89, 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 255, in get_item
return store.get_item(usage_key, depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py”, line 280, in get_item
return super(DraftVersioningModuleStore, self).get_item(usage_key, depth=depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py”, line 1222, in get_item
items = self._load_items(course, [BlockKey.from_usage_key(usage_key)], depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py”, line 830, in _load_items
return [runtime.load_item(block_key, course_entry, **kwargs) for block_key in block_keys]
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 137, in _load_item
block_data = self.get_module_data(block_key, course_key)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 171, in get_module_data
raise ItemNotFoundError(block_key)
ItemNotFoundError: BlockKey(type=u’error’, id=u’377fb914c6fd5a1f19fe731b2faaf29456466b1c’)
2020-07-03 01:47:29,811 ERROR 715 [django.request] exception.py:135 - Internal Server Error: /xblock/block-v1:UTC+cs098+2019_vg+type@error+block@377fb914c6fd5a1f19fe731b2faaf29456466b1c/reorderable_container_child_preview
Traceback (most recent call last):
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner
return func(*args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py”, line 40, in inner
return func(request, *args, **kwargs)
File “/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py”, line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/common/djangoapps/util/json_request.py”, line 53, in parse_json_into_request
return view_function(request, *args, **kwargs)
File “/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/item.py”, line 321, in xblock_view_handler
xblock = store.get_item(usage_key)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py”, line 89, 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 255, in get_item
return store.get_item(usage_key, depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py”, line 280, in get_item
return super(DraftVersioningModuleStore, self).get_item(usage_key, depth=depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py”, line 1222, in get_item
items = self._load_items(course, [BlockKey.from_usage_key(usage_key)], depth, **kwargs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py”, line 830, in _load_items
return [runtime.load_item(block_key, course_entry, **kwargs) for block_key in block_keys]
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 137, in _load_item
block_data = self.get_module_data(block_key, course_key)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/caching_descriptor_system.py”, line 171, in get_module_data
raise ItemNotFoundError(block_key)
ItemNotFoundError: BlockKey(type=u’error’, id=u’377fb914c6fd5a1f19fe731b2faaf29456466b1c’)