Fresh new session for rstudio-server

后端 未结 5 1343
时光取名叫无心
时光取名叫无心 2021-02-01 16:03

I am running rstudio-server on a virtualised (vmware-player) ubuntu machine, and processing lots of data into the ram. I find that after some inactivity that the session suspend

相关标签:
5条回答
  • 2021-02-01 16:19

    A quick solution would be to rename ~/.rstudio and reopen the webpage using rstudio url.

    0 讨论(0)
  • 2021-02-01 16:20

    Your question is a while back but after running into this problem a zilion times i found a way to reset the Rstudio Shiny Server session without the need for admin rights on Rstudio Shiny Server:

    • put temporarily as first line in server.r : quit("yes") # FORCE CLOSE OF SESSION server

    • go to the site and it will crash (the session closes straight away)

    • delete or comment out: # quit("yes") # FORCE CLOSE OF SESSION server
    • go to the site and you will have the shiny app with a new session =^)

    Works for me and saves a lot of time searching through all kind of system folders or the need to enter a part of the system that you are not allowed to go or needing admin rights on Rstudio Shiny Server.

    I hope this helps.

    0 讨论(0)
  • 2021-02-01 16:33

    If there is a directory inside ~/.rstudio/sessions/active/, deleting it (in the way like rm -rf ~/.rstudio/sessions/active/session-*) might be sufficient to solve the problem.

    0 讨论(0)
  • 2021-02-01 16:35

    I have tried the above solutions which didn't work for me. I tried to kill the rsession which is causing the problem. just run this command to find out pid of user session.
    ps -u userid
    Find out the pid that is causing the rsession to stall. Kill that process and you're good to go.

    0 讨论(0)
  • 2021-02-01 16:40

    I found this page, which deals with resetting the rstudio-desktop version. In my home directory, I found the folder ~/.rstudio. I renamed/deleted this folder and this loads a new rstudio-server instance.

    In fact, there is a folder called suspended session in the ~/.rstudio folder, which I suspect is the thing where suspended data is stored, so maybe deleting this folder is sufficient?

    0 讨论(0)
提交回复
热议问题