Closed natea closed 5 years ago
Ok we have two major issues here.
./tutor --version
just doesn't work (neither on Mac OS nor Linux).docker-compose
cannot be found on Mac OS.I think I can solve the first problem on my own, as I can reproduce the issue. However, I'm going to need your help with the second. Can you please paste the output of the following commands:
which docker-compose
python -c "import shutil; print(shutil.which('docker-compose'))"
docker-compose
binary come from?Here is the output of those two commands. I'll try to find out where the docker-compose
binary lives. I installed Docker for Mac using brew cask install docker
so that might have put it in a weird place?
Nathans-MacBook-Pro-2:Downloads nateaune$ python -c "import shutil; print(shutil.which('docker-compose'))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'which'
Nathans-MacBook-Pro-2:Downloads nateaune$ which docker-compose
^^^ doesn't return anything when I run that command.
What about docker-compose --help
?
I hadn't gone through the entire Docker for Mac setup process (since I got a new computer). Once I completed that, then docker-compose was available on the path and the tutor install path proceeded without a problem.
I'm not sure why this issue is related to the error ERROR 1130 (HY000): Host '172.18.0.9' is not allowed to connect to this MySQL server
but here is the full traceback of this new error:
Nathans-MacBook-Pro-2:Downloads nateaune$ ./tutor-osx local quickstart
==================================================
Interactive platform configuration
==================================================
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 [nate@appsembler.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. [yN]
Activate Student Notes service (https://open.edx.org/features/student-notes)? [yN]
Activate Xqueue for external grader services (https://github.com/edx/xqueue)? [yN]
Configuration saved to /Users/nateaune/Library/Application Support/tutor/config.yml
======================================
Environment generation
======================================
Environment generated in /Users/nateaune/Library/Application Support/tutor
==============================================
Stopping any existing platform
==============================================
docker-compose -f /Users/nateaune/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force
No stopped containers
====================================
Docker image updates
====================================
docker-compose -f /Users/nateaune/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local pull
Pulling memcached ... done
Pulling mongodb ... done
Pulling mysql ... done
Pulling elasticsearch ... done
Pulling openedx-assets ... done
Pulling rabbitmq ... done
Pulling smtp ... done
Pulling forum ... done
Pulling lms ... done
Pulling cms ... done
Pulling nginx ... done
Pulling lms_worker ... done
Pulling cms_worker ... done
================================================
Database creation and migrations
================================================
Initializing MySQL database...
docker-compose -f /Users/nateaune/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local up -d mysql
Creating network "tutor_local_default" with the default driver
Creating tutor_local_mysql_1 ... done
waiting for creation of /Users/nateaune/Library/Application Support/tutor/data/mysql/mysql
MySQL database initialized
docker-compose -f /Users/nateaune/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local stop mysql
Stopping tutor_local_mysql_1 ... done
Creating lms/cms databases...
docker-compose -f /Users/nateaune/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local run --rm lms bash -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
mysql -u root --password="NME7mivi" --host "mysql" -e 'CREATE DATABASE IF NOT EXISTS openedx;'
mysql -u root --password="NME7mivi" --host "mysql" -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "NME7mivi";'
Starting tutor_local_mysql_1 ... done
Creating tutor_local_smtp_1 ... done
Creating tutor_local_rabbitmq_1 ... done
Creating tutor_local_elasticsearch_1 ... done
Creating tutor_local_memcached_1 ... done
Creating tutor_local_mongodb_1 ... done
Creating tutor_local_forum_1 ... done
2019/02/11 15:27:32 Waiting for: tcp://mysql:3306
2019/02/11 15:27:32 Connected to tcp://mysql:3306
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1130 (HY000): Host '172.18.0.9' is not allowed to connect to this MySQL server
Error: Command failed with status 1: docker-compose -f /Users/nateaune/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local run --rm lms bash -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
mysql -u root --password="NME7mivi" --host "mysql" -e 'CREATE DATABASE IF NOT EXISTS openedx;'
mysql -u root --password="NME7mivi" --host "mysql" -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "NME7mivi";'
Hi @natea! I made a mistake while rushing to fix existing issues, and I mistook issue #156 (this one) with #159. Both should be fixed in v3.0.2. Thanks a lot for your comments! It's a tremendous help to get feedback from other platforms and users.
I met same problem in15.0.1
I ran the
tutor local quickstart
command, and it's complaining thatdocker-compose
is not installed.Steps to reproduce
Unexpected behavior
I would expect that tutor could find docker-compose given that I installed Docker for Mac, which according to this page, already includes docker-compose. https://docs.docker.com/compose/install/
Additional info (IMPORTANT)