Errors when importing demo course

Hello, i have been exploring tutor and openedx for like three days.
I am using ubuntu 20.04 fresh install. I installed tutor and other required packages. i can do ‘tutor local quickstart’ with no problem. then i did ‘tutor local stop’ and then i did ‘tutor images build openedx’ without changing any files to see what happens. then i also did ‘tutor local quickstart’ again and it is fine. but then i try to import demo course with ‘tutor local importdemocourse’ and i started getting error. here is the log.

docker-compose -f /home/polar/openedx/test1/env/local/docker-compose.yml -f /home/polar/openedx/test1/env/local/docker-compose.prod.yml --project-name tutor_local stop
Stopping tutor_local_cms-worker_1    ... done
Stopping tutor_local_lms-worker_1    ... done
Stopping tutor_local_cms_1           ... done
Stopping tutor_local_lms_1           ... done
Stopping tutor_local_mongodb_1       ... done
Stopping tutor_local_redis_1         ... done
Stopping tutor_local_elasticsearch_1 ... done
Stopping tutor_local_caddy_1         ... done
Stopping tutor_local_mysql_1         ... done
Stopping tutor_local_smtp_1          ... done
Stopping tutor_local_mfe_1           ... done
polar@polar-X510UNR:~/openedx/test1$ tutor local importdemocourse
Importing demo course
docker-compose -f /home/polar/openedx/test1/env/local/docker-compose.yml -f /home/polar/openedx/test1/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/polar/openedx/test1/env/local/docker-compose.jobs.yml run --rm cms-job sh -e -c echo "Loading settings $DJANGO_SETTINGS_MODULE"

# Import demo course
git clone https://github.com/openedx/edx-demo-course --branch open-release/maple.2 --depth 1 ../edx-demo-course
python ./manage.py cms import ../data ../edx-demo-course

# Re-index courses
./manage.py cms reindex_course --all --setup
Starting tutor_local_elasticsearch-permissions_1 ... done
Starting tutor_local_mysql_1                     ... done
Starting tutor_local_redis-permissions_1         ... done
Starting tutor_local_mongodb-permissions_1       ... done
Starting tutor_local_redis_1                     ... done
Starting tutor_local_elasticsearch_1             ... done
Starting tutor_local_mongodb_1                   ... done
Loading settings cms.envs.tutor.production
Cloning into '../edx-demo-course'...
remote: Enumerating objects: 1444, done.
remote: Counting objects: 100% (1444/1444), done.
remote: Compressing objects: 100% (1224/1224), done.
remote: Total 1444 (delta 181), reused 1397 (delta 179), pack-reused 0
Receiving objects: 100% (1444/1444), 10.41 MiB | 1.25 MiB/s, done.
Resolving deltas: 100% (181/181), done.
Note: switching to '9f26988f63feb8bc8bcb46f0544bf1f7f775f45c'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

2022-04-10 07:49:54,983 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

2022-04-10 07:49:55,060 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/botocore/vendored/requests/packages/urllib3/_collections.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import Mapping, MutableMapping

2022-04-10 07:49:57,416 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_display method and the AdminMethodclass should be removed from openedx.core.types
  warnings.warn(

2022-04-10 07:49:57,622 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/storages/backends/s3boto.py:41: DeprecationWarning: The S3BotoStorage backend is deprecated in favor of the S3Boto3Storage backend and will be removed in django-storages 1.8. This backend is mostly in bugfix only mode and has been for quite a while (in much the same way as its underlying library 'boto'). For performance, security and new feature reasons it is _strongly_ recommended that you update to the S3Boto3Storage backend. Please see the migration docs https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#migrating-boto-to-boto3.
  warnings.warn(

System check identified some issues:

WARNINGS:
consent.DataSharingConsent.granted: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
	HINT: Use BooleanField(null=True) instead.
consent.HistoricalDataSharingConsent.granted: (fields.W903) NullBooleanField is deprecated. Support for it (except in historical migrations) will be removed in Django 4.0.
	HINT: Use BooleanField(null=True) instead.
Importing...
    data_dir=../data, source_dirs=['../edx-demo-course']
    Importing static content? True
    Importing python lib? True
2022-04-10 07:50:01,404 INFO 17 [xmodule.modulestore.xml] [user None] [ip None] xml.py:434 - Course import None: Starting courselike import from ../edx-demo-course
2022-04-10 07:50:01,407 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/edx-platform/common/lib/xmodule/xmodule/x_module.py:1355: FieldDataDeprecationWarning: Passing field_data as a constructor argument to Runtimes is deprecated
  super().__init__(**kwargs)

2022-04-10 07:50:01,464 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/xblock/runtime.py:1023: UserIdDeprecationWarning: Runtime.user_id is deprecated
  scope_ids = ScopeIds(self.user_id, aside_type, aside_def_id, aside_usage_id)

2022-04-10 07:50:01,570 INFO 17 [edxval.models] [user None] [ip None] models.py:704 - VAL: Video created with id [131021eb-0b71-4df2-b2d7-9a52ff901d45] and status [external]
2022-04-10 07:50:01,575 WARNING 17 [edxval.api] [user None] [ip None] api.py:1178 - [edx-val] "en" transcript "subs_name_of_file.srt.sjson" for video "131021eb-0b71-4df2-b2d7-9a52ff901d45" is not found.
2022-04-10 07:50:01,606 WARNING 17 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/dateutil/parser.py:314: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  if (isinstance(tzinfos, collections.Callable) or

2022-04-10 07:50:01,637 INFO 17 [edxval.models] [user None] [ip None] models.py:704 - VAL: Video created with id [3cfef72c-283f-46bb-8c40-8136c725a87b] and status [external]
2022-04-10 07:50:01,672 WARNING 17 [edx_toggles.toggles.internal.waffle.flag] [user None] [ip None] flag.py:79 - Flag 'edxval.override_existing_imported_transcripts' accessed without a request, which is likely in the context of a celery task.
2022-04-10 07:50:01,696 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:01,738 INFO 17 [edxval.models] [user None] [ip None] models.py:704 - VAL: Video created with id [874490cf-94d8-443f-8327-9b1c2588c40c] and status [external]
2022-04-10 07:50:01,793 WARNING 17 [edx_toggles.toggles.internal.waffle.flag] [user None] [ip None] flag.py:79 - Flag 'edxval.override_existing_imported_transcripts' accessed without a request, which is likely in the context of a celery task.
2022-04-10 07:50:01,815 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:01,846 INFO 17 [edxval.models] [user None] [ip None] models.py:704 - VAL: Video created with id [85994109-f386-41d8-a97a-b5b126e4767c] and status [external]
2022-04-10 07:50:01,868 ERROR 17 [xmodule.vertical_block] [user None] [ip None] vertical_block.py:207 - Unable to load child when parsing Vertical. Continuing...
Traceback (most recent call last):
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/vertical_block.py", line 204, in definition_from_xml
    child_block = system.process_xml(etree.tostring(child, encoding='unicode'))
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/xml.py", line 165, in process_xml
    descriptor = self.xblock_from_node(
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1676, in xblock_from_node
    self._convert_reference_fields_to_keys(block)  # difference from XBlock.runtime
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 1721, in _convert_reference_fields_to_keys
    field_value = getattr(xblock, field.name)
  File "/openedx/venv/lib/python3.8/site-packages/xblock/fields.py", line 512, in __get__
    value = self.from_json(field_data.get(xblock, self.name))
  File "/openedx/venv/lib/python3.8/site-packages/xblock/fields.py", line 818, in from_json
    raise TypeError('Value stored in a List must be None or a list, found %s' % type(value))
TypeError: Value stored in a List must be None or a list, found <class 'str'>
2022-04-10 07:50:01,872 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:01,896 INFO 17 [edxval.models] [user None] [ip None] models.py:704 - VAL: Video created with id [5c1ed554-e5c8-4b11-8d87-a96711cc4b08] and status [external]
2022-04-10 07:50:01,921 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:01,941 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:01,975 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:01,999 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,017 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,035 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,052 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,068 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,083 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,100 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,161 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,179 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,199 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,239 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,266 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,295 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,317 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,361 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,399 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,451 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,488 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,504 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,521 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,542 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,559 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,577 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,594 WARNING 17 [root] [user None] [ip None] mixins.py:518 - XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
2022-04-10 07:50:02,718 INFO 17 [xmodule.modulestore.xml] [user None] [ip None] xml.py:529 - Course import None: Done with courselike import from ../edx-demo-course
2022-04-10 07:50:33,031 ERROR 17 [mongodb_proxy] [user None] [ip None] mongodb_proxy.py:57 - Attempt 0
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/mongodb_proxy.py", line 55, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session
    server_session = self._get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session
    return self._topology.get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session
    self._select_servers_loop(
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongodb:27017: [Errno -3] Temporary failure in name resolution
2022-04-10 07:51:03,207 ERROR 17 [mongodb_proxy] [user None] [ip None] mongodb_proxy.py:57 - Attempt 1
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/mongodb_proxy.py", line 55, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session
    server_session = self._get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session
    return self._topology.get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session
    self._select_servers_loop(
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongodb:27017: [Errno -3] Temporary failure in name resolution
2022-04-10 07:51:33,408 ERROR 17 [mongodb_proxy] [user None] [ip None] mongodb_proxy.py:57 - Attempt 2
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/mongodb_proxy.py", line 55, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session
    server_session = self._get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session
    return self._topology.get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session
    self._select_servers_loop(
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongodb:27017: [Errno -3] Temporary failure in name resolution
2022-04-10 07:52:03,582 ERROR 17 [mongodb_proxy] [user None] [ip None] mongodb_proxy.py:57 - Attempt 3
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/mongodb_proxy.py", line 55, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session
    server_session = self._get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session
    return self._topology.get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session
    self._select_servers_loop(
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongodb:27017: [Errno -3] Temporary failure in name resolution
2022-04-10 07:52:33,767 ERROR 17 [mongodb_proxy] [user None] [ip None] mongodb_proxy.py:57 - Attempt 4
Traceback (most recent call last):
  File "/openedx/venv/lib/python3.8/site-packages/mongodb_proxy.py", line 55, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session
    server_session = self._get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session
    return self._topology.get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session
    self._select_servers_loop(
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongodb:27017: [Errno -3] Temporary failure in name resolution
Traceback (most recent call last):
  File "./manage.py", line 106, in <module>
    execute_from_command_line([sys.argv[0]] + django_args)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/openedx/edx-platform/cms/djangoapps/contentstore/management/commands/import.py", line 66, in handle
    course_items = import_course_from_xml(
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_importer.py", line 775, in import_course_from_xml
    return list(manager.run_imports())
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_importer.py", line 550, in run_imports
    dest_id, runtime = self.get_dest_id(courselike_key)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_importer.py", line 608, in get_dest_id
    existing_id = self.store.has_course(dest_id, ignore_case=True)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 82, in inner
    retval = func(field_decorator=strip_key_collection, *args, **kwargs)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 438, in has_course
    store = self._get_modulestore_for_courselike(course_id)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 208, in _get_modulestore_for_courselike
    if has_locator(store):
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", line 206, in <lambda>
    has_locator = lambda store: store.has_course(locator)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 1120, in has_course
    course_index = self.get_course_index(course_id, ignore_case)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", line 301, in get_course_index
    return self.db_connection.get_course_index(course_key, ignore_case)
  File "/openedx/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/mongo_connection.py", line 374, in get_course_index
    return self.course_index.find_one(query)
  File "/openedx/venv/lib/python3.8/site-packages/mongodb_proxy.py", line 55, in wrapper
    return func(*args, **kwargs)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/collection.py", line 1273, in find_one
    for result in cursor.limit(-1):
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1156, in next
    if len(self.__data) or self._refresh():
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/cursor.py", line 1050, in _refresh
    self.__session = self.__collection.database.client._ensure_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1810, in _ensure_session
    return self.__start_session(True, causal_consistency=False)
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1763, in __start_session
    server_session = self._get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1796, in _get_server_session
    return self._topology.get_server_session()
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 482, in get_server_session
    self._select_servers_loop(
  File "/openedx/venv/lib/python3.8/site-packages/pymongo/topology.py", line 208, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mongodb:27017: [Errno -3] Temporary failure in name resolution
Error: Command failed with status 1: docker-compose -f /home/polar/openedx/test1/env/local/docker-compose.yml -f /home/polar/openedx/test1/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/polar/openedx/test1/env/local/docker-compose.jobs.yml run --rm cms-job sh -e -c echo "Loading settings $DJANGO_SETTINGS_MODULE"

# Import demo course
git clone https://github.com/openedx/edx-demo-course --branch open-release/maple.2 --depth 1 ../edx-demo-course
python ./manage.py cms import ../data ../edx-demo-course

# Re-index courses
./manage.py cms reindex_course --all --setup

This is my first time posting here, so may not be correct format to ask. if not, i do apologize in advanced.

I have the same problem as you and hope to get help

i have been exploring tutor and openedx for like three days.too,it’s so hard

Hi, I had the same issue and i just fixed it.
The topic I created - Mongodb ServerSelectionTimeoutError
You can try it and let me know if it works.

Please check that your mongodb container is running without error:

tutor local status | grep mongodb
tutor local logs --tail=100 mongodb