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

the jupyter desktop couldn't be open because of novnc js was forbidden because of 403 http error #116

Closed
etherflow-cn opened this issue Jun 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@etherflow-cn
Copy link

Bug description

after build the docker images, and run it with the description, try to open the desktop, with the connection pending.
check the chrome and backend, with the following errors:

To access the server, open this file in a browser:
file:///home/jovyan/.local/share/jupyter/runtime/jpserver-7-open.html
Or copy and paste one of these URLs:
http://eff3f15826c5:8888/lab?token=f0a61a27094bfa1ac86812c1473c670eb892f0e126017307
http://127.0.0.1:8888/lab?token=f0a61a27094bfa1ac86812c1473c670eb892f0e126017307
[I 2024-06-21 06:10:31.654 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
[I 2024-06-21 06:10:47.124 LabApp] Build is up to date
[I 2024-06-21 06:10:48.834 ServerApp] 302 GET /desktop ([email protected]) 0.78ms
[W 2024-06-21 06:11:12.849 ServerApp] Blocking request with no referer
[W 2024-06-21 06:11:12.849 ServerApp] 403 GET /desktop/static/dist/viewer.js.map (172.17.0.1): Blocking request from unknown origin
[W 2024-06-21 06:11:12.864 ServerApp] 403 GET /desktop/static/dist/viewer.js.map ([email protected]) 15.10ms referer=None
[W 2024-06-21 06:11:12.866 ServerApp] Blocking request with no referer
[W 2024-06-21 06:11:12.866 ServerApp] 403 GET /desktop/static/dist/index.css.map (172.17.0.1): Blocking request from unknown origin
[W 2024-06-21 06:11:12.867 ServerApp] 403 GET /desktop/static/dist/index.css.map ([email protected]) 1.93ms referer=None
image

How to reproduce

build the docker image with the repo,
run the docker with the command line:
docker run --rm --security-opt seccomp=unconfined -p 8888:8888 xxxximage

Expected behaviour

could open the desktop.

Actual behaviour

Your personal set up

try to install the docker image on k3s, but has the same problem.

  • OS:
    mac os
  • Version(s):
Full environment
# paste output of `pip freeze` or `conda list` here
Configuration
# jupyterhub_config.py
Logs
@etherflow-cn etherflow-cn added the bug Something isn't working label Jun 21, 2024
@manics
Copy link
Member

manics commented Jul 5, 2024

This is due to #117

@consideRatio
Copy link
Member

Resolved by pinning novnc 1.4 for now, closed in favor of #117

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

3 participants