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

Container for RStudio (not server) #522

Open
gezmi opened this issue Apr 21, 2023 · 1 comment
Open

Container for RStudio (not server) #522

gezmi opened this issue Apr 21, 2023 · 1 comment

Comments

@gezmi
Copy link

gezmi commented Apr 21, 2023

Hi,

I am trying to setup a container for RStudio (not the server). My problem is that on our system (Debian 11), I could not install Rstudio. I tried putting together a Singularity recipe. I should have been able to install a .deb file with apt (on an ubuntu image it worked), but for some reason, I needed this ugly way to get it to work.

Bootstrap: docker
From: r-base

# This is a container to run RStudio

%setup

%files
    rstudio-2023.03.0-386-amd64.deb /rstudio-2023.03.0-386-amd64.deb

%post
    echo "deb http://ftp.de.debian.org/debian bullseye main " > /etc/apt/sources.list # this was needed for libssl1.1
    apt-get update && apt-get install -y systemd libssl1.1 libclang-dev libxkbcommon-x11-0 libsqlite3-0 libpq5 \
    libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libgtk-3-0 libgbm-dev libasound2
    cat /etc/os-release # I needed to know which version of RStudio to install
    dpkg -i /rstudio-2023.03.0-386-amd64.deb
    apt install -y

This compiles, but when I try to run, I got the following error:

[3433037:0421/161335.902512:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/rstudio/chrome-sandbox is owned by root and has mode 4755.
Trace/BPT trap

If I give it the --no-sandbox argument, I get: Trace/BPT trap

This is the exact same error that I get if I try to install it on our system without a container. I do not have root to solve it.

Any thoughts or ideas on how to solve this error? It seems to be related to Debian >=11

Thank you for the help!

@gezmi
Copy link
Author

gezmi commented Apr 21, 2023

Update: I tried the same, just switching from r-base to r-ubuntu image. It gives the same error.

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

1 participant