lively-spring-5482
02/14/2023, 1:31 PM502 Bad Gateway error message.
Steps to reproduce (updated Chrome browser, MacOS/Win):
1. Login using SSO to DataHub - success
2. Play around for a while [optional]
3. Sign out from the UI
4. Once back on the login screen - re-login using SSO.
Step #4 gets us the above mentioned 502 error.
To us, the probable scenario looks like an internal error in DataHub. We’ve noticed PLAY_SESSION cookie holding the user currently logged in is not removed after the sign out. The browser still sends this cookie even though the session has already expired on the server. The latter refrains from responding to the request sent with an inactive cookie leading the load balancer to respond with an 502 error message.
Any suggestions on how we could fix the problem?
Thanks in advance!astonishing-answer-96712
02/14/2023, 5:44 PMlively-spring-5482
02/14/2023, 7:07 PMcold-book-93720
02/17/2023, 10:33 AMsome-microphone-33485
02/21/2023, 5:07 PMastonishing-answer-96712
02/21/2023, 6:07 PMastonishing-answer-96712
02/21/2023, 6:07 PMsome-microphone-33485
02/21/2023, 7:14 PMsome-microphone-33485
02/28/2023, 10:46 PMcold-book-93720
03/07/2023, 3:24 PM/sso. It looks to be working on my env now. The drawback is shared resource links will work for pre-authenticated users only, otherwise it lands on main page. But, it's better then getting the 502.
https://datahubspace.slack.com/archives/C017W0NTZHR/p1678202530939229
hope that helpssome-microphone-33485
03/13/2023, 5:24 AMcold-book-93720
03/13/2023, 12:49 PMdatahub-frontend with the pr change I posted, but Jjoyce pointed out it might be some Nginx issue when routing the 302 response with location header. But, I haven't had the chance to dig into it yet.astonishing-answer-96712
03/13/2023, 6:00 PMhappy-baker-8735
03/31/2023, 9:03 AMbig-carpet-38439
04/12/2023, 5:33 PMhappy-baker-8735
04/17/2023, 8:08 AMgreen-honey-91903
04/28/2023, 7:18 AMupstream sent too big header while reading response header from upstream
• check your nginx.conf and you’ll probably have a default proxy_buffer_size of 4k.
• increase this to 128k or some reasonable size.
◦ if using helm to deploy nginx, update values.controller.config.proxy-buffer-size and values.controller.config.proxy-buffers-number accordingly
◦ if using argoCD + helm, update the source.helm section of your argo app spec:
chart: ingress-nginx
helm:
parameters:
- name: controller.extraArgs.enable-ssl-passthrough
value: 'true'
- name: controller.config.proxy-buffer-size
value: '128k'
- name: controller.config.proxy-buffers-number
value: '4'
hopefully this helps anyone who runs into this!