aLbAc
aLbAc

Reputation: 397

RStudio Server crashed while reading large file

My session on an RStudio server had crashed while reading a large file. Only when I log in it uses a large amount of memory. The server is a linux machine (Ubuntu).

I can't see anything in the workspace. I tried to terminate the session, restart and kill the process from the terminal unsuccessfully. I also removed the file I was reading, but it doesn't help.

It's stuck and doesn't seem that allows me to do anything.

Any suggestions what could I try to do?

Upvotes: 1

Views: 2058

Answers (2)

aLbAc
aLbAc

Reputation: 397

I solved it by killing all processes in RStudio Server

sudo /usr/sbin/rstudio-server kill-all
sudo /usr/sbin/rstudio-server start

Then, deleting all history related files and directories from ~/.rstudio

After I started the RStudio Server session I waited a few minutes and eventually it came back and it allowed me to operate normally.

Upvotes: 1

Jonathan
Jonathan

Reputation: 8812

You ought to be able to get back to a good state as follows:

  1. Quit your session, if you can
  2. Rename your Rstudio folder: mv ~/.rstudio ~/.rstudio-old
  3. If there is a file named .RData in your RStudio project's directory, remove or rename it, too
  4. Start a new R session

The new session should come up clean, with no data or files.

Upvotes: 2

Related Questions