Course import stuck on "Unpacking" stage

Hello!

So we are trying to import a course through the import option but it seems to be stuck on the “Unpacking” stage for a long time. We checked the logs too, but they don’t say anything useful that we can debug.

Processing: Screenshot 2021-10-07 164226.png…


2021-10-07 08:28:21,605 INFO 2378 [openedx.core.djangoapps.content.course_overviews.models] models.py:150 - Updating course overview for course-v1:KnE+CS101+2021_Oct.
2021-10-07 08:28:21,750 INFO 2378 [celery_utils.logged_task] logged_task.py:31 - Task lms.djangoapps.discussion.tasks.update_discussions_map[2539f456-cfc1-454b-b5d2-22e6e3e241d3] submitted with arguments [{'course_id': u'course-v1:KnE+CS101+2021_Oct'}], None
2021-10-07 08:28:21,795 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function listen_for_course_publish at 0x7fe777d624d0> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:21,798 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function _listen_for_course_publish at 0x7fe777b0c5d0> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:21,799 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function _listen_for_course_publish at 0x7fe777b106d0> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:21,799 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function update_block_structure_on_course_publish at 0x7fe777b19550> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:21,800 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function _listen_for_course_publish at 0x7fe777b1e050> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:21,800 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function update_discussions_on_course_publish at 0x7fe777acc850> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:21,800 INFO 2378 [xmodule.modulestore.django] django.py:198 - Sent course_published signal to <function trigger_update_xblocks_cache_task at 0x7fe777a8d150> with kwargs {'course_key': CourseLocator(u'KnE', u'CS101', u'2021_Oct', None, None)}. Response was: None
2021-10-07 08:28:38,449 INFO 2377 [contentstore.views.import_export] import_export.py:201 - Course import course-v1:KnE+CS101+2021_Oct: Upload complete

Hi, would anyone be able to help on this? I tried with another sample edx import file too and that too is just stuck on the unpacking stage. The logs too just don’t say anything after the Upload complete stage.

2021-10-07 08:10:37,754 WARNING 2376 [django.security.csrf] csrf.py:160 - Forbidden (Referer checking failed - no Referer.): /
2021-10-07 08:27:41,110 INFO 2376 [audit] models.py:2245 - Login success - user.id: 3
2021-10-07 08:56:35,543 WARNING 2376 [openedx.core.djangoapps.catalog.utils] utils.py:103 - Failed to get program UUIDs from the cache for site example.com.
2021-10-07 09:17:42,999 WARNING 30968 [enterprise.utils] utils.py:50 - Could not import Registry from third_party_auth.provider
2021-10-07 09:17:42,999 WARNING 30968 [enterprise.utils] utils.py:51 - cannot import name _LTI_BACKENDS
2021-10-07 09:17:43,226 WARNING 30935 [enterprise.utils] utils.py:50 - Could not import Registry from third_party_auth.provider
2021-10-07 09:17:43,226 WARNING 30935 [enterprise.utils] utils.py:51 - cannot import name _LTI_BACKENDS
2021-10-07 09:17:43,252 WARNING 30990 [enterprise.utils] utils.py:50 - Could not import Registry from third_party_auth.provider
2021-10-07 09:17:43,253 WARNING 30990 [enterprise.utils] utils.py:51 - cannot import name _LTI_BACKENDS
2021-10-07 09:18:32,661 WARNING 2375 [openedx.core.djangoapps.catalog.utils] utils.py:103 - Failed to get program UUIDs from the cache for site example.com.

==> /opt/bitnami/apps/edx/var/log/cms/edx.log <==
  File "/opt/bitnami/apps/edx/venvs/edxapp/lib/python2.7/site-packages/problem_builder/settings.py", line 69, in <module>
    with open(os.path.join(BASE_DIR, 'problem_builder/translations/config.yaml'), 'r') as locale_config_file:
IOError: [Errno 2] No such file or directory: '/opt/bitnami/apps/edx/venvs/edxapp/lib/python2.7/site-packages/problem_builder/translations/config.yaml'
2021-10-07 09:18:51,218 WARNING 2378 [py.warnings] locator.py:863 - /tmp/mako_cms/cd8721f141d3b2cc09b652597e74e19f/checklists.html.py:122: DeprecationWarning: Name is no longer supported as a property of Locators. Please use the block_id property.
  __M_writer(js_escaped_string(context_course.location.name ))

2021-10-07 09:18:51,219 WARNING 2378 [py.warnings] locator.py:889 - /tmp/mako_cms/cd8721f141d3b2cc09b652597e74e19f/checklists.html.py:130: DeprecationWarning: Revision is no longer supported as a property of Locators. Please use the branch property.
  __M_writer(js_escaped_string(context_course.location.revision ))

2021-10-07 09:21:10,789 INFO 2377 [contentstore.views.import_export] import_export.py:201 - Course import course-v1:KnowledgeE+P1+2022: Upload complete

@sushantv can you make sure the course you are using to import have any

  1. Unpublished changes (If yes, publish them and re import)
  2. Any special characters used in the course
  3. Any such XBlock which is not integrated on the platform where you are importing the course

Thanks for your help @Hamood_Qasim

We did check all this but the issue still remains. We also tried exporting a course and that too just gets stuck on the “Exporting” phase.