Comments (8)
Aha! I found a trace in the log:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1346, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2613, in wrapper
if not self.current_user:
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1028, in current_user
self._current_user = self.get_current_user()
File "/usr/local/lib/python2.7/dist-packages/IPython/html/base/handlers.py", line 72, in get_current_user
return self.login_handler.get_user(self)
File "/usr/local/bin/jupyterhub-singleuser", line 82, in get_user
auth_data = JupyterHubLoginHandler.verify_token(self, self.cookie_name, encrypted_cookie)
File "/usr/local/bin/jupyterhub-singleuser", line 51, in verify_token
data=encrypted_cookie,
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /hub/api/authorizations/cookie/jupyter-hub-token-yuvipanda (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
from dockerspawner.
What's your JupyterHub config? Which authenticator are you using for JupyterHub?
from dockerspawner.
I'm using the sample GitHub OAuth authenticator. https://gist.github.com/yuvipanda/08e06376ddb98f21a8c4 is the config. It works now after I fiddled around a bit - I set the ip address explicitly in the config, and also rebuilt the standalone docker container. Unsure which fixed it.
from dockerspawner.
I suspect setting the IP address explicitly in the config is what fixed it -- because the hub passes it's IP address along to the containers so they can communicate with the hub. The default is localhost
, I think, but localhost
inside the containers isn't the same as localhost
for the rest of the machine (unless the containers are run with --net=host
, but I think they're not). So, they need to have the real IP address to be able to connect.
Anyway, glad you were able to fix it!
from dockerspawner.
Yup, containers are not run with --net=host, so that won't work.
Thanks!
from dockerspawner.
Thanks @jhamrick !, I had the same problem when I launched the jupyterHub service. But now, I have my JupyterHub running 👍 . First, I executed the ifconfig command in the host, after that, I only had to change the line 'c.JupyterHub.hub_ip' with my ip and run again.
from dockerspawner.
I happen to stuck with this even after changing c.JupyterHub.hub_ip
to host. Until I've removed already created containers (seem hub address is cached at the creation time and those are using 'localhost' even after restart)
from dockerspawner.
I can confirm the behavioru @anaderi is seeing: any containers need to be removed.
from dockerspawner.
Related Issues (20)
- "host" network_mode is incompatible with port_bindings HOT 2
- Extra Create Kwargs Overwrite Create Kwargs HOT 2
- Named server docs do not include information on `name_template` configuration HOT 3
- SQLAlchemy 2 compatibility issue with JupyterHub<3.0 HOT 3
- Discussion: SQLAlchemy2 compatibility issue HOT 8
- imagename and tag not sanitized in name_template HOT 2
- Unable to change docker container name HOT 3
- Podman tests fails in CI due to restricted permissions in podman service started by non-root user HOT 1
- Not able to log to jupyterhub notebook as admin HOT 3
- Escape defaults causing mixed case usernames to have problems with the SystemUserSpawner HOT 2
- Add docs url to the right side of GitHub repo HOT 2
- Running SwarmSpawner with `c.SwarmSpawner.extra_create_kwargs = {"user": "root"}` fails HOT 1
- Allow passing exposed port arguments to docker swarm service creation HOT 3
- Interesting link in singleuser container HOT 2
- Add implementation for delete_forever HOT 1
- Test failures in main branch
- Request for image pull secrets to be passed for docker spawner single user image HOT 4
- Jupyterhub sample /examples/oauth not working HOT 1
- EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' 'unsafe-inline' https: data:" HOT 2
- examples/simple - /user/admin spawned server doesn't understand the path prefix, leads to 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerspawner.