Hi all,
We have today upgraded from Koa to Lilac via tutor v12 on K8s. Unfortunately however as part of the upgrade we lost our PV for Elasticsearch (which we’re not sure is relevant but worth mentioning!).
Since upgrading however, we now have an issue where pre-existing users created before the migration (with the exception of the first admin user) cannot login and are presented with an ‘unexpected error occured’ message on signin. This problem does not affect newly registered users though.
Looking at the LMS logs, the authentication is actually successful;
2021-06-10 18:05:58,424 INFO 6 [tracking] [user None] [ip XXX.XXX.XXX.XXX] logger.py:41 - {"name": "/api/user/v1/account/login_session/", "context": {"user_id": null, "path": "/api/user/v1/account/login_session/", "course_id": "", "org_id": ""}, "username": "", "session": "3e79b483f05620129bb1db97fd9d2d9f", "ip": "XXX.XXX.XXX.XXX", "agent": "Mozilla/5.0 ( │
2021-06-10 18:05:58,574 INFO 6 [audit] [user 4] [ip XXX.XXX.XXX.XXX] models.py:2590 - Login success - user.id: 4
[uwsgi-http key: SITE_URL client_addr: 10.0.2.88 client_port: 60556] hr_read(): Connection reset by peer [plugins/http/http.c line 917] [pid: 6|app: 0|req: 482/747] 10.0.2.88 () {66 vars in 1917 bytes} [Thu Jun 10 18:05:58 2021] POST /api/user/v1/account/login_session/ => generated 45 bytes in 426 msecs (HTTP/1.0 200) 14 headers in 4193 bytes (1 switches on core 0)
From the in-browser web console, the login_session
response comes back with a 502, looking at the nginx pod logs, we see the following:
2021/06/10 18:10:45 [error] 22#22: *2512 upstream sent too big header while reading response header from upstream, client: 10.0.2.218, server: SITE_URL, request: "POST /api/user/v1/account/login_session/ HTTP/1.1", upstream: "http://172.20.199.231:8000/api/user/v1/account/login_session/", host: "SITE_URL", r
10.0.2.218 - - [10/Jun/2021:18:10:45 +0000] SITE_URL "POST /api/user/v1/account/login_session/ HTTP/1.1" 502 552 "SITE_URL/login?next=%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" "XXX.XXX.XXX.XXX"
Any help would be greatly appreciated!