# Rstudio launcher for rhel/centos 8?

**URL:** <https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932>\
**Category:** Get Help\
**Tags:** question\
**Created:** [February 22, 2022, 11:39pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932 "2022-02-22T23:39:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 22, 2022, 11:39pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/1 "2022-02-22T23:39:56Z")

</div>

Greetings. We implemented RStudio app for RHEL7 using the ‘rserver-launcher-centos-7.simg’, pulled from shub://OSC/centos7-launcher.

We are now building the RStudio app for RHEL8 environment, and I’d like to implement what we did previously. Would someone be able to share an rstudio-server launcher image for CentOS8/RHEL8?

Thanks!

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 23, 2022, 12:27am UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/2 "2022-02-23T00:27:34Z")

</div>

“Read the FULL documentation”. There is a singularity file example in place: [3. Setup Singularity — Open OnDemand 2.0.13 documentation](https://osc.github.io/ood-documentation/release-2.0/app-development/tutorials-interactive-apps/add-rstudio/setup-singularity.html?highlight=launcher)

Did anyone succeed with this? I am diverted by a permissions issue preventing launch of RStudio-server (EasyBuild installation).

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [February 23, 2022, 3:40pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/3 "2022-02-23T15:40:47Z")

</div>

Hi Emily.

I’ve personally not set this up before. However, what is the permission issue that you are seeing?

Thanks,  
-gerald

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 23, 2022, 5:58pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/4 "2022-02-23T17:58:36Z")

</div>

Hi, Gerald –

Thanks for checking in. This is built on RHEL8, and is the EasyBuild module RStudio-Server/1.4.1717-foss-2021a-Java-11-R-4.1.0  
Here’s the full error, same whether launching via ‘rserver’ or ‘rstudio-server’:  
$ rserver  
23 Feb 2022 17:54:53 [rserver] ERROR system error 13 (Permission denied) [path: /var/run/rstudio-server, target-dir:]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::createDirectory(const string&) const src/cpp/shared\_core/FilePath.cpp:812; LOGGED FROM: int main(int, char\* const\*) src/cpp/server/ServerMain.cpp:602

Cheers  
~ Em

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [February 23, 2022, 6:02pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/5 "2022-02-23T18:02:50Z")

</div>

It appears that the application is attempting to create a folder or folder structure, but is unable to due to lack of permissions.

Do you know where it is trying to create this folder or folder structure?

The other question would be, does rserver need to run as root?

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 23, 2022, 7:17pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/6 "2022-02-23T19:17:13Z")

</div>

These are good questions, Gerald. I’m not knowledgeable about RStudio and how it operates. In our RHEL7 cluster, where we use the launcher image, both the rserver and r processes run as unprivileged users. Running the rserver from the module fails as well:  
$ rserver  
23 Feb 2022 19:07:13 [rserver] WARNING Running as root user is not recommended!; LOGGED FROM: virtual rstudio::core::ProgramStatus rstudio::server::Options::read(int, char\* const\*, std::ostream&) src/cpp/server/ServerOptions.cpp:275

Next on my list is to discover where rstudio logs operational output.

I’ve installed r and rstudio-server on my ubuntu system, to hopefully educate myself further on how this software should operate. Thanks for your interest.

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 23, 2022, 11:43pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/7 "2022-02-23T23:43:27Z")

</div>

The definition file from the ood docs just needs small amendment to use with Centos 8:  
MirrorURL: [http://mirror.centos.org/centos/%{OSVERSION}-stream/BaseOS/$basearch/os/](http://mirror.centos.org/centos/%25%7BOSVERSION%7D-stream/BaseOS/%24basearch/os/)

to reflect the altered file system supporting the new distribution (stream) model (I’m guessing a little on why the file system is different). Maybe it just reflects a different organization, RHEL7 vs 8.

I have an image and will test tomorrow.

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [February 24, 2022, 12:22am UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/8 "2022-02-24T00:22:27Z")

</div>

Hi Emily.

I am truly sorry for not being of more use. I will continue to work with you until you as long as needed.

Thanks,  
-gerald

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 24, 2022, 7:38pm UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/9 "2022-02-24T19:38:37Z")

</div>

Thanks, Gerald – The container will build from a root shell, but it’s not accessible via ‘singularity shell’ to check it’s contents. If I build via ‘sudo `which singularity` --sandbox \<name.sif\> \<name.def\>’, the build fails.

- [compt312 rstudio]$ sudo /usr/local/software/singularity/3.8.5/bin/singularity build --sandbox rstudio-launcher-centos-8.sif centos-8-launcher.def
  - [sudo] password for :
  - INFO: Starting build…
  - INFO: Skipping GPG Key Import
  - warning: Generating 18 missing index(es), please wait…
  - Error unpacking rpm package shadow-utils-2:4.6-16.el8.x86\_64
  - Error unpacking rpm package libpwquality-1.4.4-3.el8.x86\_64
  - Error unpacking rpm package util-linux-2.32.1-32.el8.x86\_64
  - Error: Transaction failed
  - FATAL: While performing build: conveyor failed to get: while bootstrapping: exit status 1

Neglecting ‘–sandbox’, the build succeeds, with the failure upon testing:  
hpc8 rstudio]$ singularity exec rstudio-launcher-centos-8.sif rserver  
ERROR : No setuid installation found, for unprivileged installation use: ./mconfig --without-suid

Is there a way to verify the container, prior to attempt to implement it into the rstudio app workflow? The centos-7-launcher.sif shared through the ood docs allows to shell into it, so I’m assuming something has gone wrong in my container build.

The definition file I’m using is as follows:  
# Ensure that the guest is the same OS type as the compute hosts that it will run on  
# Here we use CentOS 8  
Bootstrap: yum  
OSVersion: 8  
MirrorURL: [http://mirror.centos.org/centos/%{OSVERSION}-stream/BaseOS/$basearch/os/](http://mirror.centos.org/centos/%25%7BOSVERSION%7D-stream/BaseOS/%24basearch/os/)  
Include: yum

%labels  
Maintainer OSC Gateways

%help  
This will run RStudio Server which must be mounted with dependencies into the container

%apprun rserver  
if ! [[“$USER\_PATH” = “”]]; then  
export PATH="$USER\_PATH"  
fi

exec rserver “${@}”

%runscript  
if ! [[“$USER\_PATH” = “”]]; then  
export PATH="$USER\_PATH"  
fi

exec rserver “${@}”

Thanks for your continued patience!  
~ Em

---

<div class="post-metadata">

**Author:** ![emily.dragowsky](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@emily.dragowsky](https://discourse.openondemand.org/u/emily.dragowsky)\
**Post date:** [February 25, 2022, 12:08am UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/10 "2022-02-25T00:08:18Z")

</div>

Ahh…self-inflicted wounds. Turns out there is a problem with the singularity build on the RHEL8 cluster. Building from the definition file on the RHEL7 cluster generated an accessible container.

Will look to implement the app soon, using the centos-8-launcher.sif

Cheers

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [August 24, 2022, 12:08am UTC](https://discourse.openondemand.org/t/rstudio-launcher-for-rhel-centos-8/1932/11 "2022-08-24T00:08:22Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
