HenrikBengtsson/CBI-software

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

Closed this issue · 2 comments

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

  • Install older versions to identify in which version this issue was introduced
  • Identify if this is a bug or something that needs to be worked around

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 rstudio/rstudio#11976.

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