I have installed Binderhub on AWS/EKS using the ZTBH instructions. I am using Docker Hub as the registry and Google OAuth for authentication. Binderhub and Jupyterhub containers spin up and are reachable via the load balancer URLs. I am also able to authenticate into Jupyter using the Google OAuth. However, when I go to start a server in Jupyter, I get an error in tornado:
[I 2022-01-25 18:57:14.096 JupyterHub log:189] 302 GET /hub/oauth_login?next= -> https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=REDACTED&client_id=REDACTED&state=[secret]&scope=openid+email (@::ffff:192.168.128.132) 1.86ms
[I 2022-01-25 18:57:14.671 JupyterHub base:762] User logged in: lawrence
[I 2022-01-25 18:57:14.672 JupyterHub log:189] 302 GET /hub/oauth_callback?state=[secret]&code=[secret]&scope=email+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=[secret]&hd=REDACTED&prompt=none -> /hub/home (@::ffff:192.168.128.132) 157.97ms
[I 2022-01-25 18:57:16.209 JupyterHub provider:574] Creating oauth client jupyterhub-user-lawrence
[E 2022-01-25 18:57:16.225 JupyterHub user:718] Unhandled error starting lawrence's server: HTTP 400: Bad Request (token required)
[E 2022-01-25 18:57:16.251 JupyterHub gen:623] Exception in Future <Task finished name='Task-756' coro=<BaseHandler.spawn_single_user.<locals>.finish_user_spawn() done, defined at /usr/local/lib/python3.8/dist-packages/jupyterhub/handlers/base.py:900> exception=HTTPError()> after timeout
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tornado/gen.py", line 618, in error_callback
future.result()
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/handlers/base.py", line 907, in finish_user_spawn
await spawn_future
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/user.py", line 736, in spawn
raise e
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/user.py", line 632, in spawn
f = maybe_future(spawner.start())
File "<string>", line 92, in start
tornado.web.HTTPError: HTTP 400: error (token required)
I am unsure how to best debug this error. Can anybody point me in the right direction?