Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding R studio to OOD #968

Open
AMK13 opened this issue May 30, 2024 · 13 comments
Open

Adding R studio to OOD #968

AMK13 opened this issue May 30, 2024 · 13 comments

Comments

@AMK13
Copy link

AMK13 commented May 30, 2024

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
Copy link
Contributor

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
Copy link

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?

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

image

  1. If I try to connect to the Terminal

image

We get:
image

Any reason for this?

Settings we can check?

@robertosussex
Copy link

any advice is appreciated
Kind regards
Roberto

@robertosussex
Copy link

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
Copy link

While running as root .... gives
image

Many thanks
Roberto

@robertosussex
Copy link

That is after loading the proper environment:

image

Please advice

Roberto

@robertosussex
Copy link

image

Regards
Roberto

@robertosussex
Copy link

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
Copy link

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
Copy link
Contributor

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
Copy link

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
Copy link
Author

AMK13 commented Jun 10, 2024

The repo we are using is

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

@robertosussex
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants