Overhang.io

Quickstart KeyError: 'ACTIVATE_HTTPS'

#1

I encountered the following problem when I wanted to install tutor locally.

Xin$ tutor local quickstart

    Interactive platform configuration

==================================================
Your website domain name for students (LMS) [www.myopenedx.com] lms.lx.cn
Your website domain name for teachers (CMS) [studio.lms.liuxing3169.cn] studio.lx.cn
Your platform name/title [My Open edX] XSchool
Your public contact email address [contact@lms.liuxing3169.cn] lx@163.com
The default language code for the platform [en] en
Traceback (most recent call last):
File “main”, line 4, in
File “tutor/cli.py”, line 22, in main
File “click/core.py”, line 764, in call
File “click/core.py”, line 717, in main
File “click/core.py”, line 1137, in invoke
File “click/core.py”, line 1137, in invoke
File “click/core.py”, line 956, in invoke
File “click/core.py”, line 555, in invoke
File “tutor/local.py”, line 29, in quickstart
File “tutor/config.py”, line 41, in save
File “tutor/config.py”, line 189, in load_interactive
File “tutor/config.py”, line 224, in ask_bool
KeyError: ‘ACTIVATE_HTTPS’
[3566] Failed to execute script main

#2

Hi @liuxing3169! Can you please explain how you installed tutor and which version you are using?

#3

Hello, I have the exact same problem too, need help.
I downloaded tutor in a private IP environment (10.0.0.0/8) using local bind9 DNS for my development environment.

the openEDX (by tutor latest version/3.3.5) address is 10.0.0.1, using local DNS: openedx.mycampus.org

The error appeared when “tutor local quickstart” after language selection executed. Thats weird because I did the same thing with older version just fine…

Thank you for reading this…

#4

I managed to reproduce the issue. Working on a fix and a new release right now.

#5

Release v3.3.6 should fix the issue: https://github.com/regisb/tutor/releases/tag/v3.3.6
Could you please verify that it works for you?

#6

Thank you, I last encountered problems with Release v3.3.5, this time I used Release v3.3.6, the 'tutor local quickstart ’ command can normally ask me a few questions and proceed, but I encountered One other question:
Activate SSL/TLS certificates for HTTPS access? Important note:this will NOT work in a development environment. [y/N] n

Activate Student Notes service (https://open.edx.org/features/student-notes)? [y/N] y

Activate Xqueue for external grader services (https://github.com/edx/xqueue)? [y/N] y

Configuration saved to /Users/Xin/Library/Application Support/tutor/config.yml

Environment generated in /Users/Xin/Library/Application Support/tutor/env

==============================================

Stopping any existing platform

==============================================

docker-compose -f /Users/Xin/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force

No stopped containers

================================================

Database creation and migrations

================================================

Initializing MySQL database…

docker-compose -f /Users/Xin/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

Pulling mysql (mysql:5.6.36)…

5.6.36: Pulling from library/mysql

9f0706ba7422: Pull complete

2290e155d2d0: Pull complete

547981b8269f: Pull complete

2c9d42ed2f48: Pull complete

a50168a1b927: Pull complete

414da6fabf18: Pull complete

332ddcfaeff4: Pull complete

43e9a87d0a54: Pull complete

27dcfa818ff7: Pull complete

067b6cd0ea1c: Pull complete

62f66393bcf1: Pull complete

Creating tutor_local_mysql_1 … done

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

waiting for mysql initialization

MySQL database initialized

docker-compose -f /Users/Xin/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local stop mysql

Stopping tutor_local_mysql_1 … done

Creating all databases…

docker-compose -f /Users/Xin/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local run --rm openedx-assets bash -e -c dockerize -wait tcp://mysql:3306 -timeout 20s

mysql -u root --password=“C7t7pkdE” --host “mysql” -e ‘CREATE DATABASE IF NOT EXISTS openedx;’

mysql -u root --password=“C7t7pkdE” --host “mysql” -e ‘GRANT ALL ON openedx.* TO “openedx”@"%" IDENTIFIED BY “5Eeic1CV”;’

Pulling openedx-assets (regis/openedx:ironwood)…

ironwood: Pulling from regis/openedx

34667c7e4631: Pull complete

d18d76a881a4: Pull complete

119c7358fbfc: Pull complete

2aaf13f3eff0: Pull complete

4fcc8248b4e2: Pull complete

fb8e7e9aa447: Pull complete

e5701f0e0925: Pull complete

6bf002d11f4d: Pull complete

916bed59cf62: Pull complete

60adfc09bef6: Pull complete

fb9c14474589: Pull complete

6191bb9f666d: Pull complete

f96f1e8b41a5: Pull complete

62ad6c35b382: Pull complete

fab377afe1d4: Pull complete

0fec63ddbe95: Pull complete

dc51d47866d4: Pull complete

f0560ae7a413: Pull complete

5c7e3082038a: Pull complete

0ab4a4cf6124: Pull complete

7333b2938a92: Pull complete

de8ae978db27: Pull complete

2019/04/28 02:47:49 Waiting for: tcp://mysql:3306

2019/04/28 02:47:50 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:51 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:52 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:53 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:54 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:55 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:56 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:57 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:58 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:47:59 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:00 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:01 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:02 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:03 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:04 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:05 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:06 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:07 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:08 Problem with dial: dial tcp: lookup mysql on 127.0.0.11:53: no such host. Sleeping 1s

2019/04/28 02:48:09 Timeout after 20s waiting on dependencies to become available: [tcp://mysql:3306]

Error: Command failed with status 1: docker-compose -f /Users/Xin/Library/Application Support/tutor/env/local/docker-compose.yml --project-name tutor_local run --rm openedx-assets bash -e -c dockerize -wait tcp://mysql:3306 -timeout 20s

mysql -u root --password=“CXXXXXdE” --host “mysql” -e ‘CREATE DATABASE IF NOT EXISTS openedx;’

mysql -u root --password=“CXXXXXdE” --host “mysql” -e ‘GRANT ALL ON openedx.* TO “openedx”@"%" IDENTIFIED BY “5Eeic1CV”;’

By the way, I am executing this command on the mac command line.

#7

@liuxing3169 You are absolutely right, there is another bug in release 3.3.6 :hot_face: Release v3.3.7 is currently building and should be available in a few minutes; it should fix this bug.

Thanks for sending me these bug reports, I appreciate it!

#8

Awesome, I just re-run Tutor v3.3.8 inside NAT and worked flawlessly. Thank you…

#9

I reinstalled it again using v3.3.8, the process is very smooth, thank you @regis