RStudio Server runs on several servers around NCEAS, including Aurora, Mazu, and DataTeam.
RStudio Server sessions can become stuck, leaving users unable to access the RStudio web interface via a browser. There seems to be multiple causes so the fix may vary depending on what the user’s doing. Some things to look for include:
/home/$USER/.RData
file: RStudio creates this file by default in order to to save the user’s work and the file can become huge when the user creates variables that take up a large amount of memory. This problem is probably made worse on our HPC hardware because the user, theoretically, can actually load files into memory that RStudio can’t handle unlike on traditional desktop hardware. The user’s RStudio session can hang if this file is large because RStudio, by default, tries to read this file into memory when the session starts.
Beyond the above, it appears that RStudio sessions just get corrupted sometimes. Each user’s RStudio state is stored in /home/$USER/.local/share/rstudio
. A two-pass approach to fixing a corrupt session usually works:
ps -ef | grep $USER | grep [r]studio-server
)/home/$USER/.local/share/rstudio/sessions
. The user may lose work at this point.ps -ef | grep $USER | grep [r]studio-server
)/home/$USER/.local/share/rstudio
The user may lose work and will lose their RStudio preferences.