I’ve gotten a OOD RStudio Server app to work that is completely container based (i.e. R and RStudio Server were installed into the Singularity container) however I was hoping to deploy a RStudio Server app that uses a centrally installed R-- one that is installed on our compute cluster and managed via lmod-- with RStudio Server locally installed on the compute node. The instructions here
suggest that R should be locally installed on the compute node; other example RStudio Server apps I’ve seen seem to install R into the container. In my first attempt I simply changed
in my rstudio container module file; /nas is where we install the research applications (such as R) used on our cluster which are managed using lmod. Then in script.sh.erb I
load the appropriate R module and the rstudio container module:
module load r/4.0.1
module load rstudio_singularity/0.0.1
When I run a single instance of this app it runs fine but if I simultaneously start a separate second OOD session using this app the second session throws the below error upon start up. Not only this but as soon as I exit the second session the the first session, which started up and ran normally, starts throwing error messages as well. I’ve noticed this behavior when the OOD sessions are each running on different compute nodes or the same one. RStudio Server is locally installed on each compute node.
I’m wondering if deploying a RStudio Server app this way should work? I.e. with a locally installed RStudio Server but a centrally installed version of R accessed via a module file.