Giter Club home page Giter Club logo

Comments (9)

ebiiii avatar ebiiii commented on June 23, 2024

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.

rokroskar avatar rokroskar commented on June 23, 2024

That should've been fixed, where are you running it? This only happens when you enter the url manually

from renku-notebooks.

rokroskar avatar rokroskar commented on June 23, 2024

I think the reason is that JH returns a 400 somewhere that isn't being handled properly

from renku-notebooks.

leafty avatar leafty commented on June 23, 2024

Just to say, this is low priority imho. It's quite rare to click on connect while the server is spawning.

from renku-notebooks.

rokroskar avatar rokroskar commented on June 23, 2024

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.

leafty avatar leafty commented on June 23, 2024

yep

from renku-notebooks.

rokroskar avatar rokroskar commented on June 23, 2024

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.

rokroskar avatar rokroskar commented on June 23, 2024

Leaving this open but removing it from the 0.3.0 milestone.

from renku-notebooks.

rokroskar avatar rokroskar commented on June 23, 2024

I believe it has been fixed with the new UI implementation.

from renku-notebooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.