OSC / ood-documentation

Documentation for Open OnDemand generated using Sphinx
https://osc.github.io/ood-documentation/latest/
MIT License
8 stars 48 forks source link

Adding R studio to OOD #968

Open AMK13 opened 1 month ago

AMK13 commented 1 month ago

Seeking advise here. We have a cyclecloud cluster with OOD and Interactive Jupyter deployed. Now our aim is to get a R-Studio interactive OOD interactive app working on the cluster without interfering/impacting the current demo. Here is the links I found online

https://osc.github.io/ood-documentation/latest/how-tos/app-development.html

https://osc.github.io/ood-documentation/release-2.0/app-development/tutorials-interactive-apps/add-rstudio/copy-app.html

can you please advise what flow we need adapt to get OOD installed and working on OOD.

Kind Regards

johrstrom commented 1 month ago

I think the second link is about right - though since it's old it's likely a bit out of date. In any case, since you setup Jupyter, RStudio is going to be similar to it.

That said - you can always take a look at our production Rstudio app - https://github.com/OSC/bc_osc_rstudio_server. This is the Rstudio app we use in production at OSC.

robertosussex commented 1 month ago

Hi,

Before we add R I believe we need to make sure that OoD works fine.

1) We are currently use OoD to launch Jupyter app and although it works in principle, there are issues with Proxies.

2) When we try to connect to the jupyter session it gives:

image image

What is the reason for the delay in the DNS resolution? Any settings we should check?

3) If I add IP FQDN to the /etc/hosts filr on the machine where OoD works it is able to connect to Jupyter

image

4) If I try to connect to the Terminal

image

We get: image

Any reason for this?

Settings we can check?

robertosussex commented 1 month ago

any advice is appreciated Kind regards Roberto

robertosussex commented 3 weeks ago

Hi there,

With some help we were able to add Rstudio to OoD. The app appears in the list of the interactive apps: image

We are using a singularity image that we are loading from the file script.sh.erb in /var/www/ood/apps/sys/rstudio/template

It is possible to submit a job. However, it terminates immediately meaning that something stops in using the singularity image

In trying to run the script directly on the login node we get: image

Is it a matter of permissions/users IDs etc?

Please advice Roberto

robertosussex commented 3 weeks ago

While running as root .... gives image

Many thanks Roberto

robertosussex commented 3 weeks ago

That is after loading the proper environment:

image

Please advice

Roberto

robertosussex commented 3 weeks ago

image

Regards Roberto

robertosussex commented 3 weeks ago

After adding image the error disappeared ....however, the session still terminates ...immediately...

in

image

looking at output.log we get image

no errors in

image

Any idea?

Many thanks Roberto

robertosussex commented 3 weeks ago

I tried submitting the job with Open on Demand invoking a session of Rstudio I got in the output log in my home directory image

used script is: image image

====================================================

I suppose it is a network/authentication issue?

Any advice? Many thanks Roberto

johrstrom commented 3 weeks ago

You should look at our production application. One thing to note is that we reconfigure where the output logs should go. Inside the container, you're logging to /var/log

You can see from this configuration - we are logging to the staged_root instead of /var/lib. This log file will tell you what's going on/why it's crashing.

https://github.com/OSC/bc_osc_rstudio_server/blob/master/template/etc/logging.conf.erb

robertosussex commented 3 weeks ago

Now ...we are trying using a different repo and NOT the singularity container. We got the error image after connecting to the "running" session.

depending on what we use for --auth-none

With --auth-none 1 we get a caching error

With --auth-none 0 we get a login session and we cannot get anywhere ... (csf errors and so on...)

..still investigating Roberto

AMK13 commented 3 weeks ago

The repo we are using is

https://github.com/mcw-rcc/bc_rcc_rstudio_server

robertosussex commented 3 weeks ago

We are using Almalinux s our operating system. Would this create issues? Kind regards Roberto