Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Server Error #272

Open
DerThorsten opened this issue Feb 16, 2023 · 1 comment
Open

500 Internal Server Error #272

DerThorsten opened this issue Feb 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DerThorsten
Copy link

Description

some error in the terminal

Reproduce

trying out #265 with an existing kernel

hatch run dev.jupyterlab-noauth:jupyverse --kernels.connection_path=/Users/thorstenbeier/src/xeus-qt-python/bld/kernel.json

error I see in the terminal (it does not crash the server, seems like it is just continuing to live)


    ~/src/jupyverse  on   external_kernels !1 ?1  hatch run dev.jupyterlab-noauth:jupyverse --kernels.connection_path=/Users/thorstenbeier/src/xeus-qt-python/bld/    1 ✘  xeusqtpy   at 11:13:42 
[W 2023-02-16 11:13:52 uvicorn.error] Current configuration will not reload as not all conditions are met,please refer to documentation.
[I 2023-02-16 11:13:52 fps] Loading server configuration
[I 2023-02-16 11:13:52 fps] Loading names from plugin package(s) {'fps_uvicorn'}
[I 2023-02-16 11:13:52 fps] Registering name 'uvicorn' for plugins package 'fps_uvicorn'
[I 2023-02-16 11:13:52 fps] Loading configurations from plugin package(s) {'fps_uvicorn'}
[I 2023-02-16 11:13:52 fps] Registering configuration model for 'lab'
[I 2023-02-16 11:13:52 fps] Registering configuration model for 'kernels'
[I 2023-02-16 11:13:52 fps] Registering configuration model for 'frontend'
[I 2023-02-16 11:13:52 fps] Registering configuration model for 'resource_usage'
[I 2023-02-16 11:13:52 fps] Registering configuration model for 'jupyterlab'
[I 2023-02-16 11:13:52 fps] Registering configuration model for 'uvicorn'
[I 2023-02-16 11:13:52 fps] No application plugin to load
[I 2023-02-16 11:13:52 fps] Loading application(s) from plugin package(s) set()
[I 2023-02-16 11:13:52 fps] Loading API routers from plugin package(s) {'fps_resource_usage', 'fps_contents', 'fps_jupyterlab', 'fps_nbconvert', 'fps_yjs', 'fps_terminals', 'fps_kernels'}
[I 2023-02-16 11:13:52 fps] 2 route(s) and 0 mount(s) added from plugin 'nbconvert'
[I 2023-02-16 11:13:52 fps] 11 route(s) and 0 mount(s) added from plugin 'kernels'
[I 2023-02-16 11:13:52 fps] 1 route(s) and 0 mount(s) added from plugin 'resource_usage'
[I 2023-02-16 11:13:52 fps] 16 route(s) and 3 mount(s) added from plugin 'jupyterlab'
[I 2023-02-16 11:13:52 fps] 2 route(s) and 0 mount(s) added from plugin 'yjs'
[I 2023-02-16 11:13:52 fps] 4 route(s) and 0 mount(s) added from plugin 'terminals'
[I 2023-02-16 11:13:52 fps] 8 route(s) and 0 mount(s) added from plugin 'contents'
[I 2023-02-16 11:13:52 fps] No exception handler plugin to load
[I 2023-02-16 11:13:52 uvicorn.error] Started server process [19540]
[I 2023-02-16 11:13:52 uvicorn.error] Waiting for application startup.
[I 2023-02-16 11:13:52 uvicorn.error] Application startup complete.
[I 2023-02-16 11:13:52 uvicorn.error] Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
[I 2023-02-16 11:15:01 uvicorn.access] 127.0.0.1:49864 - "GET /api/sessions?1676542501284 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:05 uvicorn.access] 127.0.0.1:49864 - "GET /api/terminals?1676542505342 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:05 uvicorn.access] 127.0.0.1:49865 - "GET /api/contents?content=1&1676542505344 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:05 uvicorn.access] 127.0.0.1:49866 - "GET /api/kernels?1676542505344 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:11 uvicorn.access] 127.0.0.1:49867 - "GET /api/sessions?1676542511309 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:15 uvicorn.access] 127.0.0.1:49867 - "GET /api/terminals?1676542515364 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:15 uvicorn.access] 127.0.0.1:49868 - "GET /api/contents?content=1&1676542515366 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:15 uvicorn.access] 127.0.0.1:49868 - "GET /api/kernels?1676542515393 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:21 uvicorn.access] 127.0.0.1:49869 - "GET /api/sessions?1676542521331 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:25 uvicorn.access] 127.0.0.1:49869 - "GET /api/terminals?1676542525387 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:25 uvicorn.access] 127.0.0.1:49870 - "GET /api/contents?content=1&1676542525388 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:25 uvicorn.access] 127.0.0.1:49870 - "GET /api/kernels?1676542525402 HTTP/1.1" 200 OK
[I 2023-02-16 11:15:56 uvicorn.access] 127.0.0.1:49872 - "GET /service-worker-b2fb40a.js HTTP/1.1" 404 Not Found
[I 2023-02-16 11:16:25 uvicorn.access] 127.0.0.1:49874 - "GET /api/sessions?1676542585738 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49874 - "GET / HTTP/1.1" 302 Found
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49874 - "GET /lab HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49875 - "GET /lab/api/settings?1676542586362 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49874 - "GET /api/kernelspecs?1676542586360 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49876 - "GET /api/kernels?1676542586371 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49877 - "GET /api/sessions?1676542586371 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49878 - "GET /api/terminals?1676542586371 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:26 uvicorn.access] 127.0.0.1:49878 - "GET /api/kernelspecs?1676542586438 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/translations/default?1676542587452 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/listings/%40jupyterlab/extensionmanager-extension/listings.json?1676542587475 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/settings/%40jupyterlab/cell-toolbar-extension%3Aplugin?1676542587489 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49877 - "GET /lab/api/settings/%40jupyterlab/shortcuts-extension%3Ashortcuts?1676542587489 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49876 - "GET /lab/api/settings/%40jupyterlab/docmanager-extension%3Aplugin?1676542587489 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49874 - "GET /lab/api/settings/%40jupyterlab/mainmenu-extension%3Aplugin?1676542587490 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49875 - "GET /lab/api/settings/%40jupyterlab/htmlviewer-extension%3Aplugin?1676542587490 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/settings/%40jupyterlab/filebrowser-extension%3Awidget?1676542587491 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49879 - "GET /lab/api/settings/%40jupyterlab/notebook-extension%3Apanel?1676542587490 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49879 - "GET /lab/api/translations/?1676542587514 HTTP/1.1" 307 Temporary Redirect
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /api/nbconvert?1676542587526 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49875 - "GET /api/nbconvert?1676542587527 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49874 - "GET /lab/api/settings/%40jupyterlab/shortcuts-extension%3Ashortcuts?1676542587548 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49876 - "GET /lab/api/settings/%40jupyterlab/docmanager-extension%3Aplugin?1676542587549 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49877 - "GET /lab/api/settings/%40jupyterlab/csvviewer-extension%3Acsv?1676542587549 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49879 - "GET /lab/api/settings/%40jupyterlab/csvviewer-extension%3Atsv?1676542587549 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/settings/%40jupyterlab/fileeditor-extension%3Aplugin?1676542587549 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49875 - "GET /lab/api/settings/%40jupyterlab/toc-extension%3Aplugin?1676542587550 HTTP/1.1" 500 Internal Server Error
[E 2023-02-16 11:16:27 uvicorn.error] Exception in ASGI application
Traceback (most recent call last):
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fps/app.py", line 303, in __call__
    return await super().__call__(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/applications.py", line 271, in __call__
    await super().__call__(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/applications.py", line 118, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await dependant.call(**values)
  File "/Users/thorstenbeier/src/jupyverse/plugins/lab/fps_lab/routes.py", line 151, in get_setting
    with open(schemas_parent / "schemas" / name0 / name1 / f"{name2}.json") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/share/jupyter/lab/schemas/@jupyterlab/toc-extension/plugin.json'
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49874 - "GET /lab/api/translations HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49874 - "GET /lab/api/workspaces/default?1676542587848 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49874 - "GET /lab/api/settings/%40jupyterlab/application-extension%3Acontext-menu?1676542587857 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/settings/%40jupyterlab/shortcuts-extension%3Ashortcuts?1676542587858 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/settings?1676542587865 HTTP/1.1" 200 OK
[I 2023-02-16 11:16:27 uvicorn.access] 127.0.0.1:49878 - "GET /lab/api/settings/%40jupyterlab/application-extension%3Asidebar?1676542587881 HTTP/1.1" 500 Internal Server Error
[E 2023-02-16 11:16:27 uvicorn.error] Exception in ASGI application
Traceback (most recent call last):
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fps/app.py", line 303, in __call__
    return await super().__call__(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/applications.py", line 271, in __call__
    await super().__call__(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/applications.py", line 118, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await dependant.call(**values)
  File "/Users/thorstenbeier/src/jupyverse/plugins/lab/fps_lab/routes.py", line 151, in get_setting
    with open(schemas_parent / "schemas" / name0 / name1 / f"{name2}.json") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/thorstenbeier/Library/Application Support/hatch/env/virtual/jupyverse/h0Nxex75/dev.jupyterlab-noauth/share/jupyter/lab/schemas/@jupyterlab/application-extension/sidebar.json'
@DerThorsten DerThorsten added the bug Something isn't working label Feb 16, 2023
@welcome
Copy link

welcome bot commented Feb 16, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant