-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
404 errors when creating or opening notebooks in jupyterlab 4 under reverse proxy #15990
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
For info, my procedure works fine with the JupyterLab 2 and 3, but not 4 |
I think the problem comes from the following request: |
@krassowski shared #11393 and #7966, two older issues concerning using JupyterLab with a reverse proxy. |
Description
I am able to login, the Terminal works fine, but when I try to create/open a Notebook i got "File Load Error for Untitled.ipynb Invalid response: 404 Not Found"
Reproduce
docker run -it --rm --name jupyterlab-server-684 -p 43751:8888 -e ADDITIONAL_OPTIONS="--ServerApp.root_dir=/opt/notebooks --ServerApp.allow_remote_access=True --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=True --ServerApp.websocket_url='wss://try.activeeon.com:8443/cloud-automation-service/services/12/endpoints/jupyterlab-endpoint-684/' --ServerApp.allow_origin='*' " activeeon/jupyterlab4:latest
No errors in the logs:
This is the login page:
Note that the URL is correct:
https://try.activeeon.com:8443/cloud-automation-service/services/12/endpoints/jupyterlab-endpoint-684/login?next=%2Flab
After login, I am here:
Note that the URL is wrong:
https://try.activeeon.com:8443/lab
The Terminal works fine:
When I try to create/open a Notebook i got the following error message
More details
I tried to add those infos (separately and together) just after
--ServerApp.allow_origin='*'
in the base command below, but i am still getting the same error:Tested options:
--ServerApp.base_url='/cloud-automation-service/services/12/endpoints/jupyterlab-endpoint-684/'
--ServerApp.default_url='/cloud-automation-service/services/12/endpoints/jupyterlab-endpoint-684/'
--ServerApp.custom_display_url='https://try.activeeon.com:8443/cloud-automation-service/services/12/endpoints/jupyterlab-endpoint-684/lab'
Base command:
docker run -it --rm --name jupyterlab-server-684 -p 43751:8888 -e ADDITIONAL_OPTIONS="--ServerApp.root_dir=/opt/notebooks --ServerApp.allow_remote_access=True --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=True --ServerApp.websocket_url='wss://try.activeeon.com:8443/cloud-automation-service/services/12/endpoints/jupyterlab-endpoint-684/' --ServerApp.allow_origin='*' " activeeon/jupyterlab4:latest
Someone knows how can I fix this issue?
The text was updated successfully, but these errors were encountered: