Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==============================================
- docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local rm --stop --force
- Stopping tutor_local_nginx_1 ... done
- Stopping tutor_local_cms-worker_1 ... done
- Stopping tutor_local_cms_1 ... done
- Stopping tutor_local_lms-worker_1 ... done
- Stopping tutor_local_lms_1 ... done
- Stopping tutor_local_forum_1 ... done
- Stopping tutor_local_xqueue_consumer_1 ... done
- Stopping tutor_local_notes_1 ... done
- Stopping tutor_local_xqueue_1 ... done
- Stopping tutor_local_memcached_1 ... done
- Stopping tutor_local_rabbitmq_1 ... done
- Stopping tutor_local_mongodb_1 ... done
- Stopping tutor_local_mysql_1 ... done
- Stopping tutor_local_elasticsearch_1 ... done
- Stopping tutor_local_smtp_1 ... done
- Going to remove tutor_local_nginx_1, tutor_local_cms-worker_1, tutor_local_cms_1, tutor_local_lms-worker_1, tutor_local_lms_1, tutor_local_forum_1, tutor_local_xqueue_consumer_1, tutor_local_notes_1, tutor_local_xqueue_1, tutor_local_memcached_1, tutor_local_rabbitmq_1, tutor_local_mongodb_1, tutor_local_openedx-assets_1, tutor_local_mysql_1, tutor_local_elasticsearch_1, tutor_local_smtp_1
- Removing tutor_local_nginx_1 ... done
- Removing tutor_local_cms-worker_1 ... done
- Removing tutor_local_cms_1 ... done
- Removing tutor_local_lms-worker_1 ... done
- Removing tutor_local_lms_1 ... done
- Removing tutor_local_forum_1 ... done
- Removing tutor_local_xqueue_consumer_1 ... done
- Removing tutor_local_notes_1 ... done
- Removing tutor_local_xqueue_1 ... done
- Removing tutor_local_memcached_1 ... done
- Removing tutor_local_rabbitmq_1 ... done
- Removing tutor_local_mongodb_1 ... done
- Removing tutor_local_openedx-assets_1 ... done
- Removing tutor_local_mysql_1 ... done
- Removing tutor_local_elasticsearch_1 ... done
- Removing tutor_local_smtp_1 ... done
- =============================================
- HTTPS certificates generation
- =============================================
- HTTPS is not activated: certificate generation skipped
- ======================================================
- Starting the platform in detached mode
- ======================================================
- docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d
- Creating tutor_local_mysql_1 ... done
- Creating tutor_local_memcached_1 ... done
- Creating tutor_local_openedx-assets_1 ... done
- Creating tutor_local_smtp_1 ... done
- Creating tutor_local_mongodb_1 ... done
- Creating tutor_local_elasticsearch_1 ... done
- Creating tutor_local_rabbitmq_1 ... done
- Creating tutor_local_notes_1 ... done
- Creating tutor_local_xqueue_consumer_1 ... done
- Creating tutor_local_xqueue_1 ... done
- Creating tutor_local_forum_1 ... done
- Creating tutor_local_lms_1 ... done
- Creating tutor_local_lms-worker_1 ... done
- Creating tutor_local_cms_1 ... done
- Creating tutor_local_cms-worker_1 ... done
- Creating tutor_local_nginx_1 ... done
- ================================================
- Database creation and migrations
- ================================================
- Initialising all services...
- docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/edxuser/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm mysql-job sh -e -c echo "Initialising MySQL..."
- mysql_connection_max_attempts=10
- mysql_connection_attempt=0
- until mysql -u root --password="bOfSrbvM" --host "mysql" --port 3306 -e 'exit'
- do
- mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)
- echo " [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)..."
- if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]
- then
- echo "MySQL initialisation error" 1>&2
- exit 1
- fi
- sleep 10
- done
- echo "MySQL is up and running"
- # edx-platform database
- mysql -u root --password="bOfSrbvM" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'
- mysql -u root --password="bOfSrbvM" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "7hBFSECH";'
- Creating tutor_local_mysql-job_run ... done
- Initialising MySQL...
- Warning: Using a password on the command line interface can be insecure.
- MySQL is up and running
- Warning: Using a password on the command line interface can be insecure.
- Warning: Using a password on the command line interface can be insecure.
- Initialising lms...
- docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/edxuser/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
- export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
- echo "Loading settings $DJANGO_SETTINGS_MODULE"
- ./manage.py lms migrate
- # Create oauth credentials for Android application
- ./manage.py lms create_dot_application \
- --client-id android \
- --client-secret sOckQlfON7eVRAdUYY6FNbIg \
- --grant-type password \
- android \
- login_service_user
- # Fix incorrect uploaded file path
- if [ -d /openedx/data/uploads/ ]; then
- if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
- echo "Migrating LMS uploaded files to shared directory"
- mv /openedx/data/uploads/* /openedx/media/
- rm -rf /openedx/data/uploads/
- fi
- fi
- Creating tutor_local_lms-job_run ... done
- 2021/12/14 11:09:20 Waiting for: tcp://mysql:3306
- 2021/12/14 11:09:20 Connected to tcp://mysql:3306
- Loading settings lms.envs.tutor.production
- Operations to perform:
- Apply all migrations: admin, announcements, api_admin, assessment, auth, badges, block_structure, bookmarks, branding, bulk_email, bulk_grades, calendar_sync, catalog, celery_utils, certificates, commerce, completion, consent, content_libraries, content_type_gating, contentserver, contenttypes, cornerstone, cors_csrf, course_action_state, course_date_signals, course_duration_limits, course_goals, course_groups, course_modes, course_overviews, courseware, coursewarehistoryextended, crawlers, credentials, credit, dark_lang, database_fixups, degreed, discounts, django_comment_common, django_notify, djcelery, edx_proctoring, edx_when, edxval, email_marketing, embargo, enterprise, entitlements, experiments, external_user_ids, grades, instructor_task, integrated_channel, lms_xblock, milestones, mobile_api, oauth2_provider, oauth_dispatch, organizations, program_enrollments, programs, redirects, rss_proxy, sap_success_factors, schedules, self_paced, sessions, shoppingcart, site_configuration, sites, social_django, splash, static_replace, status, student, submissions, super_csv, survey, system_wide_roles, teams, theming, third_party_auth, thumbnail, track, user_api, user_authn, util, verified_track_content, verify_student, video_config, video_pipeline, waffle, waffle_utils, wiki, workflow, xapi, xblock_django
- Running migrations:
- No migrations to apply.
- 2021-12-14 11:09:52,150 INFO 25 [openedx.core.djangoapps.oauth_dispatch.management.commands.create_dot_application] [user None] create_dot_application.py:165 - Application with name android and user login_service_user already exists.
- Initialising cms...
- docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/edxuser/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm cms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
- export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
- echo "Loading settings $DJANGO_SETTINGS_MODULE"
- ./manage.py cms migrate
- # Fix incorrect uploaded file path
- if [ -d /openedx/data/uploads/ ]; then
- if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
- echo "Migrating CMS uploaded files to shared directory"
- mv /openedx/data/uploads/* /openedx/media/
- rm -rf /openedx/data/uploads/
- fi
- fi
- Creating tutor_local_cms-job_run ... done
- 2021/12/14 11:09:55 Waiting for: tcp://mysql:3306
- 2021/12/14 11:09:55 Connected to tcp://mysql:3306
- Loading settings cms.envs.tutor.production
- 2021-12-14 11:10:02,202 WARNING 15 [py.warnings] [user None] s3boto.py:48 - /openedx/venv/lib/python3.5/site-packages/storages/backends/s3boto.py:48: 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.
- DeprecationWarning
- Operations to perform:
- Apply all migrations: admin, announcements, api_admin, assessment, auth, block_structure, bookmarks, catalog, celery_utils, completion, consent, content_libraries, content_type_gating, contentserver, contentstore, contenttypes, cornerstone, course_action_state, course_creators, course_date_signals, course_duration_limits, course_groups, course_modes, course_overviews, courseware, coursewarehistoryextended, crawlers, credit, dark_lang, database_fixups, degreed, discounts, django_comment_common, django_notify, djcelery, edx_proctoring, edx_when, edxval, embargo, enterprise, entitlements, experiments, external_user_ids, integrated_channel, milestones, oauth2_provider, oauth_dispatch, organizations, redirects, sap_success_factors, schedules, self_paced, sessions, site_configuration, sites, static_replace, student, submissions, survey, system_wide_roles, tagging, theming, track, user_api, user_authn, user_tasks, verified_track_content, verify_student, video_config, video_pipeline, waffle, waffle_utils, wiki, workflow, xapi, xblock_config, xblock_django
- Running migrations:
- No migrations to apply.
- Initialising forum...
- docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/edxuser/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm forum-job sh -e -c export MONGOHQ_URL="mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service"
- bundle exec rake search:initialize
- bundle exec rake search:rebuild_index
- Creating tutor_local_forum-job_run ... done
- Waiting for mongodb/elasticsearch...
- 2021/12/14 11:10:12 Waiting for: tcp://mongodb:27017
- 2021/12/14 11:10:12 Waiting for: http://elasticsearch:9200
- 2021/12/14 11:10:12 Received 200 from http://elasticsearch:9200
- 2021/12/14 11:10:12 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
- 2021/12/14 11:10:17 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
- 2021/12/14 11:10:22 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
- 2021/12/14 11:10:27 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
- 2021/12/14 11:10:32 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
- 2021/12/14 11:10:37 Problem with dial: dial tcp: lookup mongodb on 127.0.0.11:53: server misbehaving. Sleeping 5s
- ^CERROR: 130
- Error: Command failed with status 130: docker-compose -f /home/edxuser/.local/share/tutor/env/local/docker-compose.yml -f /home/edxuser/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/edxuser/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm forum-job sh -e -c export MONGOHQ_URL="mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service"
- bundle exec rake search:initialize
- bundle exec rake search:rebuild_index
- edxuser@localhost:/usr/local/bin$ ./tutor --version
- tutor, version 10.0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement