Codespace (custom docker) no longer loads in JupyterLab #53253
Replies: 4 comments
-
Thank you for reporting this issue. Our engineering team will look into it and get back |
Beta Was this translation helpful? Give feedback.
-
I have run into the same issue. It is an image build on top of the default codespace image: mcr.microsoft.com/devcontainers/universal But as soon as I add the devcontainer feature which installs conda/mamba it fails in the exact same way as @eculler outlines. The following makes it easy to reproduce.
@eljog; I wonder if the codespaces uses any special tricks when starting the jupyter server? Do we miss certain packages in the conda environment? |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Fix TL;DR - Ensure you can run Main Testing I am having the same issue. What is Codespaces doing to start the server? Do I need to forward some ports? I'm using a docker-compose setup. I can start the Codespace, connect with Web and local VSCode, I can open jupyter notebooks and the local server can starts up and executes. [Live edits as I debug, thanks for being a good notebook, Github :D]
🤔 [Run devcontainer as a new, unprivileged user]
502 and 504s as I |
Beta Was this translation helpful? Give feedback.
-
JupyterLab Codespaces
I have been configuring a codespace with a docker image (which has jupyterlab installed in a conda environment which is activated by the Dockerfile). Today, I am suddenly unable to access it in JupyterLab.
My codespace is still accessible in the browser version of VSCode. However, when I open in in JupyterLab, I get a white screen with a black border. Before the blank screen, it displays the "Setting up your Codespace" window, sometimes following by the "Connecting" screen and sometimes not. Normally at this point the JupyterLab logo would appear and then I would be able to use JupyterLab.
Often but not always when I look at the developer tools I get a 500 Internal Server Error in response to a GET request to mycodespace.preview.app.github.dev/lab/?token=...
I also always get the warnings "Content Security Policy: Couldn’t process unknown directive ‘require-trusted-types-for’" and "Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content."
In VSCode port 8888 is visible and running. When I try opening the url for that port directly and insert the correct token I get another 500 Internal Server Error. This time, the response says "Jupyter Server requires JavaScript. Please enable it to proceed."
I have tried reverting the docker image and the .devcontainer.json to a version I know was working last week, multiple browsers (Firefox, Chrome, Safari) and deleting my browser cache, all with no change.
I looked at issue #50757, but it was not solved (and I have verified that /opt/conda/bin is in the codespace PATH as suggested there).
Beta Was this translation helpful? Give feedback.
All reactions