-
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
After switch from R 4.3.3 to 4.4.1 issues in reading site-library 'Permission denied' due to staff usergroup bug, hence all packages broken #834
Comments
I can't reproduce. Details
Details
|
@eitsupi Rstudio:
And second, same with Tidyverse:
|
Container image name
rocker/rstudio:4.4.1
Container image digest
rocker/rstudio@sha256:f5c8b1c2817860fcefd3105c92c60bedb1fbcb76093f0783345e9e4379c2bad4
What operating system are you seeing the problem on?
Linux
System information
Bug description
We use Rserver instances as reproducible environment for R&D, but since a new package requires a switch to 4.4.1 I have not been able to get the previous functionality and cannot seem to find anyone who shares the problem.
Working (Minimal) Setup:
Now when I update to the recent version of R 4.4.1 all packages install fine during build time.
However, when I run the container all packages installed during build (and also preinstalled ones such as the ones included in the tidyverse container) won't be available. Here I emulate the Rserver user that users would usually use through the webbrowser frontent by directly logging into a bash sessions as rstudio user (This (should always) yield the same outputs as when a user tries to navigate the files from within the Rstudio terminal in the webbrowser, where the same permission denied error occurs when trying to open site-library.):
I was able to find out that the ** cause is a permission error to access /usr/local/lib/R/site-library** however, chanigng the permission does not resolve the issue!; Neither should it persist in the first place since read and execute is set allowed for all users.
When logging in as root to remove the staff usergroup it works again, eg. to root:root :
At this stage we can see cowplot in autocomplete again when calling library() in the Rstudio IDE, however when loading the package it will error because the underlying directory is still owned by staff.
Hence I'll need to completely purge staff usergroup out of the 4.4.1 site-library install directories to fix the installed R packages.
root@febff26b4a43:/# chown root:root -R /usr/local/lib/R/site-library/
For now I will bypass this issue by including the purge fix into the dockerfile like so:
Does anyone got a clue where this staff permission error originates from? Afterall, both versions build from the same install scripts and it feels very unsatisfying to recursively own filetrees.
Bootup and install logs etc all look fine, looking forward to hear your thoughts and ideas to narrow down the root cause of this issue! Thanks for your time and the great maintenance!
How to reproduce this bug?
The text was updated successfully, but these errors were encountered: