If you've used a custom compute environment to upgrade RStudio >= 1.0.136, you may encounter a blank screen when loading a new session. Fortunately, this is easy to resolve.
RStudio version 1.0.136 introduced default behavior that prevents RStudio from running inside of an iframe (which is used by Domino to provide the sync menu). You can use the www-frame-origin parameter to get back up and running. To set this, add the following lines to your environment:
echo "www-frame-origin=app.dominodatalab.com" >> /etc/rstudio/rserver.conf chown ubuntu:ubuntu /etc/rstudio/rserver.conf
Note: for private deployments, replace app.dominodatalab.com
with the domain you use to access Domino.
Here's an example of a complete Dockerfile:
FROM quay.io/domino/base:2016-12-07_1239 USER root RUN \
cd /tmp && \
wget http://www.rstudio.org/download/latest/stable/server/ubuntu64/rstudio-server-latest-amd64.deb && \ dpkg -i rstudio-server-latest-amd64.deb && \ rm rstudio-server-latest-amd64.deb
RUN \
echo "www-frame-origin=app.dominodatalab.com" >> /etc/rstudio/rserver.conf && \ chown ubuntu:ubuntu /etc/rstudio/rserver.conf
If you find that setting the value to your domain does not work, you can use the any
or same
values
Comments
1 comment
On a Windows machine, running IE, I am not sure how or where to change these environment variables. I tried running an environment with an older version of RStudio and still got the same blank screen.
Please sign in to leave a comment.