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

xcube-jl-ext tile in jupyterhub fails to launch upon user login. #2

Open
TejasMorbagal opened this issue Oct 15, 2024 · 0 comments · May be fixed by #3
Open

xcube-jl-ext tile in jupyterhub fails to launch upon user login. #2

TejasMorbagal opened this issue Oct 15, 2024 · 0 comments · May be fixed by #3

Comments

@TejasMorbagal
Copy link

Complete jupyter server log:

 Defaulted container "notebook" out of: notebook, block-cloud-metadata (init)
[I 2024-10-15 15:29:42.465 ServerApp] Package jupyterhub took 0.0000s to import
[I 2024-10-15 15:29:42.518 ServerApp] Package jupyter_lsp took 0.0525s to import
[W 2024-10-15 15:29:42.518 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2024-10-15 15:29:42.522 ServerApp] Package jupyter_server_mathjax took 0.0042s to import
[I 2024-10-15 15:29:43.084 ServerApp] Package jupyter_server_proxy took 0.5601s to import
[I 2024-10-15 15:29:43.117 ServerApp] Package jupyter_server_terminals took 0.0323s to import
[I 2024-10-15 15:29:43.122 ServerApp] Package jupyter_server_xarray_leaflet took 0.0043s to import
[W 2024-10-15 15:29:43.122 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_server_xarray_leaflet. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2024-10-15 15:29:43.331 ServerApp] Package jupyterlab took 0.2086s to import
[I 2024-10-15 15:29:44.576 ServerApp] Package jupyterlab_git took 0.0689s to import
[I 2024-10-15 15:29:44.589 ServerApp] Package nbclassic took 0.0121s to import
[W 2024-10-15 15:29:44.594 ServerApp] A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2024-10-15 15:29:44.595 ServerApp] Package nbdime took 0.0000s to import
[I 2024-10-15 15:29:44.599 ServerApp] Package nbgitpuller took 0.0043s to import
[I 2024-10-15 15:29:44.600 ServerApp] Package notebook took 0.0000s to import
[I 2024-10-15 15:29:44.604 ServerApp] Package notebook_shim took 0.0000s to import
[W 2024-10-15 15:29:44.604 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2024-10-15 15:29:44.637 ServerApp] Package xcube_jl_ext took 0.0317s to import
[I 2024-10-15 15:29:44.637 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-10-15 15:29:44.643 ServerApp] jupyter_server_mathjax | extension was successfully linked.
[I 2024-10-15 15:29:44.643 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2024-10-15 15:29:44.648 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-10-15 15:29:44.648 ServerApp] jupyter_server_xarray_leaflet | extension was successfully linked.
[I 2024-10-15 15:29:44.649 JupyterHubSingleUser] Starting jupyterhub single-user server extension version 4.0.2
[I 2024-10-15 15:29:44.649 JupyterHubSingleUser] Using default url from environment $JUPYTERHUB_DEFAULT_URL: /lab
[I 2024-10-15 15:29:44.653 ServerApp] jupyterhub | extension was successfully linked.
[W 2024-10-15 15:29:44.654 LabApp] 'extra_template_paths' was found in both NotebookApp and ServerApp. This is likely a recent change. This config will only be set in NotebookApp. Please check if you should also config these traits in ServerApp for your purpose.
[I 2024-10-15 15:29:44.657 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-10-15 15:29:44.657 ServerApp] jupyterlab_git | extension was successfully linked.
[W 2024-10-15 15:29:44.659 NotebookApp] 'extra_template_paths' was found in both NotebookApp and ServerApp. This is likely a recent change. This config will only be set in NotebookApp. Please check if you should also config these traits in ServerApp for your purpose.
[I 2024-10-15 15:29:44.662 ServerApp] nbclassic | extension was successfully linked.
[I 2024-10-15 15:29:44.662 ServerApp] nbdime | extension was successfully linked.
[I 2024-10-15 15:29:44.662 ServerApp] nbgitpuller | extension was successfully linked.
[W 2024-10-15 15:29:44.664 JupyterNotebookApp] 'extra_template_paths' was found in both NotebookApp and ServerApp. This is likely a recent change. This config will only be set in NotebookApp. Please check if you should also config these traits in ServerApp for your purpose.
[I 2024-10-15 15:29:44.669 ServerApp] notebook | extension was successfully linked.
[I 2024-10-15 15:29:45.431 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-10-15 15:29:45.432 ServerApp] xcube_jl_ext | extension was successfully linked.
[I 2024-10-15 15:29:45.477 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-10-15 15:29:45.479 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-10-15 15:29:45.479 ServerApp] jupyter_server_mathjax | extension was successfully loaded.
[I 2024-10-15 15:29:45.497 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2024-10-15 15:29:45.515 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-10-15 15:29:45.515 ServerApp] jupyter_server_xarray_leaflet | extension was successfully loaded.
[W 2024-10-15 15:29:45.533 JupyterHubSingleUser] jupyterhub version 4.1.5 != jupyterhub-singleuser version 4.0.2. This could cause failure to authenticate and result in redirect loops!
[I 2024-10-15 15:29:45.534 JupyterHubSingleUser] Updating Hub with activity every 300 seconds
[I 2024-10-15 15:29:45.535 ServerApp] jupyterhub | extension was successfully loaded.
[I 2024-10-15 15:29:45.587 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.11/site-packages/jupyterlab
[I 2024-10-15 15:29:45.587 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2024-10-15 15:29:45.587 LabApp] Extension Manager is 'pypi'.
[I 2024-10-15 15:29:45.591 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-10-15 15:29:45.598 ServerApp] jupyterlab_git | extension was successfully loaded.
[I 2024-10-15 15:29:45.610 ServerApp] nbclassic | extension was successfully loaded.
[I 2024-10-15 15:29:45.815 ServerApp] nbdime | extension was successfully loaded.
[I 2024-10-15 15:29:45.817 ServerApp] nbgitpuller | extension was successfully loaded.
[I 2024-10-15 15:29:45.821 ServerApp] notebook | extension was successfully loaded.
[I 2024-10-15 15:29:45.821 ServerApp] Registered xcube_jl_ext server extension
[I 2024-10-15 15:29:45.822 ServerApp] xcube_jl_ext | extension was successfully loaded.
[I 2024-10-15 15:29:45.822 ServerApp] Serving notebooks from local directory: /home/jovyan
[I 2024-10-15 15:29:45.822 ServerApp] Jupyter Server 2.7.3 is running at:
[I 2024-10-15 15:29:45.822 ServerApp] http://jupyter-tejas:8888/user/tejas/lab?token=...
[I 2024-10-15 15:29:45.822 ServerApp]     http://127.0.0.1:8888/user/tejas/lab?token=...
[I 2024-10-15 15:29:45.822 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2024-10-15 15:29:46.250 ServerApp] 302 GET /user/tejas/ -> /user/tejas/lab? (@10.0.3.5) 0.73ms
[I 2024-10-15 15:29:46.465 ServerApp] 302 GET /user/tejas/ -> /user/tejas/lab? (@10.0.3.100) 0.76ms
[W 2024-10-15 15:29:46.535 ServerApp] No Hub user identified for request
[W 2024-10-15 15:29:46.535 ServerApp] Token stored in cookie may have expired
[I 2024-10-15 15:29:46.536 ServerApp] 302 GET /user/tejas/lab -> /hub/api/oauth2/authorize?client_id=jupyterhub-user-tejas&redirect_uri=%2Fuser%2Ftejas%2Foauth_callback&response_type=code&state=[secret] (@10.0.3.100) 9.39ms
[I 2024-10-15 15:29:46.790 ServerApp] Logged-in user {'groups': [], 'kind': 'user', 'admin': True, 'name': 'tejas', 'session_id': '1081c16ecc114730a0c799a91fce7b41', 'scopes': ['access:servers!server=tejas/', 'read:users:groups!user=tejas', 'read:users:name!user=tejas']}
[W 2024-10-15 15:29:46.802 ServerApp] No Hub user identified for request
[W 2024-10-15 15:29:46.802 ServerApp] Token stored in cookie may have expired
[I 2024-10-15 15:29:46.803 ServerApp] 302 GET /user/tejas/oauth_callback?code=[secret]&state=[secret] -> /user/tejas/lab (@10.0.3.100) 70.25ms
[I 2024-10-15 15:29:46.894 ServerApp] 200 GET /user/tejas/lab ([email protected]) 48.93ms
[I 2024-10-15 15:29:47.099 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2024-10-15 15:29:48.540 ServerApp] 200 GET /user/tejas/api/kernelspecs?1729006188283 ([email protected]) 228.56ms
[I 2024-10-15 15:29:48.545 ServerApp] 200 GET /user/tejas/api/me?1729006188285 ([email protected]) 3.82ms
[I 2024-10-15 15:29:48.766 ServerApp] 200 GET /user/tejas/lab/api/settings?1729006188296 ([email protected]) 224.78ms
[I 2024-10-15 15:29:48.778 ServerApp] 200 GET /user/tejas/api/sessions?1729006188305 ([email protected]) 234.98ms
[I 2024-10-15 15:29:48.779 ServerApp] 200 GET /user/tejas/api/kernels?1729006188304 ([email protected]) 235.78ms
[I 2024-10-15 15:29:48.780 ServerApp] 200 GET /user/tejas/api/terminals?1729006188305 ([email protected]) 236.51ms
[I 2024-10-15 15:29:48.781 ServerApp] 101 GET /user/tejas/api/events/subscribe?token=[secret] ([email protected]) 237.04ms
[I 2024-10-15 15:29:48.783 ServerApp] 200 GET /user/tejas/api/kernelspecs?1729006188566 ([email protected]) 1.39ms
[I 2024-10-15 15:29:48.784 ServerApp] 200 GET /user/tejas/api/me?1729006188569 ([email protected]) 0.76ms
[I 2024-10-15 15:29:49.975 ServerApp] 200 GET /user/tejas/lab/api/translations/default?1729006189894 ([email protected]) 45.63ms
[I 2024-10-15 15:29:50.043 ServerApp] 200 GET /user/tejas/api/config/jupyterlabapputilsextensionannouncements?1729006190013 ([email protected]) 2.59ms
[I 2024-10-15 15:29:50.187 ServerApp] 200 GET /user/tejas/lsp/status?1729006190156 ([email protected]) 3.80ms
[E 2024-10-15 15:29:50.267 ServerApp] Uncaught exception PUT /user/tejas/xcube/labinfo?1729006190223 (10.0.3.100)
    HTTPServerRequest(protocol='https', host='bc.jupyter.brockmann-consult.de', method='PUT', uri='/user/tejas/xcube/labinfo?1729006190223', version='HTTP/1.1', remote_ip='10.0.3.100')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/conda/lib/python3.11/site-packages/xcube_jl_ext/handlers/labinfo.py", line 32, in put
        lab_info[has_proxy_key] = is_jupyter_server_proxy_enabled()
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/conda/lib/python3.11/site-packages/xcube_jl_ext/config.py", line 90, in is_jupyter_server_proxy_enabled
        page_config = json.load(fp)
                      ^^^^
    NameError: name 'json' is not defined
[W 2024-10-15 15:29:50.277 ServerApp] wrote error: 'Unhandled error'
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/conda/lib/python3.11/site-packages/xcube_jl_ext/handlers/labinfo.py", line 32, in put
        lab_info[has_proxy_key] = is_jupyter_server_proxy_enabled()
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/conda/lib/python3.11/site-packages/xcube_jl_ext/config.py", line 90, in is_jupyter_server_proxy_enabled
        page_config = json.load(fp)
                      ^^^^
    NameError: name 'json' is not defined
[E 2024-10-15 15:29:50.279 ServerApp] {
      "X-Xsrftoken": "2|13760cfe|d9cbf8db7faedf11899d3717ea1fbc13|1728922006",
      "X-Scheme": "https",
      "X-Real-Ip": "10.0.3.100",
      "X-Forwarded-Server": "autohttps-74587c94c6-v24bm",
      "X-Forwarded-Proto": "https,http",
      "X-Forwarded-Port": "443,80",
      "X-Forwarded-Host": "bc.jupyter.brockmann-consult.de",
      "X-Forwarded-For": "10.0.3.100,::ffff:10.0.3.145",
      "Te": "trailers",
      "Sec-Fetch-Site": "same-origin",
      "Sec-Fetch-Mode": "cors",
      "Sec-Fetch-Dest": "empty",
      "Referer": "https://bc.jupyter.brockmann-consult.de/user/tejas/lab",
      "Priority": "u=4",
      "Pragma": "no-cache",
      "Origin": "https://bc.jupyter.brockmann-consult.de",
      "Cookie": "_xsrf=[secret]; jupyterhub-user-tejas=[secret]; _ga=[secret]; jupyterhub-session-id=[secret]",
      "Content-Type": "application/json",
      "Cache-Control": "no-cache",
      "Authorization": "token [secret]",
      "Accept-Language": "en-US,en;q=0.5",
      "Accept-Encoding": "gzip, deflate, br, zstd",
      "Accept": "*/*",
      "Content-Length": "65",
      "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0",
      "Host": "bc.jupyter.brockmann-consult.de",
      "Connection": "keep-alive"
    }
[E 2024-10-15 15:29:50.279 ServerApp] 500 PUT /user/tejas/xcube/labinfo?1729006190223 ([email protected]) 21.29ms
forman added a commit that referenced this issue Oct 15, 2024
@forman forman linked a pull request Oct 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant