Mark C
Mark C

Reputation: 391

RStudio server hangs for 1 user only

I am running RStudio Server version 0.98.978 with R 3.0.2. on an Ubuntu 14 server. Yesterday I executed a command that caused the session to freeze. Since then, every time I try to load that user profile and that user profile only, the browser hangs. I generally get an error message saying the browser has become unresponsive (regardless of whether I use Chrome or IE ).

Simple commands like R.Version() take several minutes to complete. I have tried rebooting the server and killing all processes related to the RStudio account in question. So far nothing has resolved the problem. My searches have only brought up solutions to fix the problem on Windows. What else can I try to fix this problem?

Upvotes: 3

Views: 5788

Answers (7)

Patrick
Patrick

Reputation: 1421

It is possible that RStudio gets stuck on a certain Rproject. In some cases it may help if the admin creates a backup of the Rproject directory in question (should be the one that was active when the hickup occurred) and then removes it for the user who is experiencing the issue.

Upvotes: 0

Matifou
Matifou

Reputation: 8890

I suspect that the ~/.rstudio folder is for versions of Rstudio < 1.3. For newer versions, you will want to look at ~/.local/share/rstudio/sessions instead, and remove the folder within it instead.

See: https://support.rstudio.com/hc/en-us/articles/218730228-Resetting-a-user-s-state-on-RStudio-Server, which mentions Older versions of (version 1.3 of RStudio Server Pro and earlier) used a non-configurable folder named .rstudio to store state

Upvotes: 5

조완기
조완기

Reputation: 11

I solved this problem - Rstudio-server hanging 1 person only. But I could not solve it with above methods. I think it is a network problem so I couldn't receive any response from <~~~~~~.cache.js> calling. In this case, you can find out <~~~~~~~~~.cache.js> no response with pushing key before you click log-in button.

Anyway, here is my way.

  1. Reset your Network with following orders
    • you can insert these into cmd terminal as an admin mode.

netsh winsock reset netsh int ip reset

  1. Reboot

  2. The IP information may be erased. So if you're using fixed IP address, fill the blanks with as-is IP address.

That's all.

Since there could be a network issue when you cannot login into Rstudio server, you may take this way to recover the connection.

Upvotes: -1

Sina
Sina

Reputation: 812

I had the same problem and none of above solutions worked for me. I Tried following steps and problem solved:

1- Suspand all tasks:

`$ sudo rstudio-server force-suspend-all`

2- Stop RStudio server:

`$ sudo rstudio-server stop`

3- Delete .rstudio folder in /home/user/.rstudio:

`$ rm /home/user/.rstudio`

4- Start RStudio server:

`$ sudo rstudio-server start`

5- Open your browser and start using RStudio Server :)

Upvotes: 10

Ela R
Ela R

Reputation: 11

It may be due to that you have processed larger files. Just kill the particular r session. That will suffice. Command: ps -u find out the rsession and kill it.

Upvotes: 0

JP_smasher
JP_smasher

Reputation: 981

You might want to do a ps -u user where user is the user whose session is hanging in the browser, and kill the rsession related to it.

I had the same issue and was about to give up and delete my user when almost serendipitiously, I couldn't delete it due to an ongoing processes tied to my user. I did a ps -u jp_smasher where jp_smasher is my user name and found an offending rsession.

[root]# ps -u jp_smasher PID TTY TIME CMD 39774 ? 00:00:00 sshd 39776 pts/0 00:00:00 bash 39888 ? 00:00:00 sshd 39889 pts/1 00:00:00 bash 39999 pts/0 00:02:24 R 54230 ? 00:00:00 sshd 54231 pts/3 00:00:00 bash 54372 ? 00:00:11 rsession 54503 ? 00:00:00 sshd 54504 ? 00:00:00 sftp-server 69992 ? 00:00:00 sshd 69993 pts/4 00:00:00 bash [root]# kill 54372

Killing the process doesn't solve the main problem (which could be some memory-hogging process etc), but it does resolve the symptom of the hanging browser.

Upvotes: 4

gccering
gccering

Reputation: 96

it looks like you have a huge .Rdata file under your home directory so Rstudio tries to reload it everytime you restart your session. Delete that file and you should be good to go.

Upvotes: 2

Related Questions