Recently some of our users started getting " 500 : Internal Server Error" while logging in to hub via SAML. It’s odd that some users are able to login just fine while some are facing this issue. Could someone please explain the below events which i’m seeing from jupyterhub logs and what possible reason could be behind this:
[W 2024-06-26 15:51:26.010 JupyterHub samlauthenticator:485] Bad timing condition
[W 2024-06-26 15:51:26.010 JupyterHub samlauthenticator:487] Sent SAML Response before it was permitted
[W 2024-06-26 15:51:26.010 JupyterHub samlauthenticator:511] The SAML Assertion did not match the physical constraints
[E 2024-06-26 15:51:26.010 JupyterHub samlauthenticator:597] Error validating SAML response
[W 2024-06-26 15:51:26.010 JupyterHub base:714] Failed login for unknown user
[E 2024-06-26 15:51:26.011 JupyterHub web:1792] Uncaught exception POST /hub/login ()
HTTPServerRequest(protocol=‘https’, host='‘, method=‘POST’, uri=’/hub/login’, version=‘HTTP/1.1’, remote_ip=‘***’)
Traceback (most recent call last):
File “/usr/local/lib64/python3.6/site-packages/tornado/web.py”, line 1703, in _execute
result = await result
File “/usr/local/lib/python3.6/site-packages/jupyterhub/handlers/login.py”, line 153, in post
login_error=‘Invalid username or password’, username=data[‘username’]
KeyError: ‘username’[D 2024-06-26 15:51:26.011 JupyterHub base:1197] No template for 500