# Tutor fails on tutor local launch

**URL:** <https://discuss.openedx.org/t/tutor-fails-on-tutor-local-launch/10742>\
**Category:** Tutor Help\
**Tags:** how-to, tutor\
**Created:** [July 18, 2023, 2:19pm UTC](https://discuss.openedx.org/t/tutor-fails-on-tutor-local-launch/10742 "2023-07-18T14:19:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ih-ffg](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ih-ffg/32/5617_2.png) [@ih-ffg](https://discuss.openedx.org/u/ih-ffg)\
**Post date:** [July 18, 2023, 3:34pm UTC](https://discuss.openedx.org/t/tutor-fails-on-tutor-local-launch/10742/2 "2023-07-18T15:34:05Z")

</div>

The whole log is here:

```auto
tutor local launch
==================================================
        Interactive platform configuration
==================================================
Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer [Y/n] Y
Your website domain name for students (LMS) [www.myopenedx.com] 
Your website domain name for teachers (CMS) [studio.www.myopenedx.com] 
Your platform name/title [My Open edX] 
Your public contact email address [contact@www.myopenedx.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/force/.local/share/tutor/config.yml
Environment generated in /home/force/.local/share/tutor/env
==============================================
        Stopping any existing platform
==============================================
docker compose -f /home/force/.local/share/tutor/env/local/docker-compose.yml -f /home/force/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/force/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local stop
======================================================
        Starting the platform in detached mode
======================================================
docker compose -f /home/force/.local/share/tutor/env/local/docker-compose.yml -f /home/force/.local/share/tutor/env/dev/docker-compose.yml -f /home/force/.local/share/tutor/env/dev/docker-compose.tmp.yml --project-name tutor_dev stop
docker compose -f /home/force/.local/share/tutor/env/local/docker-compose.yml -f /home/force/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/force/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local up --remove-orphans --build -d
[+] Running 18/18
 ✔ Network tutor_local_default Created 0.1s 
 ✔ Container tutor_local-caddy-1 Started 3.3s 
 ✔ Container tutor_local-redis-permissions-1 Started 3.0s 
 ✔ Container tutor_local-lms-permissions-1 Started 2.0s 
 ✔ Container tutor_local-elasticsearch-permissions-1 Started 3.3s 
 ✔ Container tutor_local-mysql-1 Started 1.4s 
 ✔ Container tutor_local-smtp-1 Started 2.7s 
 ✔ Container tutor_local-cms-permissions-1 Started 2.6s 
 ✔ Container tutor_local-mongodb-permissions-1 Started 2.9s 
 ✔ Container tutor_local-mysql-permissions-1 Started 3.2s 
 ✔ Container tutor_local-elasticsearch-1 Started 3.9s 
 ✔ Container tutor_local-mongodb-1 Started 3.8s 
 ✔ Container tutor_local-redis-1 Started 3.8s 
 ✔ Container tutor_local-lms-1 Started 4.5s 
 ✔ Container tutor_local-cms-1 Started 5.6s 
 ✔ Container tutor_local-mfe-1 Started 6.3s 
 ✔ Container tutor_local-lms-worker-1 Started 6.0s 
 ✔ Container tutor_local-cms-worker-1 Started 6.5s 
================================================
        Database creation and migrations
================================================
Initialising all services...
Running init task in mysql
docker compose -f /home/force/.local/share/tutor/env/local/docker-compose.yml -f /home/force/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/force/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /home/force/.local/share/tutor/env/local/docker-compose.jobs.yml -f /home/force/.local/share/tutor/env/local/docker-compose.jobs.tmp.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="IMROHrWG" --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="IMROHrWG" --host "mysql" --port 3306 -e "CREATE DATABASE IF NOT EXISTS openedx;"
mysql -u root --password="IMROHrWG" --host "mysql" --port 3306 -e "CREATE USER IF NOT EXISTS '"'"'openedx'"'"';"
mysql -u root --password="IMROHrWG" --host "mysql" --port 3306 -e "ALTER USER '"'"'openedx'"'"'@'"'"'%'"'"' IDENTIFIED BY '"'"'6Igix8V4'"'"';"
mysql -u root --password="IMROHrWG" --host "mysql" --port 3306 -e "GRANT ALL ON openedx.* TO '"'"'openedx'"'"'@'"'"'%'"'"';"'
[+] Creating 1/0
 ✔ Container tutor_local-mysql-1 Running 0.0s 
Initialising MySQL...
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)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [2/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [3/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [4/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [5/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [6/10] Waiting for MySQL service (this may take a while)...
	mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [7/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [8/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [9/10] Waiting for MySQL service (this may take a while)...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (11)
    [10/10] Waiting for MySQL service (this may take a while)...
MySQL initialisation error
Error: Command failed with status 1: docker compose -f /home/force/.local/share/tutor/env/local/docker-compose.yml -f /home/force/.local/share/tutor/env/local/docker-compose.prod.yml -f /home/force/.local/share/tutor/env/local/docker-compose.tmp.yml --project-name tutor_local -f /home/force/.local/share/tutor/env/local/docker-compose.jobs.yml -f /home/force/.local/share/tutor/env/local/docker-compose.jobs.tmp.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="IMROHrWG" --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="IMROHrWG" --host "mysql" --port 3306 -e "CREATE DATABASE IF NOT EXISTS openedx;"
mysql -u root --password="IMROHrWG" --host "mysql" --port 3306 -e "CREATE USER IF NOT EXISTS 'openedx';"
mysql -u root --password="IMROHrWG" --host "mysql" --port 3306 -e "ALTER USER 'openedx'@'%' IDENTIFIED BY '6Igix8V4';"
mysql -u root --password="IMROHrWG" --host "mysql" --port 3306 -e "GRANT ALL ON openedx.* TO 'openedx'@'%';"

```

---

_[View the full topic](https://discuss.openedx.org/t/tutor-fails-on-tutor-local-launch/10742)._
