Restarting rstudio server to resolve hangs
Every so often rstudio IDE environment can hang and become unresponsive. There multiple reasons for this to happen, from hanging jobs/sessions to rstudio trying to restore potentially problematic last used versions of projects. These document provides steps to return the workflow/Rstudio to working state.
Note 1: This doc is specific to Metworx Workflows 20.x and later.
Warning: These steps will kill running jobs and would require jobs to be resubmitted.
https://support.rstudio.com/hc/en-us/articles/218730228-Resetting-a-user-s-state-on-RStudio-Server Depending on what you want to achieve, you also may want to adjust your project/user settings https://support.rstudio.com/hc/en-us/articles/200549016-Customizing-RStudio
- From Metworx dashboard or workflow notification email, click on "Destkop" and login to your desktop environment for the workflow
- In the opened deskop, open a terminal window(Konsole).
If running jobs are supected to cause the issue, kill all running sessions. This will kill all running sessions/jobs
- If Loading/user configuration is suspected to cause the issue, reset settings to default
#cd ~ #mv .rstudio/ .rstudio.old
DANGER ZONE: You also might want to consider removing additional configuration directories
|Location||When to remove|
|~/.config/rstudio/||When want to remove all user settings (Global Options) lost|
|~/.local/share/rstudio/||When want to reset open files and tabs|
|~/.rstudio/||Cleans out all active and suspended sessions|
For example, if want to remove ALL user settings, you would also do
#mv ~/.config/rstudio ~/.config/rstudio.od
Restart Rstudio service
# sudo service rstudio-server restart
- Reload rstudio browser window. You now should be able to open your prior project or create a new project.