Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ec2-user@ip-172-31-9-32 ~]$ tutor local quickstart
- ==================================================
- Interactive platform configuration
- ==================================================
- Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer [Y/n]
- Your website domain name for students (LMS) [karka-demo.comorins.com]
- Your website domain name for teachers (CMS) [karka-studio.comorins.com]
- Your platform name/title [KARKA]
- Your public contact email address [karka@comorins.com]
- The default language code for the platform [en]
- Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [Y/n]
- Configuration saved to /home/ec2-user/.local/share/tutor/config.yml
- ================================================
- Updating the current environment
- ================================================
- Environment generated in /home/ec2-user/.local/share/tutor/env
- ==============================================
- Stopping any existing platform
- ==============================================
- docker-compose -f /home/ec2-user/.local/share/tutor/env/local/docker-compose.yml -f /home/ec2-user/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local rm --stop --force
- Going to remove tutor_local_cms-worker_1, tutor_local_nginx_1, tutor_local_cms_1, tutor_local_lms-worker_1, tutor_local_lms_1, tutor_local_forum_1, tutor_local_mongodb_1, tutor_local_openedx-assets_1, tutor_local_mysql_1, tutor_local_elasticsearch_1, tutor_local_rabbitmq_1, tutor_local_smtp_1, tutor_local_memcached_1
- Removing tutor_local_cms-worker_1 ... done
- Removing tutor_local_nginx_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_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_rabbitmq_1 ... done
- Removing tutor_local_smtp_1 ... done
- Removing tutor_local_memcached_1 ... done
- =============================================
- HTTPS certificates generation
- =============================================
- docker run --rm -it --volume /home/ec2-user/.local/share/tutor/data/letsencrypt:/etc/letsencrypt/ -p 80:80 --entrypoint=sh docker.io/certbot/certbot:latest -e -c certbot certonly --standalone -n --agree-tos -m admin@karka-demo.comorins.com -d karka-demo.comorins.com -d karka-studio.comorins.com -d preview.karka-demo.comorins.com
- Saving debug log to /var/log/letsencrypt/letsencrypt.log
- Plugins selected: Authenticator standalone, Installer None
- Cert not yet due for renewal
- Keeping the existing certificate
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Certificate not yet due for renewal; no action taken.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ======================================================
- Starting the platform in detached mode
- ======================================================
- docker-compose -f /home/ec2-user/.local/share/tutor/env/local/docker-compose.yml -f /home/ec2-user/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans -d
- Creating tutor_local_smtp_1 ... done
- Creating tutor_local_mongodb_1 ... done
- Creating tutor_local_memcached_1 ... done
- Creating tutor_local_mysql_1 ... done
- Creating tutor_local_openedx-assets_1 ... done
- Creating tutor_local_rabbitmq_1 ... done
- Creating tutor_local_elasticsearch_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/ec2-user/.local/share/tutor/env/local/docker-compose.yml -f /home/ec2-user/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/ec2-user/.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="rfgVqhOz" --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="rfgVqhOz" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'
- mysql -u root --password="rfgVqhOz" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "MAnxzRMo";'
- Starting tutor_local_mysql_1 ... done
- Initialising MySQL...
- Warning: Using a password on the command line interface can be insecure.
- ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql' (111)
- [1/10] Waiting for MySQL service (this may take a while)...
- Warning: Using a password on the command line interface can be insecure.
- ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql' (111)
- [2/10] Waiting for MySQL service (this may take a while)...
Add Comment
Please, Sign In to add comment