-
Notifications
You must be signed in to change notification settings - Fork 183
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
[Singularity] RStudio 1.4 and S6 v2.1.0.2 permissions error #105
Comments
Hello, I'm having the same issue. Thanks for the great work! |
I'm having the same issue on both 4.0.3 and 4.0.2 when trying to run the container as user |
If your containers are running as GID 0, this works:
|
Thanks @mcg1969 . Would you suggest we explore changing these as the default permissions on the @Jake-Gillberg 4.0.2 should be pinned to RStudio 1.3. Please try pulling and re-running the image? If you are producing the error there, please open another issue since I think that should be different from the problem here which I believe is indeed specific to RStudio 1.4 |
My experience is inside a Docker container where the install is occurring in the Dockerfile build itself, not dynamically. I'm not using Singularity or Rocker, actually, it's more generic. |
@mcg1969 thanks for that, yeah that makes sense if the image had a previous version installed. Based on that I think we probably should set these as the default permissions in the If you agree with that, would you be interested in sending a us a PR to that effect? |
I'm afraid I can't do that—as mentioned, I don't use Rocker, and don't really have the means to test any changes. Someone with proper familiarity with that script ought to have little difficulty incorporating my proposed two-line addition however. |
Hmm, just tried to test after adding the below to chown -R root:root /var/lib/rstudio-server
chmod -R g=u /var/lib/rstudio-server I'm still getting the error:
I'm running this script on top of FROM rocker/shiny-verse:4.0.3
RUN /rocker_scripts/install_rstudio.sh I am trying to start this container with the user version: "3.9"
services:
shiny:
container_name: test_shiny
build: ./
image: test_shiny
user: shiny
environment:
- PASSWORD=${RSTUDIO_PASSWD:?set RSTUDIO_PASSWD in .env} |
Yeah, this is why I can't help y'all :-) I'm not using |
Thanks @Jake-Gillberg for checking and thanks @mcg1969 for confirming the fix you report is not related to rocker or S6 or singularity. Will try and find some time to poke around |
Hi all. Im getting the same error (below), but only when running rstudio in a singularity container from a HPC. No issues with rstudio server from docker container.
Tried changing permissions in my Dockerfile as suggested by @mcg1969 without success |
Hi, I have a very similar issue with Singularity too. I pull the latest version of the Rocker Rstudio container on our computational cluster where we use Singularity:
When the container is pulled and built, I try to start it up with
but get the following errors:
I use Singularity 2.6.0 but with the much newer version, 3.6.4, I still get very similar errors about permissions:
I would be very grateful, if there are any tips on how to tackle this. |
Hi @sidorov-si, --bind=myrun:/run \
--bind=mytmp:/tmp \ This worked for me with RStudio 1.3.1093 and the ml-verse 4.0.3-cuda10.1 image. |
For reference, S6 does not need to run as root. The important thing is that all the files in And this is the dockerfile that the above one uses as a base: |
thanks @davidspek , that's really cool to learn!
will have to explore this a bit further! |
@cboettig The RStudio image is still a bit messy at the moment, sorry for that. I did the conda but a bit quick and dirty to test if it worked (I've been able to import packages installed through conda as well as install.packages(), but some more testing should be done). I'll work on cleaning it up soon as the plan is to have it in the next release of Kubeflow which is March 15th. If you have any feedback or questions about the Dockerfile you can always ping me. Also, if anybody can perform any quick tests on that Dockerfile to see if things work it is very much appreciated. |
@cboettig I just noticed your question in the last sentence of the quote block. I am using the staff group in the image as well. |
Also experienced this issue running on our university HPC cluster with Singularity 3.4.x. I managed to get it working starting from the rocker singularity guidance here, combined with extending the idea at this link to cover not just the
Note I needed to add all the locale stuff too, to avoid endless locale warnings ... this is also a comparatively new problem which didn't happen with earlier Singularity invocations of the rocker containers, but is easily fixed. Hope the above might help someone else out there! 😄 |
Hi. I met this problem after I killed the process cause I can't stop rstudio-server (Warning as blow). |
Just wanted to add this as the above script worked decently in the past but fails with more recent versions such as Bioconductor 3.14 and Rocker 4.1.2 images, error like: 2022-01-18T11:46:38.887705Z [rserver] ERROR Attempt to run server as user 'rstudio-server' (uid 999) from account <username> (uid 10036829) without privilege, which is required to run as a different uid; LOGGED FROM: virtual rstudio::core::ProgramStatus rstudio::server::Options::read(int, char* const*, std::ostream&) src/cpp/server/ServerOptions.cpp:322
rserver exited Solution as indicated in grst/rstudio-server-conda#18 is to simply add rserver --server-user ${USER} --www-port ${PORT} --auth-none=0 --auth-pam-helper-path=pam-helper --auth-timeout-minutes=0 --auth-stay-signed-in-days=30 Works for me, hope it helps others. |
When running e.g. Bioc 3.14 on a HPC via Singularity with the command as in my previous comment I now at times get lots of log messages like below. R keeps running and I can continue analysis, just wondering what this is. Any insights?
|
This should be fixed on the newer images (?) Can you make sure you are pulling the latest image? RStudio logs are set in |
Hello. |
Thanks @eitsupi . I believe @nathanweeks contributed the original documentation there rocker-org/website#5 . Thanks everyone for the community effort, PRs welcome! |
@eitsupi Is the primary goal to update the article for compatibility with a newer |
@nathanweeks Thanks for replying. |
Thanks to @frederikziebell, the usage page of the Rocker project site is updated! (rocker-org/website#66) |
With the update in rstudio:4.0.3 to RStudio 1.4 and S6 v2.1.0.2, I receive a new error when running rstudio-server on our compute cluster, where I have no root or user/jobid modification permissions from within the docker container.
R is able to run without difficulty. Also, rocker/rstudio:4.0.2 continues to run successfully. Are additional permissions an absolute requirement of RStudio 1.4, or is there somewhere I should modify the installer scripts to adjust the permissions needed?
The text was updated successfully, but these errors were encountered: