s-andrews / capstone_monitor

A system to monitor activity on the capstone cluster
GNU General Public License v3.0
0 stars 1 forks source link

Rstudio failing because of /tmp/rstudio-server permissions #24

Closed s-andrews closed 1 month ago

s-andrews commented 1 month ago

I thought we'd got this nailed, but apparently not.

[andrewss@compute-1-0 capstone_monitor]$ /usr/lib/rstudio-server/bin/rserver --server-user=andrewss --auth-none=1 --server-daemonize=0 --www-port=10101 --rsession-whi
ch=/bi/apps/R/4.4.0/bin/R --database-config-file=/bi/home/andrewss/rstudio_database.conf --server-data-dir /tmp/rstudio-server/andrewss --server-pid-file /tmp/andrews
s/rstudio-server.pid --www-verify-user-agent=0 --auth-validate-users=0
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/bi/home/andrewss/.local/share/rstudio/log/rserver.log'.
2024-09-25T12:17:29.712869Z [rserver] ERROR system error 13 (Permission denied) [path: /tmp/rstudio-server/andrewss, target-dir: ]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::createDirectory(const string&) const src/cpp/shared_core/FilePath.cpp:848; LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:689

So the upshot is that we can't use /tmp/rstudio-server to host files as it will be owned by whoever gets there first. We'll either need to put them into their home directory, or we need them to own the top level directory in /tmp