502 error when shifting between Studio and Portal
Comments
-
Stumbled upon an error while implementing a Decisions cluster behind a load balancer. It was a bit tricky to trouble shoot so I thought Ill share.
Basically I was getting a 502 Bad Gateway error when shifting between Studio and Portal. It worked again if I just reloaded the page. It usually happend the first time I shifted, and after that it worked fine for a while.
This only occured for users that was logged in with SAML SSO, not local users.
After troubleshooting I found that the load balancer by default had a maximum number/size of headers and Decisions exceeded that threshold when redirecting between portal and studio. (Probably headers that are related to the SSO)
The solution for HAProxy was configuring tune.http.maxhdr to a larger number (Im using 500 and it seems to work, but a to large number could affect memory usage. So please tune this to your implementation). If you are using Nginx you should look into the buffer-size parameter.Hope this helps
[i]edited by Vigersand on 1/13/2023[/i]
Howdy, Stranger!
Categories
- 4.1K All Categories
- 60 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions