Launching an R Studio session running on Azure Container Instances results in a frozen screen with the message. "R is taking longer to start than usual"
It seems completely random. We have multiple Dockerfiles with different packages. Sometimes the R instance is frozen for one particular user, then someone else can log in from another webbrowser.
#Base image https://hub.docker.com/u/rocker/
FROM rocker/tidyverse:latest
## copy files
COPY install_packages.R /install_packages.R
COPY packages_scan.R /packages_scan.R
COPY rstudio-prefs.json /home/rstudio/.config/rstudio/rstudio-prefs.json
COPY rserver.conf /etc/rstudio/rserver.conf
# Install ODBC and dependencies
RUN apt-get update && apt-get install -y \
cron \
nano \
tdsodbc \
odbc-postgresql \
libsqliteodbc \
apt-transport-https \
curl \
gnupg \
unixodbc-dev \
## clean up
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update -y
RUN ACCEPT_EULA=Y apt-get install --yes --no-install-recommends msodbcsql18
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
## install R-packages (and for ARL also NEA packages)
RUN Rscript /install_packages.R
# Install depencendcies
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
# for rJava
default-jre \
# for V8
libv8-dev \
python3-pip \
libpython3-dev \
libmagick++-dev
# Run the R packages scan
RUN Rscript /packages_scan.R
Launching an R Studio session running on Azure Container Instances results in a frozen screen with the message. "R is taking longer to start than usual"
It seems completely random. We have multiple Dockerfiles with different packages. Sometimes the R instance is frozen for one particular user, then someone else can log in from another webbrowser.
This is the install_packages.R file:
Additionally we have the following packages file for a specific tool:
rstudio-prefs.json
rserver.conf
packages_scan.R
Already tried to remove the packages, still didn't change anything. Anyone ideas?