This is a general PSA because I’ve seen a few different JupyterHub deployments get burned by this recently. The goal of this post is just to tie together a few issues, provide cross-links, and maybe help point folks in the right direction.
The rsession proxy project is what makes it possible for people to run RStudio on a JupyterHub. This is used by JupyterHub and Binder.
The problem with updating RStudio
However, the latest version of RStudio introduced a bug that that breaks the redirection, as documented in this issue:
and discussed re: Binder here:
This bug is documented in this RStudio issue:
but thus far it seems like it won’t be a priority for them to fix for some time.
The problem with updating R 4.1
If you pin RStudio to 4.0, and continue updating the base R version, you’ll get an error about visualizations not working in RStudio and the visualizations won’t work. See this issue for one example of this problem:
Hi @choldgraf thanks for raising this issue. In broad terms: I agree with your suggestion to use older versions of R for now, that seems to work for our newly updated Binder instance of the open source book Geocomputation with R: Binder
To see how I got this working again, see the .binder file of the associated repo.
Key to that approach is putting the following in environment.yml which uses the ‘r-conda’ version of R which is behind the latest version of R it seems:
Hello, I am getting a problem that could be related with this, I am using jupyterhub on kubernetes and when I build an image using older R version, it works correctly: I login to jupyterhub, a jupyterlab instance is launched and I can from there launch Rstudio and it appears in another tab as expected.
But when I try building an image with R 4.1 or greater, when I select Rstudio from the options on jupyterlab launch menu, it redirects to “https://access/user/\<my username>/rstudio/auth-sign-in?appUri=%2F” and page not found error appears on the browser.
I checked and I am using jupyter-rsession-proxy version 2.0.1 on the single user image, this is from the jupyterlab terminal:
luciano@jupyter:~$ pip show jupyter-rsession-proxy
Summary: Jupyter extension to proxy RStudio
Author: Ryan Lovett & Yuvi Panda
Probably I am missing something, but I cant find the issue.
If someone knows what I am doing wrong, maybe can help me