satanar

Untitled

Aug 16th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. [ec2-user@ip-172-31-9-32 ~]$ tutor local quickstart
  2. ==================================================
  3. Interactive platform configuration
  4. ==================================================
  5. Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer [Y/n]
  6. Your website domain name for students (LMS) [karka-demo.comorins.com]
  7. Your website domain name for teachers (CMS) [karka-studio.comorins.com]
  8. Your platform name/title [KARKA]
  9. Your public contact email address [karka@comorins.com]
  10. The default language code for the platform [en]
  11. Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [Y/n]
  12. Configuration saved to /home/ec2-user/.local/share/tutor/config.yml
  13. ================================================
  14. Updating the current environment
  15. ================================================
  16. Environment generated in /home/ec2-user/.local/share/tutor/env
  17. ==============================================
  18. Stopping any existing platform
  19. ==============================================
  20. 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
  21. 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
  22. Removing tutor_local_cms-worker_1 ... done
  23. Removing tutor_local_nginx_1 ... done
  24. Removing tutor_local_cms_1 ... done
  25. Removing tutor_local_lms-worker_1 ... done
  26. Removing tutor_local_lms_1 ... done
  27. Removing tutor_local_forum_1 ... done
  28. Removing tutor_local_mongodb_1 ... done
  29. Removing tutor_local_openedx-assets_1 ... done
  30. Removing tutor_local_mysql_1 ... done
  31. Removing tutor_local_elasticsearch_1 ... done
  32. Removing tutor_local_rabbitmq_1 ... done
  33. Removing tutor_local_smtp_1 ... done
  34. Removing tutor_local_memcached_1 ... done
  35. =============================================
  36. HTTPS certificates generation
  37. =============================================
  38. 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
  39. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  40. Plugins selected: Authenticator standalone, Installer None
  41. Cert not yet due for renewal
  42. Keeping the existing certificate
  43.  
  44. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  45. Certificate not yet due for renewal; no action taken.
  46. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  47. ======================================================
  48. Starting the platform in detached mode
  49. ======================================================
  50. 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
  51. Creating tutor_local_smtp_1 ... done
  52. Creating tutor_local_mongodb_1 ... done
  53. Creating tutor_local_memcached_1 ... done
  54. Creating tutor_local_mysql_1 ... done
  55. Creating tutor_local_openedx-assets_1 ... done
  56. Creating tutor_local_rabbitmq_1 ... done
  57. Creating tutor_local_elasticsearch_1 ... done
  58. Creating tutor_local_forum_1 ... done
  59. Creating tutor_local_lms_1 ... done
  60. Creating tutor_local_lms-worker_1 ... done
  61. Creating tutor_local_cms_1 ... done
  62. Creating tutor_local_cms-worker_1 ... done
  63. Creating tutor_local_nginx_1 ... done
  64. ================================================
  65. Database creation and migrations
  66. ================================================
  67. Initialising all services...
  68. 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..."
  69. mysql_connection_max_attempts=10
  70. mysql_connection_attempt=0
  71. until mysql -u root --password="rfgVqhOz" --host "mysql" --port 3306 -e 'exit'
  72. do
  73. mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)
  74. echo " [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)..."
  75. if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]
  76. then
  77. echo "MySQL initialisation error" 1>&2
  78. exit 1
  79. fi
  80. sleep 10
  81. done
  82. echo "MySQL is up and running"
  83.  
  84. # edx-platform database
  85. mysql -u root --password="rfgVqhOz" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'
  86. mysql -u root --password="rfgVqhOz" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "MAnxzRMo";'
  87. Starting tutor_local_mysql_1 ... done
  88. Initialising MySQL...
  89. Warning: Using a password on the command line interface can be insecure.
  90. ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql' (111)
  91. [1/10] Waiting for MySQL service (this may take a while)...
  92. Warning: Using a password on the command line interface can be insecure.
  93. ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql' (111)
  94. [2/10] Waiting for MySQL service (this may take a while)...
  95.  
Add Comment
Please, Sign In to add comment