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
I have not been able to get jupyter-rsession-proxy to work in a Google Cloud Vertex AI Jupyter Notebook.
I understand this is pretty niche and platform specific, even if you no one picks this up as a bug I'd love some guidance on what to do next. I've been beating my head against the wall a bit.
Expected behaviour
I have jupyter-rsession-proxy installed in a google Cloud Vertex AI Jupyter Notebook
Rstudio appears as an available type of notebook
When I click it I'm able to access R studio.
Actual behaviour
Rstudio appears as an available type of notebook, as expected
When I click on it a new tab opens the page attempts to load for a while, and then eventually fails with a too many redirects error.
It sounds alot like an issue that was recently fixed, but I am using the most up to date versions of all the relevant packages.
You can see an example of what the chain or redirects looks like here.
I'm not sure what the expected behavior is here, or I'd fork and try to adjust init.py / rewrite_netloc myself. I'm hoping someone with experience with how this redirection issue was solved elsewhere can provide some guidance.
My environment is based on the docker container gcr.io/deeplearning-platform-release/r-cpu.4-2:latest
I've attempted to make it as similar to the rocker containers in a hope to get this to work, here's the docker file I'm using
# -----------------------------------
# GCP ML Container
# -----------------------------------
FROM gcr.io/deeplearning-platform-release/r-cpu.4-2:latest
RUN conda update --all
RUN conda update jupyterlab
# -----------------------------------
# Install R Tools using Rocker
# -----------------------------------
# RStudio
RUN git clone https://github.com/rocker-org/rocker-versioned2.git
ENV R_VERSION=4.2.2
ENV R_HOME=/usr/local/lib/R
ENV TZ=Etc/UTC
ENV S6_VERSION=v2.1.0.2
ENV RSTUDIO_VERSION=2022.07.2+576
ENV DEFAULT_USER=jupyter
ENV PANDOC_VERSION=default
ENV QUARTO_VERSION=default
ENV SHINY_SERVER_VERSION=latest
ENV NB_USER=jupyter
RUN mv rocker-versioned2/scripts rocker_scripts
RUN /rocker_scripts/install_rstudio.sh
RUN /rocker_scripts/install_pandoc.sh
RUN /rocker_scripts/install_quarto.sh
# Rshiny
RUN R -e 'install.packages(c("littler","docopt"))'
RUN ln -sf "${R_HOME}/site-library/littler/bin/r" /usr/local/bin/r
RUN ln -sf "${R_HOME}/site-library/littler/examples/installGithub.r" /usr/local/bin/installGithub.r
RUN ln -sf /rocker_scripts/bin/install2.r /usr/local/bin/install2.r
RUN /rocker_scripts/install_shiny_server.sh
RUN chmod 777 /usr/local/lib/R/site-library
# -----------------------------------
# Application specific config
# -----------------------------------
RUN conda install jupyter-rsession-proxy
RUN R -e 'install.packages(c("renv","tidylog"))'
# RUN pip install git+https://github.com/jupyterhub/jupyter-rsession-proxy.git@master
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Bug description
I have not been able to get jupyter-rsession-proxy to work in a Google Cloud Vertex AI Jupyter Notebook.
I understand this is pretty niche and platform specific, even if you no one picks this up as a bug I'd love some guidance on what to do next. I've been beating my head against the wall a bit.
Expected behaviour
I have jupyter-rsession-proxy installed in a google Cloud Vertex AI Jupyter Notebook
Rstudio appears as an available type of notebook
When I click it I'm able to access R studio.
Actual behaviour
Rstudio appears as an available type of notebook, as expected
When I click on it a new tab opens the page attempts to load for a while, and then eventually fails with a too many redirects error.
It sounds alot like an issue that was recently fixed, but I am using the most up to date versions of all the relevant packages.
You can see an example of what the chain or redirects looks like here.
I'm not sure what the expected behavior is here, or I'd fork and try to adjust init.py / rewrite_netloc myself. I'm hoping someone with experience with how this redirection issue was solved elsewhere can provide some guidance.
How to reproduce
So to really reproduce, you'd have to
https://cloud.google.com/architecture/data-science-with-r-on-gcp-eda#create_an_ai_platform_notebooks_instance_with_r
I know that first step is a tall ask, but I'm happy to work this myself if y'all could point me in the right directly.
You might be able to replicate the behavior with the docker container that GCP is using which is gcr.io/deeplearning-platform-release/r-cpu.4-2:latest
Restart the jupyter notebook
Click on the Rstudio icon in the launcher.
Your personal set up
My environment is based on the docker container gcr.io/deeplearning-platform-release/r-cpu.4-2:latest
I've attempted to make it as similar to the rocker containers in a hope to get this to work, here's the docker file I'm using
Python 3.7.12
jupyter-rsession-proxy 2.1.0
jupyter-server-proxy 3.2.2
jupyterlab 3.4.8
Full environment
Configuration
jupyter_notebook_config.py
Logs
Cannot figure out where to see any logsThe text was updated successfully, but these errors were encountered: