HenrikBengtsson / CBI-software

A Scientific Software Stack for HPC (CentOS oriented)
https://wynton.ucsf.edu/hpc/software/software-repositories.html
5 stars 2 forks source link

RStudio Server: v2022.07.2-576 does not work in multi-tenant environments #78

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

Issue

The latest RStudio Server v2022.07.2-576 gives:

ERROR system error 2 (No such file or directory)
  [path: /tmp/rstudio-server/session-rpc-key];
OCCURRED AT rstudio::core::Error
  rstudio::core::FilePath::openForRead(
    std::shared_ptr<std::basic_istream<char> >&)
const src/cpp/shared_core/FilePath.cpp:1462;
LOGGED FROM: int main(int, char* const*)
src/cpp/server/ServerMain.cpp:786

if more than one user attempts to run it at the same time.

Troubleshooting

It looks like it attempts to write to the same /tmp/rstudio-server/session-rpc-key file regardless of user.

Comment: It appears to ignore TMPDIR here, because that is set to /scratch/$USER.

Action plan

HenrikBengtsson commented 1 year ago

This is a known bug, cf. Issue 11828: RStudio App Issue on HPC Open OnDemand from 2022-08-24. The path is indeed hardcoded. They've fixed it for the upcoming November release.

Until then, a patch is https://github.com/rstudio/rstudio/pull/11976.

HenrikBengtsson commented 1 year ago

RStudio Server v2022.02.4-500 seems to work. Will use that until they release the November version.