Facing issue while installing devstack open edx

Last login: Wed Dec 29 08:25:32 2021 from 45.248.160.61
ubuntu@ip-172-31-44-155:~$ cd openEdxLilac/devstack/
ubuntu@ip-172-31-44-155:~/openEdxLilac/devstack$ sudo make dev.provision

We provision all default services as well as ‘e2e’ (end-to-end tests).

e2e is not part of DEFAULT_SERVICES because it isn’t a service;

it’s just a way to tell ./provision.sh that the fake data for end-to-end

tests should be prepared.

bash ./provision.sh credentials+discovery+ecommerce+edx_notes_api+forum+frontend-app-payment+frontend-app-publ isher+frontend-app-learning+gradebook+lms+studio+e2e

  • RED=’\033[0;31m’

  • GREEN=’\033[0;32m’

  • YELLOW=’\033[0;33m’

  • NC=’\033[0m’

  • ALL_SERVICES_IN_ORDER=’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • [[ 1 -eq 0 ]]

  • arg_string=’ credentials+discovery+ecommerce+edx_notes_api+forum+frontend-app-payment+frontend-app-publisher +frontend-app-learning+gradebook+lms+studio+e2e ’

  • requested_services=’ credentials discovery ecommerce edx_notes_api forum frontend-app-payment frontend-app-p ublisher frontend-app-learning gradebook lms studio e2e ’

  • to_provision=’ ’

  • for serv in $requested_services

  • case “$serv” in

  • service=credentials

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ credentials

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=credentials

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \c\r\e\d\e\n\t\i\a\l\s\ * ] ]

  • return 0

  • is_substring ’ ’ credentials

  • local 'str= ’

  • local substr=credentials

  • [[ == *\ \c\r\e\d\e\n\t\i\a\l\s\ * ]]

  • return 1

  • to_provision=’ credentials ’

  • for serv in $requested_services

  • case “$serv” in

  • service=discovery

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ discovery

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=discovery

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \d\i\s\c\o\v\e\r\y\ * ]]

  • return 0

  • is_substring ’ credentials ’ discovery

  • local 'str= credentials ’

  • local substr=discovery

  • [[ credentials == *\ \d\i\s\c\o\v\e\r\y\ * ]]

  • return 1

  • to_provision=’ credentials discovery ’

  • for serv in $requested_services

  • case “$serv” in

  • service=ecommerce

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ ecommerce

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=ecommerce

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \e\c\o\m\m\e\r\c\e\ * ]]

  • return 0

  • is_substring ’ credentials discovery ’ ecommerce

  • local 'str= credentials discovery ’

  • local substr=ecommerce

  • [[ credentials discovery == *\ \e\c\o\m\m\e\r\c\e\ * ]]

  • return 1

  • to_provision=’ credentials discovery ecommerce ’

  • for serv in $requested_services

  • case “$serv” in

  • service=notes

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ notes

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=notes

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \n\o\t\e\s\ * ]]

  • return 0

  • is_substring ’ credentials discovery ecommerce ’ notes

  • local 'str= credentials discovery ecommerce ’

  • local substr=notes

  • [[ credentials discovery ecommerce == *\ \n\o\t\e\s\ * ]]

  • return 1

  • to_provision=’ credentials discovery ecommerce notes ’

  • for serv in $requested_services

  • case “$serv” in

  • service=forum

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ forum

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=forum

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \f\o\r\u\m\ * ]]

  • return 0

  • is_substring ’ credentials discovery ecommerce notes ’ forum

  • local 'str= credentials discovery ecommerce notes ’

  • local substr=forum

  • [[ credentials discovery ecommerce notes == *\ \f\o\r\u\m\ * ]]

  • return 1

  • to_provision=’ credentials discovery ecommerce notes forum ’

  • for serv in $requested_services

  • case “$serv” in

  • service=frontend-app-payment

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ frontend-app-payment

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=frontend-app-payment

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \f\r\o\n\t\e\n\d-\a\p\p-\ p\a\y\m\e\n\t\ * ]]

  • return 1

  • echo -e ‘\033[0;33mService ‘’‘frontend-app-payment’’’ either doesn’’‘t exist or isn’’‘t provisionable.\0 33[0m’
    Service ‘frontend-app-payment’ either doesn’t exist or isn’t provisionable.

  • for serv in $requested_services

  • case “$serv” in

  • service=frontend-app-publisher

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ frontend-app-publishe r

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=frontend-app-publisher

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \f\r\o\n\t\e\n\d-\a\p\p-\ p\u\b\l\i\s\h\e\r\ * ]]

  • return 1

  • echo -e ‘\033[0;33mService ‘’‘frontend-app-publisher’’’ either doesn’’‘t exist or isn’’‘t provisionable. \033[0m’
    Service ‘frontend-app-publisher’ either doesn’t exist or isn’t provisionable.

  • for serv in $requested_services

  • case “$serv” in

  • service=frontend-app-learning

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ frontend-app-learning

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=frontend-app-learning

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \f\r\o\n\t\e\n\d-\a\p\p-\ l\e\a\r\n\i\n\g\ * ]]

  • return 1

  • echo -e ‘\033[0;33mService ‘’‘frontend-app-learning’’’ either doesn’’‘t exist or isn’’‘t provisionable.\ 033[0m’
    Service ‘frontend-app-learning’ either doesn’t exist or isn’t provisionable.

  • for serv in $requested_services

  • case “$serv” in

  • service=gradebook

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ gradebook

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=gradebook

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \g\r\a\d\e\b\o\o\k\ * ]]

  • return 1

  • echo -e ‘\033[0;33mService ‘’‘gradebook’’’ either doesn’’‘t exist or isn’’‘t provisionable.\033[0m’
    Service ‘gradebook’ either doesn’t exist or isn’t provisionable.

  • for serv in $requested_services

  • case “$serv” in

  • service=lms

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ lms

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=lms

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \l\m\s\ * ]]

  • return 0

  • is_substring ’ credentials discovery ecommerce notes forum ’ lms

  • local 'str= credentials discovery ecommerce notes forum ’

  • local substr=lms

  • [[ credentials discovery ecommerce notes forum == *\ \l\m\s\ * ]]

  • return 1

  • to_provision=’ credentials discovery ecommerce notes forum lms ’

  • for serv in $requested_services

  • case “$serv” in

  • echo -e ‘\033[0;33mStudio is provisioned alongside LMS.\nPass ‘’‘lms’’’ as an argument to ensure that Stud io is provisioned.\033[0m’
    Studio is provisioned alongside LMS.
    Pass ‘lms’ as an argument to ensure that Studio is provisioned.

  • continue

  • for serv in $requested_services

  • case “$serv” in

  • service=e2e

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes registrar xqueue ’ e2e

  • local 'str= lms ecommerce discovery credentials e2e forum notes registrar xqueue ’

  • local substr=e2e

  • [[ lms ecommerce discovery credentials e2e forum notes registrar xqueue == *\ \e\2\e\ * ]]

  • return 0

  • is_substring ’ credentials discovery ecommerce notes forum lms ’ e2e

  • local 'str= credentials discovery ecommerce notes forum lms ’

  • local substr=e2e

  • [[ credentials discovery ecommerce notes forum lms == *\ \e\2\e\ * ]]

  • return 1

  • to_provision=’ credentials discovery ecommerce notes forum lms e2e ’

  • to_provision_ordered=’ ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ lms

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=lms

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \l\m\s\ * ]]

  • return 0

  • to_provision_ordered=’ lms ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ ecommerce

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=ecommerce

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \e\c\o\m\m\e\r\c\e\ * ]]

  • return 0

  • to_provision_ordered=’ lms ecommerce ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ discovery

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=discovery

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \d\i\s\c\o\v\e\r\y\ * ]]

  • return 0

  • to_provision_ordered=’ lms ecommerce discovery ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ credentials

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=credentials

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \c\r\e\d\e\n\t\i\a\l\s\ * ]]

  • return 0

  • to_provision_ordered=’ lms ecommerce discovery credentials ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ e2e

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=e2e

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \e\2\e\ * ]]

  • return 0

  • to_provision_ordered=’ lms ecommerce discovery credentials e2e ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ forum

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=forum

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \f\o\r\u\m\ * ]]

  • return 0

  • to_provision_ordered=’ lms ecommerce discovery credentials e2e forum ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ notes

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=notes

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \n\o\t\e\s\ * ]]

  • return 0

  • to_provision_ordered=’ lms ecommerce discovery credentials e2e forum notes ’

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ registrar

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=registrar

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \r\e\g\i\s\t\r\a\r\ * ]]

  • return 1

  • for ordered_service in $ALL_SERVICES_IN_ORDER

  • is_substring ’ credentials discovery ecommerce notes forum lms e2e ’ xqueue

  • local 'str= credentials discovery ecommerce notes forum lms e2e ’

  • local substr=xqueue

  • [[ credentials discovery ecommerce notes forum lms e2e == *\ \x\q\u\e\u\e\ * ]]

  • return 1

  • [[ lms ecommerce discovery credentials e2e forum notes = \ ]]

  • echo -e ‘\033[0;32mWill provision the following:\n lms ecommerce discovery credentials e2e forum notes \03 3[0m’
    Will provision the following:
    lms ecommerce discovery credentials e2e forum notes

  • docker-compose up -d mysql
    [+] Running 1/1
    ⠿ Container edx.devstack.mysql Started 0.6s

  • docker-compose up -d mysql57
    [+] Running 1/1
    ⠿ Container edx.devstack.mysql57 Started 0.5s

  • needs_mongo ’ lms ecommerce discovery credentials e2e forum notes ’

  • local 'services= lms ecommerce discovery credentials e2e forum notes ’

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes ’ lms

  • local 'str= lms ecommerce discovery credentials e2e forum notes ’

  • local substr=lms

  • [[ lms ecommerce discovery credentials e2e forum notes == *\ \l\m\s\ * ]]

  • return 0

  • return 0

  • docker-compose up -d mongo
    [+] Running 1/1
    ⠿ Container edx.devstack.mongo Started 0.5s

  • echo ‘\033[0;32mWaiting for MySQL 5.6.\033[0m’
    \033[0;32mWaiting for MySQL 5.6.\033[0m

  • docker-compose exec -T mysql bash -c ‘mysql -uroot -se "SELECT EXISTS(SELECT 1 FROM mysql.user WHERE user = ‘’‘root’’’)"’

  • echo ‘\033[0;32mWaiting for MySQL 5.7.\033[0m’
    \033[0;32mWaiting for MySQL 5.7.\033[0m

  • docker-compose exec -T mysql57 bash -c ‘mysql -uroot -se "SELECT EXISTS(SELECT 1 FROM mysql.user WHERE user = ‘’‘root’’’)"’

  • printf .
    .+ sleep 1

  • docker-compose exec -T mysql57 bash -c ‘mysql -uroot -se "SELECT EXISTS(SELECT 1 FROM mysql.user WHERE user = ‘’‘root’’’)"’

  • sleep 20

  • echo -e ‘\033[0;32mMySQL ready.\033[0m’
    MySQL ready.

  • echo -e ‘\033[0;32mEnsuring MySQL 5.6 databases and users exist…\033[0m’
    Ensuring MySQL 5.6 databases and users exist…

  • docker-compose exec -T mysql bash -c ‘mysql -uroot mysql’

  • echo -e ‘\033[0;32mEnsuring MySQL 5.7 databases and users exist…\033[0m’
    Ensuring MySQL 5.7 databases and users exist…

  • docker-compose exec -T mysql57 bash -c ‘mysql -uroot mysql’

  • needs_mongo ’ lms ecommerce discovery credentials e2e forum notes ’

  • local 'services= lms ecommerce discovery credentials e2e forum notes ’

  • is_substring ’ lms ecommerce discovery credentials e2e forum notes ’ lms

  • local 'str= lms ecommerce discovery credentials e2e forum notes ’

  • local substr=lms

  • [[ lms ecommerce discovery credentials e2e forum notes == *\ \l\m\s\ * ]]

  • return 0

  • return 0

  • echo -e ‘\033[0;32mWaiting for MongoDB…\033[0m’
    Waiting for MongoDB…

  • docker-compose exec -T mongo mongo --eval ‘db.serverStatus()’

  • echo -e ‘\033[0;32mMongoDB ready.\033[0m’
    MongoDB ready.

  • echo -e ‘\033[0;32mCreating MongoDB users…\033[0m’
    Creating MongoDB users…

  • docker-compose exec -T mongo bash -c mongo
    MongoDB shell version v4.0.22
    connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
    Implicit session: session { “id” : UUID(“1abc40c0-a341-43b5-b018-1bf11c58fb1b”) }
    MongoDB server version: 4.0.22
    connection to 127.0.0.1:27017
    [
    {
    “user” : “admin”,
    “pwd” : “password”,
    “roles” : [
    “root”
    ],
    “database” : “admin”
    },
    {
    “user” : “cs_comments_service”,
    “pwd” : “password”,
    “roles” : [
    “readWrite”
    ],
    “database” : “cs_comments_service”
    },
    {
    “user” : “edxapp”,
    “pwd” : “password”,
    “roles” : [
    “readWrite”
    ],
    “database” : “edxapp”
    }
    ]
    bye

  • for service in $to_provision_ordered

  • echo -e ‘\033[0;32m Provisioning lms…\033[0m’
    Provisioning lms…

  • ./provision-lms.sh
    ++ apps=(lms studio)
    ++ ./load-db.sh edxapp
    Loading the edxapp database…
    Finished loading the edxapp database!
    ++ ./load-db.sh edxapp_csmh
    Loading the edxapp_csmh database…
    Finished loading the edxapp_csmh database!
    ++ for app in “${apps[@]}”
    ++ docker-compose up -d lms
    [+] Running 10/10
    ⠿ Container edx.devstack.elasticsearch7 Started 1.1s
    ⠿ Container edx.devstack.devpi Started 0.9s
    ⠿ Container edx.devstack.firefox Started 1.1s
    ⠿ Container edx.devstack.mysql57 Running 0.0s
    ⠿ Container edx.devstack.mongo Running 0.0s
    ⠿ Container edx.devstack.memcached Started 1.9s
    ⠿ Container edx.devstack.chrome Started 2.1s
    ⠿ Container edx.devstack.forum Started 3.3s
    ⠿ Container edx.devstack.discovery Started 3.4s
    ⠿ Container edx.devstack.lms Started 4.6s
    ++ for app in “${apps[@]}”
    ++ docker-compose up -d studio
    [+] Running 11/11
    ⠿ Container edx.devstack.devpi Running 0.0s
    ⠿ Container edx.devstack.chrome Running 0.0s
    ⠿ Container edx.devstack.elasticsearch7 Running 0.0s
    ⠿ Container edx.devstack.mongo Running 0.0s
    ⠿ Container edx.devstack.mysql57 Running 0.0s
    ⠿ Container edx.devstack.memcached Running 0.0s
    ⠿ Container edx.devstack.forum Running 0.0s
    ⠿ Container edx.devstack.discovery Running 0.0s
    ⠿ Container edx.devstack.firefox Running 0.0s
    ⠿ Container edx.devstack.lms Running 0.0s
    ⠿ Container edx.devstack.studio Started 2.3s
    ++ docker-compose exec -T lms bash -c ‘source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform && NO_PYTHON_UNINSTALL=1 paver install_prereqs’
    —> pavelib.prereqs.install_prereqs
    —> pavelib.prereqs.install_node_prereqs
    Node prereqs unchanged, skipping. …
    —> pavelib.prereqs.install_python_prereqs
    —> pavelib.prereqs.uninstall_python_packages
    NO_PYTHON_UNINSTALL is set. No attempts will be made to uninstall old Python libs.
    Python prereqs unchanged, skipping…
    pip freeze > /edx/app/edxapp/edx-platform/test_root/log/pip_freeze.log
    ************************************************** ******************************
    * WARNING: Mac users should run this from both the lms and studio shells
    * in doc ker devstack to avoid startup errors that kill your CPU.
    * For more details, see:
    * https://github.com/edx/devst ack#docker-is-using-lots-of-cpu-time-when-it-should-be-idle
    *************************************************** *****************************
    ++ docker-compose restart lms
    [+] Running 1/1
    ⠿ Container edx.devstack.lms Started 10.8s
    ++ docker-compose exec -T lms bash -c ‘source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform && paver update_db --settings devstack_docker’
    —> pavelib.servers.update_db
    —> pavelib.prereqs.install_prereqs
    —> pavelib.prereqs.install_node_prereqs
    Nod e prereqs unchanged, skipping…
    —> pavelib.prereqs.install_python_prereqs
    —> pavelib.prereqs.uninstall_pyth on_packages
    NO_PYTHON_UNINSTALL is set. No attempts will be made to uninstall old Python libs.
    Python prereqs un changed, skipping…
    pip freeze > /edx/app/edxapp/edx-platform/test_root/log/pip_freeze.log
    ******************** ************************************************************
    * WARNING: Mac users should run this from both the lms and studio shells
    * in docker devstack to avoid startup errors that kill your CPU.
    * For more details, see:
    * GitHub - edx/devstack: Get up and running quickly to develop or extend Open edX services
    ********************** **********************************************************
    NO_EDXAPP_SUDO=1 EDX_PLATFORM_SETTINGS_OVERRIDE=devs tack_docker /edx/bin/edxapp-migrate-lms --traceback --pythonpath=.
    2021-12-29 10:46:53,497 WARNING 87 [py.warn ings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/boto/pl ugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s document ation for alternative uses
    import imp

                                    2021-12-29 10:46:53,696 WARNING 87 [py.warnings] [user None] [ip None] w                    arnings.py:109 - /edx/app/edxapp/venvs/edxapp/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 Ma                    pping, MutableMapping
    
                   2021-12-29 10:46:57,039 WARNING 87 [py.warnings] [user None] [ip None] warnings.py:109 -                     /edx/app/edxapp/venvs/edxapp/src/django-wiki/wiki/plugins/links/wiki_plugin.py:9: DeprecationWarning: 'etree'                     is deprecated. Use 'xml.etree.ElementTree' instead.
                                                   from wiki.plugins.links.mdx.djangowikilinks import WikiPa                    thExtension
    
         2021-12-29 10:46:57,135 WARNING 87 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/e                    dxapp/edx-platform/openedx/core/types/admin.py:49: DeprecationWarning: Django 3.2+ available: the _admin_displ                    ay method and the AdminMethodclass should be removed from openedx.core.types
                                                                            warnings.warn(
    
                                                                                          2021-12-29 10:47:0                    0,500 WARNING 87 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/python                    3.8/site-packages/swiftclient/client.py:84: DeprecationWarning: distutils Version classes are deprecated. Use                     packaging.version instead.
                          if StrictVersion(requests.__version__) < StrictVersion('2.0.0') \
    
                                                                                           2021-12-29 10:47:                    03,287 WARNING 87 [py.warnings] [user None] [ip None] warnings.py:109 - /edx/app/edxapp/venvs/edxapp/lib/pytho                    n3.8/site-packages/model_utils/managers.py:297: DeprecationWarning: ModelBase.objects model manager will inclu                    de soft-deleted objects in an upcoming release; please use ModelBase.available_objects to continue excluding s                    oft-deleted objects. See https://django-model-utils.readthedocs.io/en/stable/models.html#softdeletablemodel fo                    r more information.
                   warnings.warn(warning_message, DeprecationWarning)
    
                                                                     System check identified some issues:
    
                                                                                                         WAR                    NINGS:
    ?: (debug_toolbar.W006) At least one DjangoTemplates TEMPLATES configuration needs to have APP_DIRS set                     to True.
              HINT: Use APP_DIRS=True for at least one django.template.backends.django.DjangoTemplates backe                    nd configuration.
               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) inst                    ead.
    

    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) inst ead.
    Traceback (most recent call last):
    File “manage.py”, line 106, in
    execute_from_command_line([ sys.argv[0]] + django_args)
    File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/core/manage ment/init.py”, line 419, in execute_from_command_line
    utility.execute()
    File “/edx/app/edxapp/venvs/ed xapp/lib/python3.8/site-packages/django/core/management/init.py”, line 413, in execute
    self.fetch_comma nd(subcommand).run_from_argv(self.argv)
    File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django /core/management/base.py”, line 354, in run_from_argv
    self.execute(*args, **cmd_options)
    File “/edx/app/ed xapp/venvs/edxapp/lib/python3.8/site-packages/django/core/management/base.py”, line 398, in execute
    output = self.handle(*args, **options)
    File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/django/core/ma nagement/base.py”, line 89, in wrapped
    res = handle_func(*args, **kwargs)
    File “/edx/app/edxapp/venvs/edxa pp/lib/python3.8/site-packages/django/core/management/commands/migrate.py”, line 95, in handle
    executor.loa der.check_consistent_history(connection)
    File “/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/djang o/db/migrations/loader.py”, line 306, in check_consistent_history
    raise InconsistentMigrationHistory(
    django .db.migrations.exceptions.InconsistentMigrationHistory: Migration consent.0001_initial is applied before its d ependency enterprise.0001_squashed_0092_auto_20200312_1650 on database ‘default’.

                                                                               Captured Task Output:
                                                                                                    --------                    -------------
    
           ---> pavelib.servers.update_db
                                         ---> pavelib.prereqs.install_prereqs
                                                                             ---> pavelib.prereqs.install_no                    de_prereqs
        ---> pavelib.prereqs.install_python_prereqs
                                                   ---> pavelib.prereqs.uninstall_python_packages
                                                                                                 pip freeze                     > /edx/app/edxapp/edx-platform/test_root/log/pip_freeze.log
                                                         NO_EDXAPP_SUDO=1 EDX_PLATFORM_SETTINGS_OVERRIDE=dev   stack_docker /edx/bin/edxapp-migrate-lms --traceback --pythonpath=.
    

    Build failed running pavelib.servers.updat e_db: Subprocess return code: 1
    make: *** [Makefile:224: dev.provision] Error 1