You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RStudio's interface comes up but I see an initialization error about client_init
Using the web developer tools, I can see that the underlying error thrown is '_xsrf' argument missing from POST.
How to reproduce
Build a singleuser container.
This is my Dockerfile:
FROM --platform=linux/amd64 quay.io/jupyter/base-notebook
ARG JUPYTER_VERSION=4.1.0
# Install jupyter-hub in the correct version# must align with the main serverRUN pip install "jupyterhub==${JUPYTER_VERSION}"# R INSTALLUSER root
RUN apt-get update && \
apt-get install --no-install-recommends -y r-base=4.3.3-2build2
RUN pip install jupyter-rsession-proxy
# R STUDIO INSTALL# Fixes "Depends: libssl1.1 (>= 1.1.1) but it is not installable"RUN echo "deb http://security.ubuntu.com/ubuntu focal-security main" | tee /etc/apt/sources.list.d/focal-security.list
# Install gdebiRUN apt-get update && apt-get install --no-install-recommends -y gdebi-core
# Install RStudioRUN wget https://download2.rstudio.org/server/focal/amd64/rstudio-server-2024.09.0-375-amd64.deb && \
gdebi --non-interactive rstudio-server-2024.09.0-375-amd64.deb && \
rm rstudio-server-2024.09.0-375-amd64.deb
# Fix permissionsRUN chown -R ${NB_UID}:${NB_GID} /home/${NB_USER}
# Grant sudo to userRUN usermod -a -G sudo ${NB_USER}
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER ${NB_USER}
Configure jupyterhub
Full config shared below, but essentially this is a jupyterhub instance that authenticates against KeyCloak and uses a DockerSpawner to fire up the single-user container from above.
The python bit works. I can share more details for reproduction if necessary!
Start Jupyerhub and click on the RStudio link in the dispatcher
Expected behaviour
RStudio shows up and is logged in
Actual behaviour
See the bug description above
Your personal set up
Jupyterhub is containerized too (docker-compose).
Using KeyCloak for authentication with GenericOAuthenticator.
The singleuser instance is a docker container built with the Dockerfile above.
I set GenericOAuthenticator.enable_auth_state = True
OS:
My host is MacOS, the Dockerfile is currently hardcoded to linux/amd64 architecture.
The dockerfile ultimately inherits from ubuntu:24.04.
Version(s):
Python 3.12.7
Jupyter version 4.1.0
R 4.3.3
rstudio-server 2024.09.0+375
Bug description
RStudio's interface comes up but I see an initialization error about client_init
Using the web developer tools, I can see that the underlying error thrown is
'_xsrf' argument missing from POST
.How to reproduce
This is my Dockerfile:
Configure jupyterhub
Full config shared below, but essentially this is a jupyterhub instance that authenticates against KeyCloak and uses a DockerSpawner to fire up the single-user container from above.
The python bit works. I can share more details for reproduction if necessary!
Start Jupyerhub and click on the RStudio link in the dispatcher
Expected behaviour
RStudio shows up and is logged in
Actual behaviour
See the bug description above
Your personal set up
Jupyterhub is containerized too (docker-compose).
Using KeyCloak for authentication with
GenericOAuthenticator
.The singleuser instance is a docker container built with the Dockerfile above.
I set
GenericOAuthenticator.enable_auth_state = True
OS:
My host is MacOS, the Dockerfile is currently hardcoded to linux/amd64 architecture.
The dockerfile ultimately inherits from ubuntu:24.04.
Version(s):
Python 3.12.7
Jupyter version 4.1.0
R 4.3.3
rstudio-server 2024.09.0+375
Full environment
Configuration
Logs
The text was updated successfully, but these errors were encountered: