My Jupyterhub server is behind a proxy in a DMZ. I am able to set up the hub server. however while i run the git hub auth I get the following error:
[E 2020-10-12 09:40:58.565 JupyterHub web:1792] Uncaught exception GET /hub/oauth_callback?code=5fa9a45d536540819884&state=eyJzdGF0ZV9pZCI6ICI0YmMwZWVlYjI1ZDc0NDg5YWMxZDEyNTdjODg5ZjY2ZiIsICJuZXh0X3VybCI6ICIifQ%3D%3D (194.39.131.5)
HTTPServerRequest(protocol=‘http’, host=‘my.host.com’, method=‘GET’, uri=’/hub/oauth_callback?code=5fa9a45d536540819884&state=eyJzdGF0ZV9pZCI6ICI0YmMwZWVlYjI1ZDc0NDg5YWMxZDEyNTdjODg5ZjY2ZiIsICJuZXh0X3VybCI6ICIifQ%3D%3D’, version=‘HTTP/1.1’, remote_ip=‘194.39.131.5’)
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/tornado/web.py”, line 1703, in _execute
result = await result
File “/usr/local/lib/python3.6/dist-packages/oauthenticator/oauth2.py”, line 213, in get
user = await self.login_user()
File “/usr/local/lib/python3.6/dist-packages/jupyterhub/handlers/base.py”, line 699, in login_user
authenticated = await self.authenticate(data)
File “/usr/local/lib/python3.6/dist-packages/jupyterhub/auth.py”, line 383, in get_authenticated_user
authenticated = await maybe_future(self.authenticate(handler, data))
File “/usr/local/lib/python3.6/dist-packages/oauthenticator/sapgithub.py”, line 141, in authenticate
resp = await http_client.fetch(req)
File “/usr/local/lib/python3.6/dist-packages/tornado/simple_httpclient.py”, line 336, in run
source_ip=source_ip,
File “/usr/local/lib/python3.6/dist-packages/tornado/tcpclient.py”, line 270, in connect
addrinfo = await self.resolver.resolve(host, port, af)
File “/usr/local/lib/python3.6/dist-packages/tornado/netutil.py”, line 396, in resolve
None, _resolve_addr, host, port, family
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/dist-packages/tornado/netutil.py”, line 379, in _resolve_addr
addrinfo = socket.getaddrinfo(host, port, family, socket.SOCK_STREAM)
File “/usr/lib/python3.6/socket.py”, line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known