RStudio Server keeps disconnecting


#1

I am experiencing extreme connection issues and I do not know what to do. I’m running RStudio server with version 1.1.383. The server is running on an ubuntu 14.04 desktop. I often work on that desktop and just work with RStudio server to maintain project continuity between my remote work and on-site work.

I experience no connectivity issues when I am working directly on the desktop.

However, when I am working remotely from my Windows 10 i7 laptop via the Chrome, my RStudio sessions frequently lose connection. Specifically, I get the following error:

Error: Unable to establish connection with R session

Typically, everything will be running fine. Then the console response time starts lagging (e.g. 4 seconds for 1+1). Then I’ll get that error. Sometimes, after a few seconds everything starts running smoothly, sometimes not.

I know it sounds like I’m losing my internet connection, but I don’t think that’s actually the issue. I’m now sitting next to my router and when I lose my server connection, my internet connection appears stable and fine.

I have tried:

  1. Clearing the console
  2. Clearing my workspace
  3. Restarting and stopping/starting RStudio Server sessions
  4. Restarting my session
  5. Terminating and starting a new session

Typically, these will temporarily restore my connection, but then the issue starts again.

This has actually become a huge problem and has dramatically decreased my productivity. I’m kind of at my wits end and would really like some help.


#2

Had exactly the same issue and it was related to the data.table package. Did you recently update any packages, or do you have the data.table package installed?


#3

Can you provide us with a diagnostics report? It sounds like your R session may be crashing – hopefully there are some hints as to what might be happening in there.