Hello,
I am installing openedx using tutor local launch, but I have issues. If I enable https, I get ERR_TOO_MANY_REDIRECTS on both lms and cms sites. If I disable https and install again, I can access lms and cms fine, but if I click on login or register on any of the sites, I get a blank page. I am using 2 subdomains for lms(learn.site.com) and cms(admin.site.com) and added a 3rd for apps.learn.site.com. Is there an issue if I want to use 2 domains? I would be happy to provide more information if necessary.
Regards!
If you are using Tutor, you should read more about Tutor troubleshooting
https://docs.tutor.overhang.io/troubleshooting.html
Make sure all services are up, and watch the log to see what happened.
I am using tutor, all my services are up, but i dont think i see anything wrong in the logs.
This is what i get when going to admin.site.com and clicking register there. (https disabled)
tutor_local-cms-1 | 2023-04-14 11:34:10,781 INFO 17 [tracking] [user None] [ip x] logger.py:41 - {"name": "/", "context": {"user_id": null, "path": "/", "course_id": "", "org_id": "", "enterprise_uuid": ""}, "username": "", "session": "", "ip": "x", "agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", "host": "admin.site.com", "referer": "", "accept_language": "en-US,en;q=0.9", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2023-04-14T11:34:10.781265+00:00", "event_type": "/", "event_source": "server", "page": null}
tutor_local-cms-1 | [pid: 17|app: 0|req: 2/4] 172.x.x.x () {56 vars in 1031 bytes} [Fri Apr 14 11:34:10 2023] GET / => generated 12838 bytes in 31 msecs (HTTP/1.1 200) 6 headers in 340 bytes (1 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472050.8021293,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54592","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/"},"user_id":"","duration":0.03471301,"size":3741,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/5] 172.x.x.x () {56 vars in 1074 bytes} [Fri Apr 14 11:34:10 2023] GET /static/studio/js/i18n/en/djangojs.705ead69114e.js => generated 3281 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 125 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472050.9221833,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54596","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/js/i18n/en/djangojs.705ead69114e.js"},"user_id":"","duration":0.0070959,"size":1003,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/6] 172.x.x.x () {56 vars in 1092 bytes} [Fri Apr 14 11:34:10 2023] GET /static/studio/css/cms-style-vendor.0bb1c51e34bf.css => generated 95230 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 112 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472050.9907346,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"p","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/css/cms-style-vendor.0bb1c51e34bf.css"},"user_id":"","duration":0.002548015,"size":20412,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/7] 172.x.x.x () {56 vars in 1124 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/css/cms-style-vendor-tinymce-content.fccb74b96a2f.css => generated 28444 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 112 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.0347083,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54600","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/css/cms-style-vendor-tinymce-content.fccb74b96a2f.css"},"user_id":"","duration":0.001819051,"size":7171,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/8] 172.x.x.x () {56 vars in 1118 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/css/cms-style-vendor-tinymce-skin.8a6209be4588.css => generated 61197 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 112 bytes (0 switches on core 0)
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/9] 172.x.x.x () {56 vars in 1108 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/bundles/commons.448624571c29875ccab8.c22c338ebb4d.js => generated 416762 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 127 bytes (0 switches on core 0)
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/10] 172.x.x.x () {56 vars in 1087 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/css/studio-main-v1.4af137fdfe84.css => generated 895805 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 113 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.0381422,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"p2","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/css/cms-style-vendor-tinymce-skin.8a6209be4588.css"},"user_id":"","duration":0.003204034,"size":10743,"status":200}
tutor_local-caddy-1 | {"level":"info","ts":1681472051.0426323,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"p3","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/bundles/commons.448624571c29875ccab8.c22c338ebb4d.js"},"user_id":"","duration":0.007456119,"size":125696,"status":200}
tutor_local-caddy-1 | {"level":"info","ts":1681472051.0446792,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"p4","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/css/studio-main-v1.4af137fdfe84.css"},"user_id":"","duration":0.009642898,"size":99092,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/11] 172.x.x.x () {56 vars in 1077 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/cms/js/require-config.5086e554c65c.js => generated 14383 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 126 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.1071765,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"p5","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/cms/js/require-config.5086e554c65c.js"},"user_id":"","duration":0.005022177,"size":3376,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/12] 172.x.x.x () {56 vars in 1071 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/js/cms-base-vendor.11448695f92c.js => generated 605390 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 127 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.160813,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"p6","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/js/cms-base-vendor.11448695f92c.js"},"user_id":"","duration":0.039154257,"size":177109,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/13] 172.x.x.x () {56 vars in 1133 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/studio-logo.b6c374d66d57.png => generated 570 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 111 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.517638,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54612","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/studio-logo.b6c374d66d57.png"},"user_id":"","duration":0.005195635,"size":570,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/14] 172.x.x.x () {56 vars in 1148 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/thumb-hiw-feature2.db508d73ec9d.png => generated 20270 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 113 bytes (0 switches on core 0)
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/15] 172.x.x.x () {56 vars in 1148 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/thumb-hiw-feature1.99fdb83f47b4.png => generated 24604 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 113 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.5185454,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54616","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/thumb-hiw-feature2.db508d73ec9d.png"},"user_id":"","duration":0.002412448,"size":20270,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/16] 172.x.x.x () {56 vars in 1136 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/hiw-feature1.e405abcbf486.png => generated 100316 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 114 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.5190215,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54614","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/thumb-hiw-feature1.99fdb83f47b4.png"},"user_id":"","duration":0.003770021,"size":24604,"status":200}
tutor_local-caddy-1 | {"level":"info","ts":1681472051.5196033,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54618","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/hiw-feature1.e405abcbf486.png"},"user_id":"","duration":0.001398753,"size":100316,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/17] 172.x.x.x () {56 vars in 1148 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/thumb-hiw-feature3.615e189e10bd.png => generated 37648 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 113 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.5212543,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54620","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/thumb-hiw-feature3.615e189e10bd.png"},"user_id":"","duration":0.000784337,"size":37648,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/18] 172.x.x.x () {58 vars in 1224 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/fonts/OpenSans/OpenSans-Regular-webfont.a17b3a9bf6a0.woff2 => generated 18396 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 114 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.587802,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54622","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/fonts/OpenSans/OpenSans-Regular-webfont.a17b3a9bf6a0.woff2"},"user_id":"","duration":0.001197739,"size":18396,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/19] 172.x.x.x () {56 vars in 1136 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/hiw-feature2.cae4b4f6ecc3.png => generated 50006 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 113 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.5901427,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54624","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/hiw-feature2.cae4b4f6ecc3.png"},"user_id":"","duration":0.000914739,"size":50006,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/20] 172.x.x.x () {56 vars in 1136 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/images/hiw-feature3.76d3bedb537e.png => generated 82373 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 113 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.6639283,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54626","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/images/hiw-feature3.76d3bedb537e.png"},"user_id":"","duration":0.006526391,"size":82373,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/21] 172.x.x.x () {58 vars in 1226 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/fonts/OpenSans/OpenSans-Semibold-webfont.09409c5982d1.woff2 => generated 18560 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 114 bytes (0 switches on core 0)
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/22] 172.x.x.x () {58 vars in 1209 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/fonts/vendor/fontawesome-webfont.e6cf7c6ec7c2.woff2?v=4.6.3 => generated 71896 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 114 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.91058,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54630","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/fonts/OpenSans/OpenSans-Semibold-webfont.09409c5982d1.woff2"},"user_id":"","duration":0.00527565,"size":18560,"status":200}
tutor_local-caddy-1 | {"level":"info","ts":1681472051.9140003,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54632","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/fonts/vendor/fontawesome-webfont.e6cf7c6ec7c2.woff2?v=4.6.3"},"user_id":"","duration":0.008775989,"size":71896,"status":200}
tutor_local-cms-1 | [pid: 17|app: -1|req: -1/23] 172.x.x.x () {56 vars in 1044 bytes} [Fri Apr 14 11:34:11 2023] GET /static/studio/js/factories/base.js => generated 314490 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 127 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472051.938901,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54634","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/js/factories/base.js"},"user_id":"","duration":0.029588514,"size":92155,"status":200}
tutor_local-cms-1 | [pid: 7|app: -1|req: -1/24] 172.x.x.x () {56 vars in 1056 bytes} [Fri Apr 14 11:34:12 2023] GET /static/studio/js/vendor/jquery.cookie.js => generated 1941 bytes in 0 msecs via sendfile() (HTTP/1.1 200) 3 headers in 125 bytes (0 switches on core 0)
tutor_local-caddy-1 | {"level":"info","ts":1681472052.0409462,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"x","remote_port":"54636","proto":"HTTP/1.0","method":"GET","host":"admin.site.com","uri":"/static/studio/js/vendor/jquery.cookie.js"},"user_id":"","duration":0.00128676,"size":850,"status":200}
tutor_local-caddy-1 | {"level":"info","ts":1681472109.242289,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"x","remote_port":"54752","proto":"HTTP/1.0","method":"GET","host":"x53","uri":"/register?next=http%3A%2F%2Fadmin.site.com%2Flogin%2F","headers":{"Connection":["close"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Accept-Encoding":["gzip, deflate"],"Accept-Language":["en-US,en;q=0.9"]}},"user_id":"","duration":0.000010113,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
tutor_local-caddy-1 | {"level":"info","ts":1681472109.3413622,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"x","remote_port":"54754","proto":"HTTP/1.0","method":"GET","host":"x53","uri":"/favicon.ico","headers":{"Connection":["close"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"],"Accept":["image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"],"Referer":["http://learn.site.com/register?next=http%3A%2F%2Fadmin.site.com%2Flogin%2F"],"Accept-Encoding":["gzip, deflate"],"Accept-Language":["en-US,en;q=0.9"]}},"user_id":"","duration":0.000009446,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
Managed to fix it myself, problem was i was setting my server to https but configuring tutor with http, this caused issue that the site was trying to access not secure http path set in env/apps/openedx/settings/lms/production.py "REFRESH_ACCESS_TOKEN_ENDPOINT": "http://learn.site.com/login_refresh"
so it was blocking it from showing. just changing link to “https://learn.site.com/login_refresh” fixed it for me, not sure if it will cause problems in the future though
OK its been a while, i just wasnt configuring nginx properly, i followed tutors docs on proxy and pretty much everything is good now!