-
Notifications
You must be signed in to change notification settings - Fork 7
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
R image: update python, pangeo-notebook and rstudio-server #97
Conversation
@abkfenris the
I built the image locally ( Thanks! |
You'd think conda would be able to find conda... |
Hmm, it's a pretty old miniconda image, so I wonder if there are somehow multiple versions of conda conflicting. --- a/r/Dockerfile
+++ b/r/Dockerfile
@@ -1,5 +1,5 @@
#syntax=docker/dockerfile:1.3
-FROM continuumio/miniconda3:4.12.0@sha256:58b1c7df8d69655ffec017ede784a075e3c2e9feff0fc50ef65300fc75aa45ae
+FROM continuumio/miniconda3:24.9.2-0@sha256:39b820af05f0f9bb986ca145a0d077bbd3bd866256277dd869fefb93bd03cd21
ENV NB_USER jovyan I tried changing a handful of things, but in my tinkering this morning I couldn't get Rstudio to launch from Jupyterlab by running |
Thanks. I should've tried to running
Hmm. |
For what it's worth, I followed the steps in https://hub.docker.com/r/continuumio/miniconda3 to pull the latest miniconda3 image and launch jupyter notebook server. In a new notebook, |
Addresses error File "/opt/conda/bin/conda", line 12, in <module> from conda.cli import main ModuleNotFoundError: No module named 'conda'
I landed on a solution: update But on to the next problem: when I launch the RStudio kernel from jlab, I get a 500: Internal Server Error. Sigh. And the Actually, re-reading your message:
I now see that you were already at that stage, where you could launch jlab but not launch Rstudio from jlab. I thought what you meant was that you couldn't launch jlab. I'll keep digging. |
…nd libfmt-dev deb packages
I updated the miniconda image to the version you listed, then explicitly added two library deb packages that were causing more subtle errors (including with nb_conda_kernels, I think): The CI tests are passing now! But Rstudio is still not launching successfully from jupyter lab. Rather than an immediate 500 error, as before, there's a wait of a few seconds, then the 500 error plus "The error was: could not start rstudio in time". I added
This error doesn't prevent jlab from launching and behaving normally (it seems). But I figured it's something I could address. Adding |
If |
I might explore the links off of here: https://discourse.jupyter.org/t/a-template-repository-for-running-latest-rstudio-r-on-mybinder-org-your-jupyterhub/12235 |
…dencies from Dockerfile to conda env file
I've pushed my last commits for the day. I've now eliminated all conda / libmamba errors. The last set of errors involved conflicts between There are no clear errors left in the run-time logs from
BUT, RStudio still doesn't launch 😞. I still get this behavior: there's a wait of a few seconds, then the 500 error plus "The error was: could not start rstudio in time". And the errors emitted when I click on the RStudio launcher in Jupyter Lab:
|
Sigh, the
I left
I saw that earlier, but I didn't look into it. |
FYI the "no space left on device" error I ran into earlier turned out to be a very real error. It looks like it's a docker error involving the GitHub limit of 14 GB for images. But I implemented a solution (adding this step:
That's just a CI problem, though. I'm still working on the core problem of not being able to launch RStudio from Jupyter Lab in local tests. I'll try some things today. |
Ya, I've run into that a few times as they update the underlying image and have lots of language versions installed. It might also be possibly to build on top of rocker, and then launch right into RStudio. https://github.com/search?q=repo%3A2i2c-org%2Finfrastructure%20rstudio&type=code |
It looks like their user package installer can now throw errors and stop a build rather than silently passing them. https://rocker-project.org/use/extending.html#install2.r |
I started looking into I've tried downgrading |
@emiliom 👋 @jnywong cross-posted your message on 2i2c's Slack into one of our private channels, and I took a quick look. When I try this PR, the
If you RUN chown -R ${NB_USER} ${HOME}/.cache
USER ${NB_USER} Long-term, I agree that moving to something like Rocker seems like a good suggestion, but hopefully this unblocks you? Feel free to ping me if you run into any more problems. I'm not an R expert, but I am very familiar with containers & the Jupyter stack. |
OMG, that did it!!! Thank you so much @agoose77!! This is a huge relief for me. I'll update the PR. Again, THANK YOU!! |
Give NB_USER permission to HOME/.cache
@emiliom a pleasure! I haven't tested beyond "does it launch into RStudio". Keeping fingers crossed 🤞 |
Update these core packages to recent versions. First time we update these since 2022.
See #90 (comment)
This update is in support of the OHW-espanol event in a couple of weeks. ref oceanhackweek/Hub-Management#6