Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling GMail SMTP fails? - H=ALT1.ASPMX.L.GOOGLE.COM [173.194.77.26] Connection timed out #287

Closed
SamuelMarks opened this issue Feb 10, 2020 · 2 comments

Comments

@SamuelMarks
Copy link

Bug description
I have a custom domain with GMail. Previously when I've setup a native Open EdX, I've just set these variables:

"EMAIL_HOST": "smtp.gmail.com",
"EMAIL_PORT": 587,
"EMAIL_USE_TLS": true,
"EMAIL_HOST_USER": '<my email>',
"EMAIL_HOST_PASSWORD": '<my password>',
lms_1             | 2020-02-10 06:00:43,004 INFO 10 [tracking] logger.py:50 - {"username": "", "event_type": "/api/user/v1/validation/registration", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my lms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {\"username\": [\"Samuel\"], \"password\": \"********\", \"name\": [\"Samuel Marks\"], \"honor_code\": [\"true\"], \"email\": [\"<my email>\"]}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/api/user/v1/validation/registration"}, "time": "2020-02-10T06:00:43.004382+00:00", "page": null}
lms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.0" 200 75 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.1" 200 75 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
lms_1             | 2020-02-10 06:00:43,202 INFO 10 [tracking] logger.py:50 - {"username": "", "event_type": "/user_api/v1/account/registration/", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my lms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {\"username\": [\"Samuel\"], \"name\": [\"Samuel Marks\"], \"gender\": [\"\"], \"year_of_birth\": [\"\"], \"level_of_education\": [\"\"], \"goals\": [\"\"], \"honor_code\": [\"true\"], \"mailing_address\": [\"\"], \"password\": \"********\", \"email\": [\"<my email>\"]}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/user_api/v1/account/registration/"}, "time": "2020-02-10T06:00:43.202196+00:00", "page": null}
lms_1             | 2020-02-10 06:00:43,295 INFO 10 [audit] models.py:2245 - Login success - user.id: 3
rabbitmq_1        | 
rabbitmq_1        | =INFO REPORT==== 10-Feb-2020::06:00:43 ===
rabbitmq_1        | accepting AMQP connection <0.470.0> (172.18.0.10:46554 -> 172.18.0.6:5672)
rabbitmq_1        | 
rabbitmq_1        | =INFO REPORT==== 10-Feb-2020::06:00:43 ===
rabbitmq_1        | connection <0.470.0> (172.18.0.10:46554 -> 172.18.0.6:5672): user 'guest' authenticated and granted access to vhost '/'
lms_worker_1      | 2020-02-10 06:00:43,335 INFO 1 [celery.worker.strategy] strategy.py:60 - Received task: student.tasks.send_activation_email[f1ce40d1-66de-4d6d-b1c0-cffe28d4ce8e]
rabbitmq_1        | 
rabbitmq_1        | =INFO REPORT==== 10-Feb-2020::06:00:43 ===
rabbitmq_1        | closing AMQP connection <0.470.0> (172.18.0.10:46554 -> 172.18.0.6:5672, vhost: '/', user: 'guest')
lms_1             | 2020-02-10 06:00:43,346 INFO 10 [tracking] logger.py:42 - {"username": "", "event_source": "server", "name": "edx.user.settings.changed", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "time": "2020-02-10T06:00:43.346047+00:00", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "page": null, "host": "<my lms host string>", "session": "d5e792e16ade81b44047f7c865655c28", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/user_api/v1/account/registration/"}, "ip": "161.43.78.202", "event": {"user_id": 3, "truncated": [], "old": null, "setting": "pref-lang", "table": "user_api_userpreference", "new": "en"}, "event_type": "edx.user.settings.changed"}
smtp_1            |   275 LOG: MAIN
smtp_1            |   275   <= <my email> H=tutor_local_lms_worker_1.tutor_local_default (8d80b954b3e5) [172.18.0.13] P=esmtp S=1140 id=20200210060043.199.73437@8d80b954b3e5
smtp_1            |   275 LOG: smtp_connection MAIN
smtp_1            |   275   SMTP connection from tutor_local_lms_worker_1.tutor_local_default (8d80b954b3e5) [172.18.0.13] closed by QUIT
lms_worker_1      | 2020-02-10 06:00:43,353 INFO 199 [edx.celery.task] tasks.py:26 - Activation Email has been sent to User <my email>
lms_worker_1      | 2020-02-10 06:00:43,355 INFO 1 [celery.worker.job] job.py:402 - Task student.tasks.send_activation_email[f1ce40d1-66de-4d6d-b1c0-cffe28d4ce8e] succeeded in 0.0180513650002s: None
smtp_1            |   276 Exim version 4.92 uid=101 gid=101 pid=276 D=80001
smtp_1            | Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
smtp_1            | Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DANE DKIM DNSSEC Event OCSP PRDR SOCKS TCP_Fast_Open
smtp_1            | Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis nis0 passwd
smtp_1            | Authenticators: cram_md5 plaintext
smtp_1            | Routers: accept dnslookup ipliteral manualroute queryprogram redirect
smtp_1            | Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
smtp_1            | Fixed never_users: 0
smtp_1            | Configure owner: 0:0
smtp_1            | Size of off_t: 8
forum_1           | I, [2020-02-10T06:00:43.359184 #28]  INFO -- : source=rack-timeout id=394e1a7a74e10a86e0f82478d2e61ce7 timeout=20000ms state=ready
forum_1           | D, [2020-02-10T06:00:43.359990 #28] DEBUG -- : source=rack-timeout id=394e1a7a74e10a86e0f82478d2e61ce7 timeout=20000ms service=2ms state=active
smtp_1            |   276 delivering 1j127f-00004R-BC
smtp_1            |   276 R: dnslookup for <my email>
mongodb_1         | 2020-02-10T06:00:43.376+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.9:50912 #11 (9 connections now open)
lms_1             | 2020-02-10 06:00:43,377 INFO 12 [tracking] logger.py:50 - {"username": "", "event_type": "/api/user/v1/validation/registration", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my lms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {\"username\": [\"Samuel\"], \"password\": \"********\", \"name\": [\"Samuel Marks\"], \"honor_code\": [\"true\"], \"email\": [\"<my email>\"]}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/api/user/v1/validation/registration"}, "time": "2020-02-10T06:00:43.377067+00:00", "page": null}
smtp_1            |   277 T: remote_smtp for <my email>
smtp_1            |   277 Connecting to ASPMX.L.GOOGLE.COM [2607:f8b0:4001:c14::1a]:25 ... failed: Cannot assign requested address
smtp_1            |   277 LOG: MAIN
smtp_1            |   277   H=ASPMX.L.GOOGLE.COM [2607:f8b0:4001:c14::1a] Cannot assign requested address
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.1" 200 270 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
lms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.0" 200 270 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
lms_1             | 2020-02-10 06:00:43,392 INFO 12 [tracking] logger.py:50 - {"username": "", "event_type": "/api/user/v1/validation/registration", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my lms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {\"username\": [\"Samuel\"], \"password\": \"********\", \"name\": [\"Samuel Marks\"], \"honor_code\": [\"true\"], \"email\": [\"<my email>\"]}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/api/user/v1/validation/registration"}, "time": "2020-02-10T06:00:43.392774+00:00", "page": null}
forum_1           | I, [2020-02-10T06:00:43.396755 #28]  INFO -- : source=rack-timeout id=394e1a7a74e10a86e0f82478d2e61ce7 timeout=20000ms service=39ms state=completed
forum_1           | 172.18.0.10 - - [10/Feb/2020:06:00:43 +0000] "PUT /api/v1/users/3?request_id=c9a09ece-5afc-4433-a3e2-2fb4cf012521 HTTP/1.1" 200 39 0.0274
lms_1             | 2020-02-10 06:00:43,400 INFO 10 [audit] register.py:211 - Login success on new account creation - Samuel
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.1" 200 270 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
lms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.0" 200 270 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
lms_1             | 2020-02-10 06:00:43,407 INFO 12 [tracking] logger.py:50 - {"username": "", "event_type": "/api/user/v1/validation/registration", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my lms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {\"username\": [\"Samuel\"], \"password\": \"********\", \"name\": [\"Samuel Marks\"], \"honor_code\": [\"true\"], \"email\": [\"<my email>\"]}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/api/user/v1/validation/registration"}, "time": "2020-02-10T06:00:43.407768+00:00", "page": null}
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /user_api/v1/account/registration/ HTTP/1.1" 200 21 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
lms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /user_api/v1/account/registration/ HTTP/1.0" 200 21 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.1" 200 270 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
lms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:43 +0000] "POST /api/user/v1/validation/registration HTTP/1.0" 200 270 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
cms_1             | 2020-02-10 06:00:43,626 INFO 10 [tracking] logger.py:50 - {"username": "Samuel", "event_type": "/", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my cms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {}, \"GET\": {}}", "event_source": "server", "context": {"user_id": 3, "org_id": "", "course_id": "", "path": "/"}, "time": "2020-02-10T06:00:43.625892+00:00", "page": null}
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:44 +0000] "GET / HTTP/1.1" 302 0 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
cms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:44 +0000] "GET / HTTP/1.0" 302 - "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
cms_1             | 2020-02-10 06:00:44,392 INFO 10 [tracking] logger.py:50 - {"username": "Samuel", "event_type": "/home/", "ip": "161.43.78.202", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0", "host": "<my cms host string>", "referer": "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F", "accept_language": "en-AU,en-US;q=0.7,en;q=0.3", "event": "{\"POST\": {}, \"GET\": {}}", "event_source": "server", "context": {"user_id": 3, "org_id": "", "course_id": "", "path": "/home/"}, "time": "2020-02-10T06:00:44.391897+00:00", "page": null}
mongodb_1         | 2020-02-10T06:00:44.410+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.11:35892 #12 (10 connections now open)
mongodb_1         | 2020-02-10T06:00:44.444+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.11:35894 #13 (11 connections now open)
mongodb_1         | 2020-02-10T06:00:44.445+0000 I NETWORK  [initandlisten] connection accepted from 172.18.0.11:35896 #14 (12 connections now open)
cms_1             | 161.43.78.202 - - [10/Feb/2020:06:00:44 +0000] "GET /home/ HTTP/1.0" 200 8818 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:44 +0000] "GET /home/ HTTP/1.1" 200 8818 "https://<my lms host string>/register?next=https%3A%2F%2F<my cms host string>%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:44 +0000] "GET /static/studio/bundles/js/sock.98257bea316d8133839b.e2ff32a5c1b0.js HTTP/1.1" 200 970 "https://<my cms host string>/home/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:45 +0000] "GET /static/studio/js/factories/base.js HTTP/1.1" 304 0 "https://<my cms host string>/home/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:45 +0000] "GET /static/studio/js/vendor/jquery.cookie.js HTTP/1.1" 304 0 "https://<my cms host string>/home/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
nginx_1           | 161.43.78.202 - - [10/Feb/2020:06:00:45 +0000] "GET /static/studio/js/factories/index.js HTTP/1.1" 200 33756 "https://<my cms host string>/home/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0" "-"
smtp_1            |   277 Connecting to ASPMX.L.GOOGLE.COM [173.194.198.26]:25 ... failed: Connection timed out (timeout=5m)
smtp_1            |   277 LOG: MAIN
smtp_1            |   277   H=ASPMX.L.GOOGLE.COM [173.194.198.26] Connection timed out
smtp_1            |   277 Connecting to ALT1.ASPMX.L.GOOGLE.COM [173.194.77.26]:25 ... failed: Connection timed out (timeout=5m)
smtp_1            |   277 LOG: MAIN
smtp_1            |   277   H=ALT1.ASPMX.L.GOOGLE.COM [173.194.77.26] Connection timed out
nginx_1           | 5.101.0.209 - - [10/Feb/2020:06:02:17 +0000] "POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 301 186 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "-"
cms_1             | 2020-02-10 06:02:17,847 INFO 12 [tracking] logger.py:50 - {"username": "", "event_type": "/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php", "ip": "5.101.0.209", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36", "host": "<my cms host string>", "referer": "http://34.66.47.90:80/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php", "accept_language": "", "event": "{\"POST\": {}, \"GET\": {}}", "event_source": "server", "context": {"user_id": null, "org_id": "", "course_id": "", "path": "/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php"}, "time": "2020-02-10T06:02:17.847197+00:00", "page": null}
smtp_1            |   277 Connecting to ALT2.ASPMX.L.GOOGLE.COM [64.233.177.27]:25 ... failed: Connection timed out (timeout=5m)
smtp_1            |   277 LOG: MAIN
smtp_1            |   277   H=ALT2.ASPMX.L.GOOGLE.COM [64.233.177.27] Connection timed out
smtp_1            |   277 Connecting to ALT3.ASPMX.L.GOOGLE.COM [2607:f8b0:400d:c0b::1b]:25 ... failed: Cannot assign requested address
smtp_1            |   277 LOG: MAIN
smtp_1            |   277   H=ALT3.ASPMX.L.GOOGLE.COM [2607:f8b0:400d:c0b::1b] Cannot assign requested address
cms_1             | 5.101.0.209 - - [10/Feb/2020:06:02:17 +0000] "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.0" 404 5491 "http://34.66.47.90:80/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
nginx_1           | 5.101.0.209 - - [10/Feb/2020:06:02:17 +0000] "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 404 5491 "http://34.66.47.90:80/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "-"
smtp_1            |   276 LOG: MAIN
smtp_1            |   276   == <my email> R=dnslookup T=remote_smtp defer (99): Cannot assign requested address

How to reproduce

$ tutor local stop &>/dev/null
$ docker stop $(docker ps -aq)
$ bat "$(tutor config printroot)/config.yml"
───────┬───────────────────────────────────────────────────────────────────
       │ File: /home/samuel/.local/share/tutor/config.yml
───────┼───────────────────────────────────────────────────────────────────
   1   │ ACTIVATE_HTTPS: true
   2   │ ANDROID_OAUTH2_SECRET: '<my random string>'
   3   │ CMS_HOST: '<my cms host string>'
   4   │ CONTACT_EMAIL: '<my email>'
   5   │ ID: '<my random string>'
   6   │ LANGUAGE_CODE: en
   7   │ LMS_HOST: '<my lms host string>'
   8   │ MYSQL_ROOT_PASSWORD: '<my random string>'
   9   │ OPENEDX_MYSQL_PASSWORD: '<my random string>'
  10   │ OPENEDX_SECRET_KEY: '<my random string>'
  11   │ PLATFORM_NAME: MOOCs
  12   │ SMTP_HOST: smtp.gmail.com
  13   │ SMTP_PORT: 587
  14   │ SMTP_USE_TLS: true
  15   │ SMTP_USERNAME: '<my email>'
  16   │ SMTP_PASSWORD: '<my password>'
$ tutor local start
<clear screen just before I click register, and you'll see the output as shown in the "Bug description" above>

Environment
[Fresh install of] Ubuntu 18.04.4 LTS with tutor 3.11.3, Docker 19.03.5, build 633a0ea838 and docker-compose version 1.25.4, build 8d51620a.

Additional context
If you can tell me how to disable email verification whilst working through this issue that would also be much appreciated :)

@regisb
Copy link
Contributor

regisb commented Feb 11, 2020

Hi @SamuelMarks! You should not be setting the EMAIL_* variables. Instead, you should define the SMTP_* configuration variables: https://docs.tutor.overhang.io/configuration.html#smtp

@regisb
Copy link
Contributor

regisb commented Feb 25, 2020

@SamuelMarks did you manage to solve your problem? If yes, please close this issue.

@regisb regisb closed this as completed Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants