Comments (9)
Maybe this is the cause:
[2018-09-07 05:29:46 +0000] [8] [ERROR] Error handling request /jupyterhub/services/notebooks/eberlej/test-renku/b408a9cd335cb122eef4ae3bc0507f19c9ae6905/test.ipynb
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 56, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
addr)
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 107, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/app/src/notebooks_service.py", line 91, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/app/src/notebooks_service.py", line 136, in decorated
return f(user, *args, **kwargs)
File "/app/src/notebooks_service.py", line 233, in notebook_status
app.logger.debug(request.environ['HTTP_REFERER'])
KeyError: 'HTTP_REFERER'
from renku-notebooks.
That should've been fixed, where are you running it? This only happens when you enter the url manually
from renku-notebooks.
I think the reason is that JH returns a 400 somewhere that isn't being handled properly
from renku-notebooks.
Just to say, this is low priority imho. It's quite rare to click on connect while the server is spawning.
from renku-notebooks.
sure, but to clarify -- you clicked connect in the "notebook UI" where it lists the running servers, right? That whole setup needs to be fixed, but yes, I think I've also encountered it there.
from renku-notebooks.
yep
from renku-notebooks.
For some reason, JH tries to spawn the server again when you try to connect:
[I 2018-09-07 08:22:49.155 JupyterHub log:158] 302 GET /jupyterhub/user/rokroskar/rokroskar-test-567e45d/ -> /jupyterhub/hub/user/rokroskar/rokroskar-test-567e45d/ (@10.39.0.0) 1.25ms
[D 2018-09-07 08:22:49.203 JupyterHub base:603] Initiating spawn for rokroskar
[D 2018-09-07 08:22:49.203 JupyterHub base:609] 1/64 concurrent spawns
[D 2018-09-07 08:22:49.203 JupyterHub base:612] 1 active servers
[I 2018-09-07 08:22:49.282 JupyterHub spawners:84] starting with args: --ip="0.0.0.0" --port=8888 --notebook-dir="/home/jovyan/work" --NotebookApp.default_url="/lab" --debug
[D 2018-09-07 08:22:49.282 JupyterHub spawners:86] user options: {}
This second spawn is after the first spawn is underway. Note the empty user_options
- that's what ultimately causes a 500 because the RenkuSpawner
expects a commit_sha
in the user_options
. This is what they look like on the first spawn:
[D 2018-09-07 08:22:46.157 JupyterHub spawners:86] user options: {'branch': 'master', 'commit_sha': '567e45df39ce2c5ce044339887a8b5fc67eea007', 'namespace': 'rokroskar', 'notebook': None, 'project': 'test', 'image_pull_secrets': ['renku-notebooks-registry']}
Where this second spawn comes from I have no idea. I guess it could happen if JH automatically spawns a new server on a GET
but that would be strange (the button on the notebooks UI goes straight to JH and does not go through the notebook service).
from renku-notebooks.
Leaving this open but removing it from the 0.3.0
milestone.
from renku-notebooks.
I believe it has been fixed with the new UI implementation.
from renku-notebooks.
Related Issues (20)
- Make CUDA image project templates HOT 3
- use autoscaling/v2 in hpa
- Save Session button fails HOT 4
- Enable editing the image on a running session
- Enable changing the resource class and pool for a running session
- Enable increasing the PVC size for a running session
- Check what error message is shown in the UI when a session cannot be scheduled because PVC mount limit per node is reached
- Add tolerations based on resource classes/pools HOT 1
- Add node selectors/affinity based on resource classes
- Explore the feasibility of using fuse inside running jupyter sessions HOT 5
- feat: add a statefulset label for the resource pool
- deduplicate cloud storage mounts
- [Pitch] Link shortener POC
- support RClone csi specs for storage
- figure out migration for old sessions and cleanup pre rclone code HOT 1
- Paused session annotation says the session is not synced when behind the remote
- Allow public SSH keys to be sent to the notebooks service when starting a session
- Support Renku 2.0 sessions
- Separate LFS auto-fetch flag for different repositories in Renku 2
- Make "no resources" error configurable for autoscaling platforms HOT 2
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 renku-notebooks.